Skip to content

Commit 97c07be

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 dd19c85 commit 97c07be

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
@@ -1252,29 +1252,39 @@ General Parameters
12521252

12531253
*Default*: 3
12541254

1255-
MongoDB limits the number of concurrent user index builds to control
1256-
WiredTiger cache pressure. The primary node can run up to
1257-
``maxNumActiveUserIndexBuilds`` concurrent user index builds. This is
1258-
a global limit that applies across collections.
1255+
Sets the maximum number of concurrent index builds allowed on the
1256+
:term:`primary`. This is a global limit that applies across all
1257+
collections.
1258+
1259+
Increasing the value of ``maxNumActiveUserIndexBuilds`` allows
1260+
additional concurrent index builds at the cost of increased pressure
1261+
on the WiredTiger cache.
12591262

12601263
System indexes are not limited to ``maxNumActiveUserIndexBuilds``,
1261-
however a running system index build will count against the limit for
1262-
user index builds.
1264+
however a system index build counts against the limit for user index
1265+
builds.
12631266

1264-
After reaching ``maxNumActiveUserIndexBuilds``, MongodDB blocks
1267+
After the server reaches ``maxNumActiveUserIndexBuilds``, it blocks
12651268
additional user index builds until the number of concurrent index
12661269
builds drops below the ``maxNumActiveUserIndexBuilds`` limit. If an
1267-
index build is blocked, the server logs a message, "Too many index
1268-
builds running simultaneously, waiting until the number of active
1269-
index builds is below the threshold".
1270+
index build is blocked, the server logs this message:
1271+
1272+
.. code-block:: sh
1273+
:copyable: false
1274+
1275+
Too many index builds running simultaneously, waiting until the
1276+
number of active index builds is below the threshold.
12701277

12711278
The following command sets a limit of 4 concurrent index builds:
12721279

12731280
.. code-block:: javascript
12741281

12751282
db.adminCommand( { setParameter: 1, maxNumActiveUserIndexBuilds: 4 } )
12761283

1277-
See also: :parameter:`maxIndexBuildMemoryUsageMegabytes`
1284+
See also:
1285+
1286+
- :parameter:`maxIndexBuildMemoryUsageMegabytes`
1287+
- :ref:`index-creation-background`
12781288

12791289
.. parameter:: notablescan
12801290

0 commit comments

Comments
 (0)