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 @@ -4732,6 +4732,39 @@ Transaction Parameters
4732
4732
4733
4733
db.adminCommand( { setParameter: 1, coordinateCommitReturnImmediatelyAfterPersistingDecision: true } )
4734
4734
4735
+ .. parameter:: internalSessionsReapThreshold
4736
+
4737
+ .. versionadded:: 6.0
4738
+
4739
+ |both|
4740
+
4741
+ *Default*: 1000
4742
+
4743
+ Session limit for internal session metadata deletion. The metadata:
4744
+
4745
+ - Contains session transaction information for user operations.
4746
+ - Is stored in the :data:`config.transactions` collection.
4747
+
4748
+ When the number of internal sessions is greater than
4749
+ :parameter:`internalSessionsReapThreshold`, the metadata is deleted.
4750
+
4751
+ If you set :parameter:`internalSessionsReapThreshold` to ``0``, the
4752
+ internal session metadata is only deleted when the user session ends.
4753
+
4754
+ The following example sets :parameter:`internalSessionsReapThreshold`
4755
+ to ``500`` sessions:
4756
+
4757
+ .. code-block:: javascript
4758
+
4759
+ db.adminCommand( { setParameter: 1, internalSessionsReapThreshold: 500 } )
4760
+
4761
+ You can also set :parameter:`internalSessionsReapThreshold` at
4762
+ startup. For example:
4763
+
4764
+ .. code-block:: bash
4765
+
4766
+ mongod --setParameter internalSessionsReapThreshold=500
4767
+
4735
4768
.. parameter:: transactionLifetimeLimitSeconds
4736
4769
4737
4770
.. 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