summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/snapshotWindow_serverParameters.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/snapshotWindow_serverParameters.js')
-rw-r--r--jstests/noPassthrough/snapshotWindow_serverParameters.js144
1 files changed, 72 insertions, 72 deletions
diff --git a/jstests/noPassthrough/snapshotWindow_serverParameters.js b/jstests/noPassthrough/snapshotWindow_serverParameters.js
index 4b41954ed61..fa0f004c511 100644
--- a/jstests/noPassthrough/snapshotWindow_serverParameters.js
+++ b/jstests/noPassthrough/snapshotWindow_serverParameters.js
@@ -2,84 +2,84 @@
// and via setParameter command.
(function() {
- 'use strict';
+'use strict';
- load("jstests/noPassthrough/libs/server_parameter_helpers.js");
+load("jstests/noPassthrough/libs/server_parameter_helpers.js");
- // Valid parameter values are in the range [0, infinity).
- testNumericServerParameter("maxTargetSnapshotHistoryWindowInSeconds",
- true /*isStartupParameter*/,
- true /*isRuntimeParameter*/,
- 5 /*defaultValue*/,
- 30 /*nonDefaultValidValue*/,
- true /*hasLowerBound*/,
- -1 /*lowerOutOfBounds*/,
- false /*hasUpperBound*/,
- "unused" /*upperOutOfBounds*/);
+// Valid parameter values are in the range [0, infinity).
+testNumericServerParameter("maxTargetSnapshotHistoryWindowInSeconds",
+ true /*isStartupParameter*/,
+ true /*isRuntimeParameter*/,
+ 5 /*defaultValue*/,
+ 30 /*nonDefaultValidValue*/,
+ true /*hasLowerBound*/,
+ -1 /*lowerOutOfBounds*/,
+ false /*hasUpperBound*/,
+ "unused" /*upperOutOfBounds*/);
- // Valid parameter values are in the range [0, 100].
- testNumericServerParameter("cachePressureThreshold",
- true /*isStartupParameter*/,
- true /*isRuntimeParameter*/,
- 50 /*defaultValue*/,
- 70 /*nonDefaultValidValue*/,
- true /*hasLowerBound*/,
- -1 /*lowerOutOfBounds*/,
- true /*hasUpperBound*/,
- 101 /*upperOutOfBounds*/);
+// Valid parameter values are in the range [0, 100].
+testNumericServerParameter("cachePressureThreshold",
+ true /*isStartupParameter*/,
+ true /*isRuntimeParameter*/,
+ 50 /*defaultValue*/,
+ 70 /*nonDefaultValidValue*/,
+ true /*hasLowerBound*/,
+ -1 /*lowerOutOfBounds*/,
+ true /*hasUpperBound*/,
+ 101 /*upperOutOfBounds*/);
- // Valid parameter values are in the range (0, 1).
- testNumericServerParameter("snapshotWindowMultiplicativeDecrease",
- true /*isStartupParameter*/,
- true /*isRuntimeParameter*/,
- 0.75 /*defaultValue*/,
- 0.50 /*nonDefaultValidValue*/,
- true /*hasLowerBound*/,
- -1 /*lowerOutOfBounds*/,
- true /*hasUpperBound*/,
- 1.1 /*upperOutOfBounds*/);
+// Valid parameter values are in the range (0, 1).
+testNumericServerParameter("snapshotWindowMultiplicativeDecrease",
+ true /*isStartupParameter*/,
+ true /*isRuntimeParameter*/,
+ 0.75 /*defaultValue*/,
+ 0.50 /*nonDefaultValidValue*/,
+ true /*hasLowerBound*/,
+ -1 /*lowerOutOfBounds*/,
+ true /*hasUpperBound*/,
+ 1.1 /*upperOutOfBounds*/);
- // Valid parameter values are in the range [1, infinity).
- testNumericServerParameter("snapshotWindowAdditiveIncreaseSeconds",
- true /*isStartupParameter*/,
- true /*isRuntimeParameter*/,
- 2 /*defaultValue*/,
- 10 /*nonDefaultValidValue*/,
- true /*hasLowerBound*/,
- 0 /*lowerOutOfBounds*/,
- false /*hasUpperBound*/,
- "unused" /*upperOutOfBounds*/);
+// Valid parameter values are in the range [1, infinity).
+testNumericServerParameter("snapshotWindowAdditiveIncreaseSeconds",
+ true /*isStartupParameter*/,
+ true /*isRuntimeParameter*/,
+ 2 /*defaultValue*/,
+ 10 /*nonDefaultValidValue*/,
+ true /*hasLowerBound*/,
+ 0 /*lowerOutOfBounds*/,
+ false /*hasUpperBound*/,
+ "unused" /*upperOutOfBounds*/);
- // Valid parameter values are in the range [1, infinity).
- testNumericServerParameter("checkCachePressurePeriodSeconds",
- true /*isStartupParameter*/,
- true /*isRuntimeParameter*/,
- 5 /*defaultValue*/,
- 8 /*nonDefaultValidValue*/,
- true /*hasLowerBound*/,
- 0 /*lowerOutOfBounds*/,
- false /*hasUpperBound*/,
- "unused" /*upperOutOfBounds*/);
+// Valid parameter values are in the range [1, infinity).
+testNumericServerParameter("checkCachePressurePeriodSeconds",
+ true /*isStartupParameter*/,
+ true /*isRuntimeParameter*/,
+ 5 /*defaultValue*/,
+ 8 /*nonDefaultValidValue*/,
+ true /*hasLowerBound*/,
+ 0 /*lowerOutOfBounds*/,
+ false /*hasUpperBound*/,
+ "unused" /*upperOutOfBounds*/);
- // Valid parameter values are in the range [1, infinity).
- testNumericServerParameter("minMillisBetweenSnapshotWindowInc",
- true /*isStartupParameter*/,
- true /*isRuntimeParameter*/,
- 500 /*defaultValue*/,
- 2 * 1000 /*nonDefaultValidValue*/,
- true /*hasLowerBound*/,
- 0 /*lowerOutOfBounds*/,
- false /*hasUpperBound*/,
- "unused" /*upperOutOfBounds*/);
+// Valid parameter values are in the range [1, infinity).
+testNumericServerParameter("minMillisBetweenSnapshotWindowInc",
+ true /*isStartupParameter*/,
+ true /*isRuntimeParameter*/,
+ 500 /*defaultValue*/,
+ 2 * 1000 /*nonDefaultValidValue*/,
+ true /*hasLowerBound*/,
+ 0 /*lowerOutOfBounds*/,
+ false /*hasUpperBound*/,
+ "unused" /*upperOutOfBounds*/);
- // Valid parameter values are in the range [1, infinity).
- testNumericServerParameter("minMillisBetweenSnapshotWindowDec",
- true /*isStartupParameter*/,
- true /*isRuntimeParameter*/,
- 500 /*defaultValue*/,
- 2 * 1000 /*nonDefaultValidValue*/,
- true /*hasLowerBound*/,
- 0 /*lowerOutOfBounds*/,
- false /*hasUpperBound*/,
- "unused" /*upperOutOfBounds*/);
+// Valid parameter values are in the range [1, infinity).
+testNumericServerParameter("minMillisBetweenSnapshotWindowDec",
+ true /*isStartupParameter*/,
+ true /*isRuntimeParameter*/,
+ 500 /*defaultValue*/,
+ 2 * 1000 /*nonDefaultValidValue*/,
+ true /*hasLowerBound*/,
+ 0 /*lowerOutOfBounds*/,
+ false /*hasUpperBound*/,
+ "unused" /*upperOutOfBounds*/);
})();