Skip to content
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

Open
bryanlb opened this issue Sep 11, 2023 · 0 comments
Open

Restarting cache nodes can exhaust disk space #672

bryanlb opened this issue Sep 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@bryanlb
Copy link
Contributor

bryanlb commented Sep 11, 2023

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.

@bryanlb bryanlb added the bug Something isn't working label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant