forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[extension/filestorage] change bbolt DB options (#9004)
bbolt doesn't automatically reclaim unused disk space - it expects the user to manually compact it. This has performance implications in that it keeps track of disk segments in a freelist structure, which can be large even if the db doesn't actually contain any data. By default, it also syncs this freelist to disk on every transaction. Disable freelist syncing and change freelist type to one which performs better on large dbs. The result is a massive reduction in the cost of writes to a large DB file. Include benchmarks to demonstrate this. Not syncing the freelist makes opening the DB more expensive, but this only happens on extension start, and the runtime remains under 1s even on 10 Gb db files.
- Loading branch information
Mikołaj Świątek
authored
Apr 5, 2022
1 parent
27feee4
commit 637d773
Showing
4 changed files
with
89 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters