You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MB-48467: Add config for magma MinCheckpointCreationInterval
Magma will create a checkpoint if the overhead of the checkpoint
queue exceeds 10% of the data size including fragmentation. It is
configured to 2% per checkpoint via magma_checkpoint_threshold
in config.json which results in 10% since magma holds a max of
five checkpoints.
During data load or overwrite workloads where the data size is
small, this can result in agressive checkpoint creation. This
patch adds MinCheckpointCreationInterval config to rate limit
checkpoint creation in such workloads.
Also set the config to zero for tests which require creation of
a checkpoint every batch.
Change-Id: If09b7fd6d7615a583d8f99c050682c66b1842727
Reviewed-on: http://review.couchbase.org/c/kv_engine/+/163750
Reviewed-by: Ben Huddleston <[email protected]>
Tested-by: Build Bot <[email protected]>
Copy file name to clipboardExpand all lines: engines/ep/configuration.json
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1247,7 +1247,13 @@
1247
1247
"magma_checkpoint_interval": {
1248
1248
"default": "120",
1249
1249
"dynamic": false,
1250
-
"descr": "Frequency of checkpoint interval; in seconds. A checkpoint interval provides a rollback point to which the data store can rollback to in the event of a failure.",
1250
+
"descr": "Frequency of checkpoint interval; in seconds. A checkpoint provides a rollback point to which the data store can rollback to in the event of a failure.",
1251
+
"type": "size_t"
1252
+
},
1253
+
"magma_min_checkpoint_interval": {
1254
+
"default": "1",
1255
+
"dynamic": false,
1256
+
"descr": "Minimum interval between two checkpoints; in seconds. Prevents excessive creation of checkpoints.",
0 commit comments