-
Notifications
You must be signed in to change notification settings - Fork 197
[Pebble] Update pebble to 2.1 #8009
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
base: master
Are you sure you want to change the base?
Conversation
MaxConcurrentCompactions: func() int { return 4 }, | ||
Logger: util.NewLogger(logger), | ||
// The default is 1, 1. | ||
CompactionConcurrencyRange: func() (upper int, lower int) { return 1, 4 }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made into a range: cockroachdb/pebble#4635
should this be 4, 4
?
l.TargetFileSize = opts.Levels[i-1].TargetFileSize * 2 | ||
} | ||
l.EnsureDefaults() | ||
l.EnsureL0Defaults() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if i > 0 { | ||
// L0 starts at 2MiB, each level is 2x the previous. | ||
l.TargetFileSize = opts.Levels[i-1].TargetFileSize * 2 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
option moved, but default matches our config anyway so I removed it:
https://github.com/RaduBerinde/pebble/blob/e0404d4b319d21f7d340bc27173e18020af04ada/options.go#L876-L877
// Splitting sstables during flush allows increased compaction flexibility and concurrency when those | ||
// tables are compacted to lower levels. | ||
opts.FlushSplitBytes = opts.Levels[0].TargetFileSize | ||
opts.FlushSplitBytes = opts.TargetFileSizes[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
this needs #8008 |
Update pebble to the latest. This will be needed to update
ipfs/go-ds-pebble
to pull in the changes from the mainline repo for #8007