File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -1241,6 +1241,39 @@ General Parameters
1241
1241
1242
1242
mongod --setParameter failIndexKeyTooLong=false
1243
1243
1244
+
1245
+ .. parameter:: maxNumActiveUserIndexBuilds
1246
+
1247
+ |mongod-only|
1248
+
1249
+ *Type*: integer
1250
+
1251
+ *Default*: 3
1252
+
1253
+ MongoDB limits the number of concurrent user index builds to control
1254
+ WiredTiger cache pressure. The primary node can run up to
1255
+ ``maxNumActiveUserIndexBuilds`` concurrent user index builds. This is
1256
+ a global limit that applies across collections.
1257
+
1258
+ System indexes are not limited to ``maxNumActiveUserIndexBuilds``,
1259
+ however a running system index build will count against the limit for
1260
+ user index builds.
1261
+
1262
+ After reaching ``maxNumActiveUserIndexBuilds``, MongodDB blocks
1263
+ additional user index builds until the number of concurrent index
1264
+ builds drops below the ``maxNumActiveUserIndexBuilds`` limit. If an
1265
+ index build is blocked, the server logs a message, "Too many index
1266
+ builds running simultaneously, waiting until the number of active
1267
+ index builds is below the threshold".
1268
+
1269
+ The following command sets a limit of 4 concurrent index builds:
1270
+
1271
+ .. code-block:: javascript
1272
+
1273
+ db.adminCommand( { setParameter: 1, maxNumActiveUserIndexBuilds: 4 } )
1274
+
1275
+ See also: :parameter:`maxIndexBuildMemoryUsageMegabytes`
1276
+
1244
1277
.. parameter:: notablescan
1245
1278
1246
1279
|mongod-only|
You can’t perform that action at this time.
0 commit comments