File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change
1
+ Starting in MongoDB 5.0, if you change the
2
+ :parameter: `transactionLifetimeLimitSeconds ` parameter, you must also
3
+ change :parameter: `transactionLifetimeLimitSeconds ` to the same value on
4
+ all config server replica set members. Keeping this value consistent:
5
+
6
+ - Ensures the routing table history is retained for at least as long as
7
+ the transaction lifetime limit on the shard replica set members.
8
+
9
+ - Reduces the transaction retry frequency and therefore improves
10
+ performance.
Original file line number Diff line number Diff line change @@ -4110,11 +4110,11 @@ Transaction Parameters
4110
4110
*Default*: 60
4111
4111
4112
4112
Specifies the lifetime of :doc:`multi-document transactions
4113
- </core/transactions>`. Transactions that exceeds this limit are
4113
+ </core/transactions>`. Transactions that exceed this limit are
4114
4114
considered expired and will be aborted by a periodic cleanup
4115
4115
process. The cleanup process runs every
4116
4116
:parameter:`transactionLifetimeLimitSeconds`/2 seconds or at least
4117
- once per every 60 seconds.
4117
+ once every 60 seconds.
4118
4118
4119
4119
The cleanup process helps relieve storage cache pressure.
4120
4120
@@ -4138,7 +4138,9 @@ Transaction Parameters
4138
4138
4139
4139
To set the parameter for a sharded cluster, the parameter must be
4140
4140
modified for all shard replica set members.
4141
-
4141
+
4142
+ .. include:: /includes/transactionLifetimeLimitSeconds-parameter.rst
4143
+
4142
4144
.. parameter:: maxTransactionLockRequestTimeoutMillis
4143
4145
4144
4146
.. versionadded:: 4.0
Original file line number Diff line number Diff line change @@ -337,6 +337,11 @@ If ``auditLog.runtimeConfiguration`` is set to ``false`` and an audit
337
337
filter config document is present, then a startup warning will be
338
338
issued but the server will not abort.
339
339
340
+ Reduce Risk of Stale Chunks in Sharded Transactions
341
+ ---------------------------------------------------
342
+
343
+ .. include:: /includes/transactionLifetimeLimitSeconds-parameter.rst
344
+
340
345
General Changes
341
346
---------------
342
347
You can’t perform that action at this time.
0 commit comments