-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,6 +172,7 @@ func dbVersion(db *badger.DB) (uint32, error) { | |
func badgerOptions(badgerDbPath string) badger.Options { | ||
opts := badger.DefaultOptions(badgerDbPath) | ||
opts.DetectConflicts = false | ||
opts.BlockCacheSize = 1 << 29 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ukane-philemon
Author
Collaborator
|
||
opts.CompactL0OnClose = true | ||
opts.MetricsEnabled = false | ||
opts.Logger = &badgerLogger{log} | ||
|
So this will use 512 MiB of RAM just for the ticket pool? Doesn't sound great. What did v1 use, if hidden?
Also, the way to test performance is not via the http api requests, but by traversing the ticket pool in Go. I think there are functions and methods for that. A Go benchmark with different cache sizes would be the way to make an informed decision on this parameter.