Skip to content

Commit ba411c3

Browse files
committed
DOCS-11904: maxSessions parameter
1 parent a3d5b8f commit ba411c3

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

source/reference/parameters.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,27 @@ Logical Session Parameters
12131213

12141214
mongod --setParameter maxAcceptableLogicalClockDriftSecs=900
12151215

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+
12161237
.. parameter:: TransactionRecordMinimumLifetimeMinutes
12171238

12181239
.. versionadded:: 3.6

source/reference/server-sessions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,4 @@ session.
5555
If the deployment transitions to authentication without any downtime, any
5656
sessions without an owner cannot be used.
5757

58+
.. seealso:: :parameter:`maxSessions`

0 commit comments

Comments
 (0)