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 @@ -4014,11 +4014,11 @@ Transaction Parameters
4014
4014
*Default*: 60
4015
4015
4016
4016
Specifies the lifetime of :doc:`multi-document transactions
4017
- </core/transactions>`. Transactions that exceeds this limit are
4017
+ </core/transactions>`. Transactions that exceed this limit are
4018
4018
considered expired and will be aborted by a periodic cleanup
4019
4019
process. The cleanup process runs every
4020
4020
:parameter:`transactionLifetimeLimitSeconds`/2 seconds or at least
4021
- once per every 60 seconds.
4021
+ once every 60 seconds.
4022
4022
4023
4023
The cleanup process helps relieve storage cache pressure.
4024
4024
@@ -4042,7 +4042,9 @@ Transaction Parameters
4042
4042
4043
4043
To set the parameter for a sharded cluster, the parameter must be
4044
4044
modified for all shard replica set members.
4045
-
4045
+
4046
+ .. include:: /includes/transactionLifetimeLimitSeconds-parameter.rst
4047
+
4046
4048
.. parameter:: maxTransactionLockRequestTimeoutMillis
4047
4049
4048
4050
.. 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