ethdb/pebble: disable seek compaction for Pebble (#33697)

This PR restores the previous Pebble configuration, disabling seek compaction.

This feature is still needed by hash mode archive node, mitigating the
overhead of frequent compaction.
This commit is contained in:
rjl493456442 2026-01-29 17:48:34 +08:00 committed by GitHub
parent 7046e63244
commit 628ff79be3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -300,6 +300,10 @@ func New(file string, cache int, handles int, namespace string, readonly bool) (
// debt will be less than 1GB, but with more frequent compactions scheduled.
L0CompactionThreshold: 2,
}
// Disable seek compaction explicitly. Check https://github.com/ethereum/go-ethereum/pull/20130
// for more details.
opt.Experimental.ReadSamplingMultiplier = -1
// These two settings define the conditions under which compaction concurrency
// is increased. Specifically, one additional compaction job will be enabled when:
// - there is one more overlapping sub-level0;