-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Periodically clean up cached bundles directory #5737
Comments
There might be exception for the paratime clients (?):
Haven't checked this in the code yet, but (see excerpt from the docs; updating paratimes):
|
That is related to syncing runtime transactions and state. Since we are using state diffs, there is no need to have the correct runtime version as the runtime logic itself is not involved during storage sync. |
I was thinking about keeping it simple i.e.:
Will hopefully have draft PR ready tmr :) |
I would just make sure that this doesn't block initialization so while it should be fired on startup, it should be done in the background.
What do you mean? To determine the active runtime version you only need to look at consensus (the active descriptor you mentioned). Runtimes and consensus are always in sync currently and once a version is deemed the active version, it can never revert to a version with a lower version number. So even if the node is behind, once a version is active in the consensus layer, you know that no earlier versions can ever activate for that runtime. |
Currently the cached exploded bundles are never removed which can result in a lot of disk use after a few upgrades. We should make it so that cached bundles are periodically removed if they are either:
The text was updated successfully, but these errors were encountered: