File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -4824,6 +4824,39 @@ Transaction Parameters
4824
4824
4825
4825
db.adminCommand( { setParameter: 1, coordinateCommitReturnImmediatelyAfterPersistingDecision: true } )
4826
4826
4827
+ .. parameter:: internalSessionsReapThreshold
4828
+
4829
+ .. versionadded:: 6.0
4830
+
4831
+ |both|
4832
+
4833
+ *Default*: 1000
4834
+
4835
+ Session limit for internal session metadata deletion. The metadata:
4836
+
4837
+ - Contains session transaction information for user operations.
4838
+ - Is stored in the :data:`config.transactions` collection.
4839
+
4840
+ When the number of internal sessions is greater than
4841
+ :parameter:`internalSessionsReapThreshold`, the metadata is deleted.
4842
+
4843
+ If you set :parameter:`internalSessionsReapThreshold` to ``0``, the
4844
+ internal session metadata is only deleted when the user session ends.
4845
+
4846
+ The following example sets :parameter:`internalSessionsReapThreshold`
4847
+ to ``500`` sessions:
4848
+
4849
+ .. code-block:: javascript
4850
+
4851
+ db.adminCommand( { setParameter: 1, internalSessionsReapThreshold: 500 } )
4852
+
4853
+ You can also set :parameter:`internalSessionsReapThreshold` at
4854
+ startup. For example:
4855
+
4856
+ .. code-block:: bash
4857
+
4858
+ mongod --setParameter internalSessionsReapThreshold=500
4859
+
4827
4860
.. parameter:: transactionLifetimeLimitSeconds
4828
4861
4829
4862
.. versionadded:: 4.0
Original file line number Diff line number Diff line change @@ -265,6 +265,13 @@ minimum and maximum sharding TaskExecutor connection pool size for
265
265
Starting in MongoDB 6.0, you can use :parameter:`changeStreamOptions` to control
266
266
the retention policy of change stream pre- and post-images.
267
267
268
+ ``internalSessionsReapThreshold`` Parameter
269
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
270
+
271
+ Starting in MongoDB 6.0, you can use the new
272
+ :parameter:`internalSessionsReapThreshold` parameter to set the session
273
+ limit for internal session metadata deletion.
274
+
268
275
Multiple Arbiters Unsupported
269
276
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
270
277
You can’t perform that action at this time.
0 commit comments