From 88a7276d8511f300c0df214dfdbee145e8540406 Mon Sep 17 00:00:00 2001 From: Bilal Akhtar Date: Wed, 6 Nov 2024 13:54:37 -0500 Subject: [PATCH] storage: disable multilevel compactions In their current state, multilevel compactions can cause momentary spikes in L0 sublevels, resulting in undesirable side-effects elsewhere. Fixes #134423. Epic: none Release note: None --- pkg/storage/pebble.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/storage/pebble.go b/pkg/storage/pebble.go index aeb7cc741a01..67abfe72dcda 100644 --- a/pkg/storage/pebble.go +++ b/pkg/storage/pebble.go @@ -891,6 +891,10 @@ func DefaultPebbleOptions() *pebble.Options { Lower: EncodeMVCCKey(MVCCKey{Key: keys.LocalRangeLockTablePrefix}), Upper: EncodeMVCCKey(MVCCKey{Key: keys.LocalRangeLockTablePrefix.PrefixEnd()}), } + // Disable multi-level compaction heuristic for now. See #134423 + // for why this was disabled, and what needs to be changed to reenable it. + // This issue tracks re-enablement: https://github.com/cockroachdb/pebble/issues/4139 + opts.Experimental.MultiLevelCompactionHeuristic = pebble.NoMultiLevel{} for i := 0; i < len(opts.Levels); i++ { l := &opts.Levels[i]