Skip to content

Commit

Permalink
badger increases the compaction threshold to delay panic
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricfung committed Aug 11, 2023
1 parent ef383c8 commit dbd6a95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ func openDB(dir string, sync bool, custom *config.Custom) (*badger.DB, error) {
opts = opts.WithBlockCacheSize(0)
opts = opts.WithIndexCacheSize(0)
opts = opts.WithMetricsEnabled(false)
opts = opts.WithLoggingLevel(badger.ERROR)
opts = opts.WithLoggingLevel(badger.WARNING)
opts = opts.WithLevelSizeMultiplier(16) // FIXME badger panic on compaction
db, err := badger.Open(opts)
if err != nil {
return nil, err
Expand Down

0 comments on commit dbd6a95

Please sign in to comment.