Skip to content

Commit d8ab36b

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

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
@@ -5251,18 +5251,24 @@ WiredTiger Parameters
52515251

52525252
|mongod-only|
52535253

5254+
*Type*: integer
5255+
5256+
*Default*: 128
5257+
52545258
Starting in MongoDB 7.0, this parameter is available for all storage
52555259
engines. In earlier versions, this parameter is available for the
52565260
WiredTiger storage engine only.
52575261

52585262
Specify the maximum number of concurrent read transactions (read tickets)
52595263
allowed into the storage engine.
52605264

5261-
.. include:: /includes/fact-read-write-concurrency-algorithm.rst
5265+
.. |wtparam| replace:: ``wiredTigerConcurrentReadTransactions``
5266+
5267+
.. include:: /includes/fact-concurrent-read-write-dynamic-behavior.rst
52625268

52635269
.. code-block:: javascript
52645270

5265-
db.adminCommand( { setParameter: 1, wiredTigerConcurrentReadTransactions: <num> } )
5271+
db.adminCommand( { setParameter: 1, wiredTigerConcurrentReadTransactions: <int> } )
52665272

52675273
.. seealso::
52685274

@@ -5274,18 +5280,28 @@ WiredTiger Parameters
52745280

52755281
|mongod-only|
52765282

5283+
*Type*: integer
5284+
52775285
Starting in MongoDB 7.0, this parameter is available for all storage
52785286
engines. In earlier versions, this parameter is available for the
52795287
WiredTiger storage engine only.
52805288

52815289
Specify the maximum number of concurrent write transactions allowed
52825290
into the WiredTiger storage engine.
52835291

5284-
.. include:: /includes/fact-read-write-concurrency-algorithm.rst
5292+
By default, MongoDB sets ``wiredTigerConcurrentWriteTransactions`` to
5293+
whichever value is higher:
5294+
5295+
- Number of cores on the machine running MongoDB
5296+
- 4
5297+
5298+
.. |wtparam| replace:: ``wiredTigerConcurrentWriteTransactions``
5299+
5300+
.. include:: /includes/fact-concurrent-read-write-dynamic-behavior.rst
52855301

52865302
.. code-block:: javascript
52875303

5288-
db.adminCommand( { setParameter: 1, wiredTigerConcurrentWriteTransactions: <num> } )
5304+
db.adminCommand( { setParameter: 1, wiredTigerConcurrentWriteTransactions: <int> } )
52895305

52905306
.. seealso::
52915307

0 commit comments

Comments
 (0)