Skip to content

Tune badgerDB for large logs with high throughput#869

Open
AlCutter wants to merge 1 commit into
transparency-dev:mainfrom
AlCutter:badger_tune
Open

Tune badgerDB for large logs with high throughput#869
AlCutter wants to merge 1 commit into
transparency-dev:mainfrom
AlCutter:badger_tune

Conversation

@AlCutter
Copy link
Copy Markdown
Collaborator

@AlCutter AlCutter commented Jun 2, 2026

Add flags for some BadgerDB tunables.

@AlCutter AlCutter requested a review from mhutchinson June 2, 2026 13:03
@AlCutter AlCutter requested a review from a team as a code owner June 2, 2026 13:03
Comment thread cmd/tesseract/posix/main.go Outdated
antispamBlockCacheSize = flag.String("antispam_block_cache_size", "0MB", "Amount of RAM to allocate for antispam block cache, set to zero to disable. Default disabled since compression is off.")
antispamIndexCacheSize = flag.String("antispam_index_cache_size", "768MB", "Amount of RAM to allocate for antispam index cache, set to zero for unlimited.")
antispamCompactionInterval = flag.Duration("antispam_compaction_interval", tposix_as.DefaultCompactionInterval, "Interval between GC/compaction runs on the antispam index.")
antispamNumCompactors = flag.Int("antispam_num_compactors", 4, "Number of BadgerDB compactors to run.")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest making the default 2 in the interests of working well in memory-constrained environments. Users can lift this to 4 and beyond if they know they have the RAM and need for it. OTOH, it looks like the other defaults are set for performance mode, so maybe 4 is reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants