Skip to content

[Pebble] Update pebble to 2.1#8009

Open
peterargue wants to merge 2 commits into
masterfrom
peter/update-pebble-2.1
Open

[Pebble] Update pebble to 2.1#8009
peterargue wants to merge 2 commits into
masterfrom
peter/update-pebble-2.1

Conversation

@peterargue

Copy link
Copy Markdown
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
Comment thread storage/pebble/config.go
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
Copy Markdown
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?

Comment thread storage/pebble/config.go
l.TargetFileSize = opts.Levels[i-1].TargetFileSize * 2
}
l.EnsureDefaults()
l.EnsureL0Defaults()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread storage/pebble/config.go
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
Copy Markdown
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

Comment thread storage/pebble/config.go
// 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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@codecov-commenter

codecov-commenter commented Oct 3, 2025

Copy link
Copy Markdown

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
Copy Markdown
Contributor Author

this needs #8008

@github-actions github-actions Bot added the Stale Label used when marking an issue stale. label Dec 6, 2025
@github-actions github-actions Bot closed this Dec 13, 2025
@peterargue peterargue added Preserve Stale Bot repellent and removed Stale Label used when marking an issue stale. labels Dec 15, 2025
@peterargue peterargue reopened this Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Preserve Stale Bot repellent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants