File tree Expand file tree Collapse file tree 4 files changed +45
-5
lines changed Expand file tree Collapse file tree 4 files changed +45
-5
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,13 @@ encryption at rest configuration.
65
65
66
66
.. _inmemory-concurrency:
67
67
68
- Concurrency
69
- -----------
68
+ Transaction (Read and Write) Concurrency
69
+ ----------------------------------------
70
+
71
+ .. include:: /includes/fact-dynamic-concurrency.rst
72
+
73
+ Document Level Concurrency
74
+ --------------------------
70
75
71
76
The in-memory storage engine uses *document-level* concurrency control for write
72
77
operations. As a result, multiple clients can modify different
Original file line number Diff line number Diff line change @@ -57,6 +57,22 @@ engine:
57
57
WiredTiger doesn't allocate cache on a per-database or per-collection
58
58
level.
59
59
60
+ Transaction (Read and Write) Concurrency
61
+ ----------------------------------------
62
+
63
+ .. include:: /includes/fact-dynamic-concurrency.rst
64
+
65
+ To view the number of concurrent read transactions (read tickets) and
66
+ write transactions (write tickets) allowed in the WiredTiger storage
67
+ engine, use the :dbcommand:`serverStatus` command and see the
68
+ :serverstatus:`wiredTiger.concurrentTransactions` parameter.
69
+
70
+ .. note::
71
+
72
+ A low value of :serverstatus:`wiredTiger.concurrentTransactions` does
73
+ not indicate a cluster overload. Use the number of queued read and
74
+ write tickets as an indication of cluster overload.
75
+
60
76
Document Level Concurrency
61
77
--------------------------
62
78
Original file line number Diff line number Diff line change 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.
4
5
5
6
The following table summarizes how to identify overload scenarios for MongoDB
6
7
7.0 and prior releases:
Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments