Cleanup PVF artifact by cache limit and stale time (#4662)
Part of https://github.com/paritytech/polkadot-sdk/issues/4324 We don't change but extend the existing cleanup strategy. - We still don't touch artifacts being stale less than 24h - First time we attempt pruning only when we hit cache limit (10 GB) - If somehow happened that after we hit 10 GB and least used artifact is stale less than 24h we don't remove it. --------- Co-authored-by:s0me0ne-unkn0wn <48632512+s0me0ne-unkn0wn@users.noreply.github.com> Co-authored-by:
Andrei Sandu <54316454+sandreim@users.noreply.github.com>
Showing
- polkadot/node/core/pvf/common/src/prepare.rs 2 additions, 0 deletionspolkadot/node/core/pvf/common/src/prepare.rs
- polkadot/node/core/pvf/src/artifacts.rs 165 additions, 14 deletionspolkadot/node/core/pvf/src/artifacts.rs
- polkadot/node/core/pvf/src/host.rs 21 additions, 21 deletionspolkadot/node/core/pvf/src/host.rs
- polkadot/node/core/pvf/src/prepare/worker_interface.rs 14 additions, 0 deletionspolkadot/node/core/pvf/src/prepare/worker_interface.rs
- polkadot/node/core/pvf/src/testing.rs 7 additions, 1 deletionpolkadot/node/core/pvf/src/testing.rs
- prdoc/pr_4662.prdoc 17 additions, 0 deletionsprdoc/pr_4662.prdoc
Please register or sign in to comment