Skip to content

Conversation

peterargue
Copy link
Contributor

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

@peterargue peterargue requested a review from a team as a code owner October 3, 2025 23:36
MaxConcurrentCompactions: func() int { return 4 },
Logger: util.NewLogger(logger),
// The default is 1, 1.
CompactionConcurrencyRange: func() (upper int, lower int) { return 1, 4 },
Copy link
Contributor Author

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()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines -49 to -52
if i > 0 {
// L0 starts at 2MiB, each level is 2x the previous.
l.TargetFileSize = opts.Levels[i-1].TargetFileSize * 2
}
Copy link
Contributor Author

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]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@codecov-commenter
Copy link

codecov-commenter commented Oct 3, 2025

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
storage/migration/sstables.go 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@peterargue
Copy link
Contributor Author

this needs #8008

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.

3 participants