-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
How to handle large number of .ldb files #1365
Comments
How many lcd files are you seeing ? I don't think there are 'old" lbd files, as the db is incremental. A what |
Thank you for the reply. I just checked and running I tested using a playground aptly setup I am testing using I would expect the same behavior on the stable aptly setup we have using So from what you mentioned in regards to the db being incremental, the more packages are tracked by aptly, the larger the number of .ldb files there will be. Is that correct? |
thanks for the explanations. yes, this is the way leveldb is designed, if there are no performance/inconsistency problems, there should not be any problem with many lbd files. aptly usess a newer version of goleveldb in the ci builds, I assume it optimized the db compaction and therefore is able to reduce the number of ldb file further. |
Thank you for explaining how it works. |
Detailed Description
Hi, I have been searching for how to handle/clean old
.ldb
files stored in thedb/
directory but could not find any information about it.Running
aptly db cleanup
does not seem to affect this.I tried simply removing the oldest
.ldb
file I had and that "broke" the database until I ranaptly db recover
.Are there any best practices or recommendations on how to limit them?
Context
LevelDB files
Your Environment
Debian Bookworm
The text was updated successfully, but these errors were encountered: