Skip to content

Commit 8bc491e

Browse files
committed
DOCS-12082: logicalSessionRefreshMillis replace logicalSessionRefreshMinutes
1 parent 76ab37e commit 8bc491e

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

source/reference/command/serverStatus.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,11 @@ logicalSessionRecordCache
441441
:binary:`~bin.mongod` or :binary:`~bin.mongos` instance since the last
442442
refresh period.
443443

444-
.. seealso:: :pipeline:`$listLocalSessions`, :parameter:`logicalSessionRefreshMinutes`
444+
.. seealso::
445+
446+
- :pipeline:`$listLocalSessions`
447+
- :parameter:`logicalSessionRefreshMillis`
448+
- :parameter:`logicalSessionRefreshMinutes`
445449

446450
.. serverstatus:: logicalSessionRecordCache.sessionsCollectionJobCount
447451

source/reference/parameters.txt

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,9 +1201,41 @@ The following parameters support diagnostic data capture (FTDC):
12011201
Logical Session Parameters
12021202
~~~~~~~~~~~~~~~~~~~~~~~~~~
12031203

1204+
.. parameter:: logicalSessionRefreshMillis
1205+
1206+
.. admonition:: Availability
1207+
:class: note
1208+
1209+
New in version 4.0.5 (and version 3.6.9).
1210+
1211+
|both|
1212+
1213+
*Type*: integer
1214+
1215+
*Default*: 300000 (i.e. 5 minutes)
1216+
1217+
The interval (in milliseconds) at which the cache refreshes its logical
1218+
session records against the main session store.
1219+
1220+
You can only set :parameter:`logicalSessionRefreshMillis` at
1221+
startup and cannot change this setting with the
1222+
:dbcommand:`setParameter` command.
1223+
1224+
For example, to set the :parameter:`logicalSessionRefreshMillis`
1225+
for a :binary:`~bin.mongod` instance to 10 minutes:
1226+
1227+
.. code-block:: sh
1228+
1229+
mongod --setParameter logicalSessionRefreshMillis=600000
1230+
12041231
.. parameter:: logicalSessionRefreshMinutes
12051232

1206-
.. versionadded:: 3.6
1233+
.. admonition:: Availability
1234+
:class: note
1235+
1236+
Only for MongoDB 3.6.0-3.6.8 and MongoDB 4.0.0-4.0.4.
1237+
Starting in 4.0.5 (and 3.6.9), see
1238+
:parameter:`logicalSessionRefreshMillis` instead.
12071239

12081240
|both|
12091241

0 commit comments

Comments
 (0)