Skip to content

Commit 818c0ab

Browse files
(DOCSP-27774): Improve discoverability of maxNumActiveUserIndexBuilds (#2488)
* (DOCSP-27774): Improve discoverability of maxNumActiveUserIndexBuilds parameter * wording * more wording adjustments * update see also * wording * wording * wording * edits
1 parent 3ff7095 commit 818c0ab

File tree

2 files changed

+33
-11
lines changed

2 files changed

+33
-11
lines changed

source/core/index-creation.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,18 @@ To mitigate the risk of this occurrence, before creating the index:
127127

128128
:ref:`index-creation-index-consistency`
129129

130+
Maximum Concurrent Index Builds
131+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
132+
133+
By default, the server allows up to three concurrent index builds. To
134+
change the number of allowed concurrent index builds, modify the
135+
:parameter:`maxNumActiveUserIndexBuilds` parameter.
136+
137+
If the number of concurrent index builds reaches the limit specified by
138+
``maxNumActiveUserIndexBuilds``, the server blocks additional index
139+
builds until the number of concurrent index builds drops below the
140+
limit.
141+
130142
Index Build Impact on Database Performance
131143
------------------------------------------
132144

source/reference/parameters.txt

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,29 +1281,39 @@ General Parameters
12811281

12821282
*Default*: 3
12831283

1284-
MongoDB limits the number of concurrent user index builds to control
1285-
WiredTiger cache pressure. The primary node can run up to
1286-
``maxNumActiveUserIndexBuilds`` concurrent user index builds. This is
1287-
a global limit that applies across collections.
1284+
Sets the maximum number of concurrent index builds allowed on the
1285+
:term:`primary`. This is a global limit that applies across all
1286+
collections.
1287+
1288+
Increasing the value of ``maxNumActiveUserIndexBuilds`` allows
1289+
additional concurrent index builds at the cost of increased pressure
1290+
on the WiredTiger cache.
12881291

12891292
System indexes are not limited to ``maxNumActiveUserIndexBuilds``,
1290-
however a running system index build will count against the limit for
1291-
user index builds.
1293+
however a system index build counts against the limit for user index
1294+
builds.
12921295

1293-
After reaching ``maxNumActiveUserIndexBuilds``, MongodDB blocks
1296+
After the server reaches ``maxNumActiveUserIndexBuilds``, it blocks
12941297
additional user index builds until the number of concurrent index
12951298
builds drops below the ``maxNumActiveUserIndexBuilds`` limit. If an
1296-
index build is blocked, the server logs a message, "Too many index
1297-
builds running simultaneously, waiting until the number of active
1298-
index builds is below the threshold".
1299+
index build is blocked, the server logs this message:
1300+
1301+
.. code-block:: sh
1302+
:copyable: false
1303+
1304+
Too many index builds running simultaneously, waiting until the
1305+
number of active index builds is below the threshold.
12991306

13001307
The following command sets a limit of 4 concurrent index builds:
13011308

13021309
.. code-block:: javascript
13031310

13041311
db.adminCommand( { setParameter: 1, maxNumActiveUserIndexBuilds: 4 } )
13051312

1306-
See also: :parameter:`maxIndexBuildMemoryUsageMegabytes`
1313+
See also:
1314+
1315+
- :parameter:`maxIndexBuildMemoryUsageMegabytes`
1316+
- :ref:`index-creation-background`
13071317

13081318
.. parameter:: notablescan
13091319

0 commit comments

Comments
 (0)