Skip to content

Commit a137db9

Browse files
authored
DOCSP-34743 7.0 new concurrent read/write behavior (#7046)
* DOCSP-34743 adding dynamic concurrency info * DOCSP-34743 adding dynamic concurrency info * DOCSP-34743 adding dynamic concurrency info * DOCSP-34743 fixing prefix * DOCSP-34743 simplifying wording * DOCSP-34743 adding overload info * DOCSP-34743 adding overload info * DOCSP-34743 adding overload info
1 parent 547c7d3 commit a137db9

File tree

4 files changed

+45
-5
lines changed

4 files changed

+45
-5
lines changed

source/core/inmemory.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,13 @@ encryption at rest configuration.
6565

6666
.. _inmemory-concurrency:
6767

68-
Concurrency
69-
-----------
68+
Transaction (Read and Write) Concurrency
69+
----------------------------------------
70+
71+
.. include:: /includes/fact-dynamic-concurrency.rst
72+
73+
Document Level Concurrency
74+
--------------------------
7075

7176
The in-memory storage engine uses *document-level* concurrency control for write
7277
operations. As a result, multiple clients can modify different

source/core/wiredtiger.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,22 @@ engine:
6060
WiredTiger doesn't allocate cache on a per-database or per-collection
6161
level.
6262

63+
Transaction (Read and Write) Concurrency
64+
----------------------------------------
65+
66+
.. include:: /includes/fact-dynamic-concurrency.rst
67+
68+
To view the number of concurrent read transactions (read tickets) and
69+
write transactions (write tickets) allowed in the WiredTiger storage
70+
engine, use the :dbcommand:`serverStatus` command and see the
71+
:serverstatus:`wiredTiger.concurrentTransactions` parameter.
72+
73+
.. note::
74+
75+
A low value of :serverstatus:`wiredTiger.concurrentTransactions` does
76+
not indicate a cluster overload. Use the number of queued read and
77+
write tickets as an indication of cluster overload.
78+
6379
Document Level Concurrency
6480
--------------------------
6581

source/includes/7.0-concurrent-transactions.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
Starting in MongoDB 7.0, a default algorithm is used to dynamically adjust
2-
the maximum number of concurrent storage engine transactions (including both
3-
read and write tickets) to optimize database throughput during overload.
1+
Starting in version 7.0, MongoDB uses a default algorithm to dynamically
2+
adjust the maximum number of concurrent storage engine transactions
3+
(including both read and write tickets) to optimize database throughput
4+
during overload.
45

56
The following table summarizes how to identify overload scenarios for MongoDB
67
7.0 and prior releases:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Starting in version 7.0, MongoDB uses a default algorithm to dynamically
2+
adjust the maximum number of concurrent storage engine transactions
3+
(read and write tickets). The dynamic concurrent storage engine
4+
transaction algirithm optimizes database throughput during cluster
5+
overload. The maximum number of concurrent storage engine transactions
6+
(read and write tickets) never exceeds 128 read tickets and 128
7+
write tickets and may differ across nodes in a cluster. The maximum
8+
number of read tickets and write tickets within a single node are always
9+
equal.
10+
11+
To specify a maximum number of read and write transactions (read and
12+
write tickets) that the dynamic maximum can not exceed, use
13+
:parameter:`storageEngineConcurrentReadTransactions` and
14+
:parameter:`storageEngineConcurrentWriteTransactions`.
15+
16+
If you want to disable the dynamic concurrent storage engine
17+
transactions algorithm, file a support request to work with a MongoDB
18+
Technical Services Engineer.

0 commit comments

Comments
 (0)