Skip to content

Commit 20ab14e

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 22b3fbe commit 20ab14e

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
@@ -1104,29 +1104,39 @@ General Parameters
11041104

11051105
*Default*: 3
11061106

1107-
MongoDB limits the number of concurrent user index builds to control
1108-
WiredTiger cache pressure. The primary node can run up to
1109-
``maxNumActiveUserIndexBuilds`` concurrent user index builds. This is
1110-
a global limit that applies across collections.
1107+
Sets the maximum number of concurrent index builds allowed on the
1108+
:term:`primary`. This is a global limit that applies across all
1109+
collections.
1110+
1111+
Increasing the value of ``maxNumActiveUserIndexBuilds`` allows
1112+
additional concurrent index builds at the cost of increased pressure
1113+
on the WiredTiger cache.
11111114

11121115
System indexes are not limited to ``maxNumActiveUserIndexBuilds``,
1113-
however a running system index build will count against the limit for
1114-
user index builds.
1116+
however a system index build counts against the limit for user index
1117+
builds.
11151118

1116-
After reaching ``maxNumActiveUserIndexBuilds``, MongodDB blocks
1119+
After the server reaches ``maxNumActiveUserIndexBuilds``, it blocks
11171120
additional user index builds until the number of concurrent index
11181121
builds drops below the ``maxNumActiveUserIndexBuilds`` limit. If an
1119-
index build is blocked, the server logs a message, "Too many index
1120-
builds running simultaneously, waiting until the number of active
1121-
index builds is below the threshold".
1122+
index build is blocked, the server logs this message:
1123+
1124+
.. code-block:: sh
1125+
:copyable: false
1126+
1127+
Too many index builds running simultaneously, waiting until the
1128+
number of active index builds is below the threshold.
11221129

11231130
The following command sets a limit of 4 concurrent index builds:
11241131

11251132
.. code-block:: javascript
11261133

11271134
db.adminCommand( { setParameter: 1, maxNumActiveUserIndexBuilds: 4 } )
11281135

1129-
See also: :parameter:`maxIndexBuildMemoryUsageMegabytes`
1136+
See also:
1137+
1138+
- :parameter:`maxIndexBuildMemoryUsageMegabytes`
1139+
- :ref:`index-creation-background`
11301140

11311141
.. parameter:: notablescan
11321142

0 commit comments

Comments
 (0)