summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/flow_control_parameters.idl
diff options
context:
space:
mode:
authorMaria van Keulen <maria@mongodb.com>2019-04-17 15:43:50 -0400
committerMaria van Keulen <maria@mongodb.com>2019-04-22 11:07:54 -0400
commit03dada404f6d301c72cf2148c6b27b0e625e043d (patch)
treef4ffa9960e7dd2cceeac0cf4d975caee1970d862 /src/mongo/db/storage/flow_control_parameters.idl
parentcda363f65bde8d93a7c679757efd3edf7c6e8ad9 (diff)
downloadmongo-03dada404f6d301c72cf2148c6b27b0e625e043d.tar.gz
SERVER-40367 Calculate Flow Control repl lag with wall clock times
Diffstat (limited to 'src/mongo/db/storage/flow_control_parameters.idl')
-rw-r--r--src/mongo/db/storage/flow_control_parameters.idl9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mongo/db/storage/flow_control_parameters.idl b/src/mongo/db/storage/flow_control_parameters.idl
index 38c426ff55e..56d13624ab3 100644
--- a/src/mongo/db/storage/flow_control_parameters.idl
+++ b/src/mongo/db/storage/flow_control_parameters.idl
@@ -36,8 +36,15 @@ server_parameters:
cpp_varname: 'gFlowControlEnabled'
default: false
flowControlTargetLagSeconds:
- description: 'Target majority lag threshold where flow control will become engaged.'
+ description: 'Target maximum majority committed lag with flow control enabled'
set_at: [ startup, runtime ]
cpp_vartype: 'AtomicWord<std::int32_t>'
cpp_varname: 'gFlowControlTargetLagSeconds'
default: 10
+ flowControlThresholdLagPercentage:
+ description: 'Threshold percentage of target lag where flow control will become engaged'
+ set_at: [ startup, runtime ]
+ cpp_vartype: 'AtomicWord<double>'
+ cpp_varname: 'gFlowControlThresholdLagPercentage'
+ default: 0.5
+ validator: { gte: 0.0, lte: 1.0 }