@@ -2199,9 +2199,6 @@ Sharding Parameters
2199
2199
Maximum time that :binary:`~bin.mongos` goes without communication to a
2200
2200
host before :binary:`~bin.mongos` drops all connections to the host.
2201
2201
2202
- You can only set this parameter during start-up and cannot change
2203
- this setting using the :dbcommand:`setParameter` database command.
2204
-
2205
2202
If set, :parameter:`ShardingTaskExecutorPoolHostTimeoutMS` should be
2206
2203
greater than the sum of
2207
2204
:parameter:`ShardingTaskExecutorPoolRefreshRequirementMS` and
@@ -2210,10 +2207,21 @@ Sharding Parameters
2210
2207
:parameter:`ShardingTaskExecutorPoolHostTimeoutMS` to be greater than the
2211
2208
sum.
2212
2209
2213
- .. code-block:: sh
2210
+ The following example sets
2211
+ :parameter:`ShardingTaskExecutorPoolHostTimeoutMS` to ``120000``
2212
+ during startup:
2213
+
2214
+ .. code-block:: bash
2214
2215
2215
2216
mongos --setParameter ShardingTaskExecutorPoolHostTimeoutMS=120000
2216
2217
2218
+ During runtime, you can also set the parameter with the
2219
+ :dbcommand:`setParameter` command:
2220
+
2221
+ .. code-block:: javascript
2222
+
2223
+ db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolHostTimeoutMS: 120000 } )
2224
+
2217
2225
.. parameter:: ShardingTaskExecutorPoolMaxConnecting
2218
2226
2219
2227
.. versionadded:: 3.6
@@ -2235,13 +2243,21 @@ Sharding Parameters
2235
2243
If it is greater, :binary:`~bin.mongos` ignores the
2236
2244
:parameter:`ShardingTaskExecutorPoolMaxConnecting` value.
2237
2245
2238
- You can only set this parameter during start-up and cannot change
2239
- this setting using the :dbcommand:`setParameter` database command.
2246
+ The following example sets
2247
+ :parameter:`ShardingTaskExecutorPoolMaxConnecting` to ``20``
2248
+ during startup:
2240
2249
2241
2250
.. code-block:: sh
2242
2251
2243
2252
mongos --setParameter ShardingTaskExecutorPoolMaxConnecting=20
2244
2253
2254
+ During runtime, you can also set the parameter with the
2255
+ :dbcommand:`setParameter` command:
2256
+
2257
+ .. code-block:: javascript
2258
+
2259
+ db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolMaxConnecting: 20 } )
2260
+
2245
2261
.. parameter:: ShardingTaskExecutorPoolMaxSize
2246
2262
2247
2263
Type: integer
@@ -2259,12 +2275,20 @@ Sharding Parameters
2259
2275
2260
2276
ShardingTaskExecutorPoolMaxSize * taskExecutorPoolSize
2261
2277
2262
- You can only set this parameter during start-up and cannot change
2263
- this setting using the :dbcommand:`setParameter` database command.
2278
+ The following example sets
2279
+ :parameter:`ShardingTaskExecutorPoolMaxSize` to ``20``
2280
+ during startup:
2264
2281
2265
2282
.. code-block:: sh
2266
2283
2267
- mongos --setParameter ShardingTaskExecutorPoolMaxSize=4
2284
+ mongos --setParameter ShardingTaskExecutorPoolMaxSize=20
2285
+
2286
+ During runtime, you can also set the parameter with the
2287
+ :dbcommand:`setParameter` command:
2288
+
2289
+ .. code-block:: javascript
2290
+
2291
+ db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolMaxSize: 20 } )
2268
2292
2269
2293
:binary:`~bin.mongos` can have up to ``n`` TaskExecutor connection
2270
2294
pools, where ``n`` is the number of cores. See
@@ -2289,13 +2313,21 @@ Sharding Parameters
2289
2313
connections until :parameter:`ShardingTaskExecutorPoolHostTimeoutMS`
2290
2314
milliseconds pass without any application using that pool.
2291
2315
2292
- You can only set this parameter during start-up and cannot change
2293
- this setting using the :dbcommand:`setParameter` database command.
2316
+ The following example sets
2317
+ :parameter:`ShardingTaskExecutorPoolMinSize` to ``2``
2318
+ during startup:
2294
2319
2295
2320
.. code-block:: sh
2296
2321
2297
2322
mongos --setParameter ShardingTaskExecutorPoolMinSize=2
2298
2323
2324
+ During runtime, you can also set the parameter with the
2325
+ :dbcommand:`setParameter` command:
2326
+
2327
+ .. code-block:: javascript
2328
+
2329
+ db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolMinSize: 2 } )
2330
+
2299
2331
:binary:`~bin.mongos` can have up to ``n`` TaskExecutor connection
2300
2332
pools, where ``n`` is the number of cores. See
2301
2333
:parameter:`taskExecutorPoolSize`.
@@ -2313,19 +2345,27 @@ Sharding Parameters
2313
2345
Maximum time the :binary:`~bin.mongos` waits before attempting to
2314
2346
heartbeat a resting connection in the pool.
2315
2347
2316
- You can only set this parameter during start-up and cannot change
2317
- this setting using the :dbcommand:`setParameter` database command.
2318
-
2319
2348
If set, :parameter:`ShardingTaskExecutorPoolRefreshRequirementMS` should be
2320
2349
greater than :parameter:`ShardingTaskExecutorPoolRefreshTimeoutMS`.
2321
2350
Otherwise, :binary:`~bin.mongos` adjusts the value of
2322
2351
:parameter:`ShardingTaskExecutorPoolRefreshTimeoutMS` to be less than
2323
2352
:parameter:`ShardingTaskExecutorPoolRefreshRequirementMS`.
2324
2353
2325
- .. code-block:: sh
2354
+ The following example sets
2355
+ :parameter:`ShardingTaskExecutorPoolRefreshRequirementMS` to
2356
+ ``90000`` during startup:
2357
+
2358
+ .. code-block:: bash
2326
2359
2327
2360
mongos --setParameter ShardingTaskExecutorPoolRefreshRequirementMS=90000
2328
2361
2362
+ During runtime, you can also set the parameter with the
2363
+ :dbcommand:`setParameter` command:
2364
+
2365
+ .. code-block:: javascript
2366
+
2367
+ db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolRefreshRequirementMS: 90000 } )
2368
+
2329
2369
.. parameter:: ShardingTaskExecutorPoolRefreshTimeoutMS
2330
2370
2331
2371
Type: integer
@@ -2337,19 +2377,27 @@ Sharding Parameters
2337
2377
Maximum time the :binary:`~bin.mongos` waits for a heartbeat before
2338
2378
timing out the heartbeat.
2339
2379
2340
- You can only set this parameter during start-up and cannot change
2341
- this setting using the :dbcommand:`setParameter` database command.
2342
-
2343
2380
If set, :parameter:`ShardingTaskExecutorPoolRefreshTimeoutMS` should be
2344
2381
less than :parameter:`ShardingTaskExecutorPoolRefreshRequirementMS`.
2345
2382
Otherwise, :binary:`~bin.mongos` adjusts the value of
2346
2383
:parameter:`ShardingTaskExecutorPoolRefreshTimeoutMS` to be less than
2347
2384
:parameter:`ShardingTaskExecutorPoolRefreshRequirementMS`.
2348
2385
2349
- .. code-block:: sh
2386
+ The following example sets
2387
+ :parameter:`ShardingTaskExecutorPoolRefreshTimeoutMS` to
2388
+ ``30000`` during startup:
2389
+
2390
+ .. code-block:: bash
2350
2391
2351
2392
mongos --setParameter ShardingTaskExecutorPoolRefreshTimeoutMS=30000
2352
2393
2394
+ During runtime, you can also set the parameter with the
2395
+ :dbcommand:`setParameter` command:
2396
+
2397
+ .. code-block:: javascript
2398
+
2399
+ db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolRefreshTimeoutMS: 30000 } )
2400
+
2353
2401
.. parameter:: ShardingTaskExecutorPoolReplicaSetMatching
2354
2402
2355
2403
.. versionadded:: 4.2
0 commit comments