-
Notifications
You must be signed in to change notification settings - Fork 29
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
Restarting cache nodes can exhaust disk space #672
Labels
Comments
This is still an issue, however we're currently working around this by clearing the directory in our # Temporary fix for reboots leaving cache assets behind
echo "Clearing /astra_data directory"
rm -rfv /astra_data/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In the event a cache node is restarted but not recreated/destroyed, the previously cached data can still exist on disk. This can cause out-of-disk errors as these old chunks have no reference but still take up disk space.
To Reproduce
Restart a running cache node, and after reboot observe the
KALDB_CACHE_DATA_DIR
has chunks that were created prior to the reboot time.Expected behavior
The simplest solution here would be to delete the existing chunks on boot. Note that we should consider what happens when a user attempts to map the data directory to a shared folder. We may consider storing all chunks in a sub-directory of the configured data directory, and then deleting/re-creating that specific folder.
The text was updated successfully, but these errors were encountered: