Skip to content

Commit fec0b98

Browse files
paolococchidaverigby
authored andcommitted
MB-47386: Change default max_checkpoints from 2 to 10
All the work in MB-47386 aimed to this change. Full checkpoint removal is the most effective checkpoint memory recovery strategy. Increasing the number of allowed checkpoints leads to having much more checkpoints eligible for removal. Change-Id: Iccf03688b143ae6516f317536ba99a1d60f18dfb Reviewed-on: http://review.couchbase.org/c/kv_engine/+/163334 Tested-by: Build Bot <[email protected]> Reviewed-by: Dave Rigby <[email protected]>
1 parent 4667e6f commit fec0b98

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

engines/ep/configuration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@
752752
}
753753
},
754754
"max_checkpoints": {
755-
"default": "2",
755+
"default": "10",
756756
"descr": "Max number of checkpoints in each VBucket.",
757757
"dynamic": true,
758758
"type": "size_t",

engines/ep/tests/module_tests/checkpoint_remover_test.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ void CheckpointRemoverTest::SetUp() {
2727
if (!config_string.empty()) {
2828
config_string += ";";
2929
}
30-
config_string += "max_vbuckets=8;checkpoint_remover_task_count=2";
30+
// Note: By MB-47386 the default max_checkpoints has be set to 10 but we
31+
// still run this testsuite with the original max_checkpoints=2. Reason is
32+
// that a bunch of (logic) tests inspect the inner checkpoint queues and
33+
// rely on max_checkpoints=2 for knowing where to find items. Note that
34+
// max_checkpoints doesn't have any logic-change implication.
35+
config_string +=
36+
"max_vbuckets=8;checkpoint_remover_task_count=2;max_checkpoints=2";
3137

3238
SingleThreadedKVBucketTest::SetUp();
3339
}

0 commit comments

Comments
 (0)