Skip to content

Commit 799eb4b

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 3790d5c commit 799eb4b

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
@@ -1056,29 +1056,39 @@ General Parameters
10561056

10571057
*Default*: 3
10581058

1059-
MongoDB limits the number of concurrent user index builds to control
1060-
WiredTiger cache pressure. The primary node can run up to
1061-
``maxNumActiveUserIndexBuilds`` concurrent user index builds. This is
1062-
a global limit that applies across collections.
1059+
Sets the maximum number of concurrent index builds allowed on the
1060+
:term:`primary`. This is a global limit that applies across all
1061+
collections.
1062+
1063+
Increasing the value of ``maxNumActiveUserIndexBuilds`` allows
1064+
additional concurrent index builds at the cost of increased pressure
1065+
on the WiredTiger cache.
10631066

10641067
System indexes are not limited to ``maxNumActiveUserIndexBuilds``,
1065-
however a running system index build will count against the limit for
1066-
user index builds.
1068+
however a system index build counts against the limit for user index
1069+
builds.
10671070

1068-
After reaching ``maxNumActiveUserIndexBuilds``, MongodDB blocks
1071+
After the server reaches ``maxNumActiveUserIndexBuilds``, it blocks
10691072
additional user index builds until the number of concurrent index
10701073
builds drops below the ``maxNumActiveUserIndexBuilds`` limit. If an
1071-
index build is blocked, the server logs a message, "Too many index
1072-
builds running simultaneously, waiting until the number of active
1073-
index builds is below the threshold".
1074+
index build is blocked, the server logs this message:
1075+
1076+
.. code-block:: sh
1077+
:copyable: false
1078+
1079+
Too many index builds running simultaneously, waiting until the
1080+
number of active index builds is below the threshold.
10741081

10751082
The following command sets a limit of 4 concurrent index builds:
10761083

10771084
.. code-block:: javascript
10781085

10791086
db.adminCommand( { setParameter: 1, maxNumActiveUserIndexBuilds: 4 } )
10801087

1081-
See also: :parameter:`maxIndexBuildMemoryUsageMegabytes`
1088+
See also:
1089+
1090+
- :parameter:`maxIndexBuildMemoryUsageMegabytes`
1091+
- :ref:`index-creation-background`
10821092

10831093
.. parameter:: notablescan
10841094

0 commit comments

Comments
 (0)