@@ -1056,29 +1056,39 @@ General Parameters
1056
1056
1057
1057
*Default*: 3
1058
1058
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.
1063
1066
1064
1067
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.
1067
1070
1068
- After reaching ``maxNumActiveUserIndexBuilds``, MongodDB blocks
1071
+ After the server reaches ``maxNumActiveUserIndexBuilds``, it blocks
1069
1072
additional user index builds until the number of concurrent index
1070
1073
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.
1074
1081
1075
1082
The following command sets a limit of 4 concurrent index builds:
1076
1083
1077
1084
.. code-block:: javascript
1078
1085
1079
1086
db.adminCommand( { setParameter: 1, maxNumActiveUserIndexBuilds: 4 } )
1080
1087
1081
- See also: :parameter:`maxIndexBuildMemoryUsageMegabytes`
1088
+ See also:
1089
+
1090
+ - :parameter:`maxIndexBuildMemoryUsageMegabytes`
1091
+ - :ref:`index-creation-background`
1082
1092
1083
1093
.. parameter:: notablescan
1084
1094
0 commit comments