File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1213,6 +1213,27 @@ Logical Session Parameters
1213
1213
1214
1214
mongod --setParameter maxAcceptableLogicalClockDriftSecs=900
1215
1215
1216
+ .. parameter:: maxSessions
1217
+
1218
+ .. versionadded:: 4.0.1
1219
+
1220
+ |both|
1221
+
1222
+ *Type*: integer
1223
+
1224
+ *Default*: 1000000
1225
+
1226
+ The maximum number of sessions that can be cached.
1227
+
1228
+ You can only set :parameter:`maxSessions` during start-up.
1229
+
1230
+ For example, to set the :parameter:`maxSessions`
1231
+ for a :binary:`~bin.mongod` instance to 1000:
1232
+
1233
+ .. code-block:: sh
1234
+
1235
+ mongod --setParameter maxSessions=1000
1236
+
1216
1237
.. parameter:: TransactionRecordMinimumLifetimeMinutes
1217
1238
1218
1239
.. versionadded:: 3.6
Original file line number Diff line number Diff line change @@ -55,3 +55,4 @@ session.
55
55
If the deployment transitions to authentication without any downtime, any
56
56
sessions without an owner cannot be used.
57
57
58
+ .. seealso:: :parameter:`maxSessions`
You can’t perform that action at this time.
0 commit comments