@@ -1281,29 +1281,39 @@ General Parameters
1281
1281
1282
1282
*Default*: 3
1283
1283
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.
1288
1291
1289
1292
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.
1292
1295
1293
- After reaching ``maxNumActiveUserIndexBuilds``, MongodDB blocks
1296
+ After the server reaches ``maxNumActiveUserIndexBuilds``, it blocks
1294
1297
additional user index builds until the number of concurrent index
1295
1298
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.
1299
1306
1300
1307
The following command sets a limit of 4 concurrent index builds:
1301
1308
1302
1309
.. code-block:: javascript
1303
1310
1304
1311
db.adminCommand( { setParameter: 1, maxNumActiveUserIndexBuilds: 4 } )
1305
1312
1306
- See also: :parameter:`maxIndexBuildMemoryUsageMegabytes`
1313
+ See also:
1314
+
1315
+ - :parameter:`maxIndexBuildMemoryUsageMegabytes`
1316
+ - :ref:`index-creation-background`
1307
1317
1308
1318
.. parameter:: notablescan
1309
1319
0 commit comments