summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/flow_control_parameters.idl
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2019-05-02 20:57:15 -0400
committerDaniel Gottlieb <daniel.gottlieb@mongodb.com>2019-05-03 09:38:20 -0400
commitcf322abb3069b05e6ea32afe53a31381f0c0c6df (patch)
treea0a80f244cb8ce01e76cb4b89bf8a23449d3d493 /src/mongo/db/storage/flow_control_parameters.idl
parentcd3f10254f5b7fd93c2e4065a996dad74d5b1fd2 (diff)
downloadmongo-cf322abb3069b05e6ea32afe53a31381f0c0c6df.tar.gz
SERVER-40366: Log when the flow control sustainer point is not moving.
Diffstat (limited to 'src/mongo/db/storage/flow_control_parameters.idl')
-rw-r--r--src/mongo/db/storage/flow_control_parameters.idl7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/storage/flow_control_parameters.idl b/src/mongo/db/storage/flow_control_parameters.idl
index 135ffa23b7b..2dd83afba0a 100644
--- a/src/mongo/db/storage/flow_control_parameters.idl
+++ b/src/mongo/db/storage/flow_control_parameters.idl
@@ -98,3 +98,10 @@ server_parameters:
cpp_varname: 'gFlowControlTicketMultiplierConstant'
default: 1.05
validator: { gt: 1.0 }
+ flowControlWarnThresholdSeconds:
+ description: 'If flow control detects the replica set is lagged and the sustainer point is not moving, it will eventually log a warning. This value controls how much time the flow control is in this state before it logs. A value of zero will disable the warnings.'
+ set_at: [ startup, runtime ]
+ cpp_vartype: 'AtomicWord<int>'
+ cpp_varname: 'gFlowControlWarnThresholdSeconds'
+ default: 10
+ validator: { gte: 0 }