-
Notifications
You must be signed in to change notification settings - Fork 448
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
Database disk usage increase indefinitely #1609
Comments
This line is pointing to the root cause. |
@petermattis Thank you! I will check it. |
@hkalina An unclosed snapshot alone would not increase the An unclosed snapshot alone will prevent disk space reclamation by deletes, but it wouldn't manifest as an increase in |
I have added monitoring of opened iterators into our code and it seems it was caused by processing of very time intensive requests iterating the database - we have added |
In our application we use Pebble to store around 3 TB of data. When the process runs long-term, the database consume more and more disk space (the directory with Pebble database), until it runs out all disk space (around 6 TB of space).
However when we restart the application and it reopens the Pebble database, the the database reduce its size back to 3 TB in one minute.
We are able to keep the Pebble database in reasonable size if we restart the application regularly, but its size increase indefinitely otherwise.
Is there some clean-up when the database is being opened?
Can there be some reason why it cannot run while the database is used?
Thanks!
We use version from the master branch, commit f9d4a33.
Here are db.Metrics() after 10 days of run, when the database directory consume 5.8 TB of disk space (and keeps growing):
The Pebble configuration should match the default:
The text was updated successfully, but these errors were encountered: