Skip to content

Commit bf38c9f

Browse files
authored
DOCSP-33482 Default Concurrent Read/Write Transactions (#4953) (#5061)
* DOCSP-33482 Default Concurrent Read/Write Transactions * move default below * JD feedback * SR feedback * more fixes * include replacement * typo
1 parent ac306fa commit bf38c9f

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
If you use the default value, MongoDB dynamically adjusts the number of tickets
2+
to optimize performance, with a highest possible value of 128.
3+
4+
Starting in MongoDB 7.0, if you set |wtparam| to a non-default value, it
5+
disables an algorithm that dynamically adjusts the number of concurrent storage
6+
engine transactions.

source/reference/parameters.txt

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5211,18 +5211,24 @@ WiredTiger Parameters
52115211

52125212
|mongod-only|
52135213

5214+
*Type*: integer
5215+
5216+
*Default*: 128
5217+
52145218
Starting in MongoDB 7.0, this parameter is available for all storage
52155219
engines. In earlier versions, this parameter is available for the
52165220
WiredTiger storage engine only.
52175221

52185222
Specify the maximum number of concurrent read transactions (read tickets)
52195223
allowed into the storage engine.
52205224

5221-
.. include:: /includes/fact-read-write-concurrency-algorithm.rst
5225+
.. |wtparam| replace:: ``wiredTigerConcurrentReadTransactions``
5226+
5227+
.. include:: /includes/fact-concurrent-read-write-dynamic-behavior.rst
52225228

52235229
.. code-block:: javascript
52245230

5225-
db.adminCommand( { setParameter: 1, wiredTigerConcurrentReadTransactions: <num> } )
5231+
db.adminCommand( { setParameter: 1, wiredTigerConcurrentReadTransactions: <int> } )
52265232

52275233
.. seealso::
52285234

@@ -5234,18 +5240,28 @@ WiredTiger Parameters
52345240

52355241
|mongod-only|
52365242

5243+
*Type*: integer
5244+
52375245
Starting in MongoDB 7.0, this parameter is available for all storage
52385246
engines. In earlier versions, this parameter is available for the
52395247
WiredTiger storage engine only.
52405248

52415249
Specify the maximum number of concurrent write transactions allowed
52425250
into the WiredTiger storage engine.
52435251

5244-
.. include:: /includes/fact-read-write-concurrency-algorithm.rst
5252+
By default, MongoDB sets ``wiredTigerConcurrentWriteTransactions`` to
5253+
whichever value is higher:
5254+
5255+
- Number of cores on the machine running MongoDB
5256+
- 4
5257+
5258+
.. |wtparam| replace:: ``wiredTigerConcurrentWriteTransactions``
5259+
5260+
.. include:: /includes/fact-concurrent-read-write-dynamic-behavior.rst
52455261

52465262
.. code-block:: javascript
52475263

5248-
db.adminCommand( { setParameter: 1, wiredTigerConcurrentWriteTransactions: <num> } )
5264+
db.adminCommand( { setParameter: 1, wiredTigerConcurrentWriteTransactions: <int> } )
52495265

52505266
.. seealso::
52515267

0 commit comments

Comments
 (0)