@@ -3199,9 +3199,6 @@ Sharding Parameters
3199
3199
Maximum time that :binary:`~bin.mongos` goes without communication to a
3200
3200
host before :binary:`~bin.mongos` drops all connections to the host.
3201
3201
3202
- You can only set this parameter during start-up and cannot change
3203
- this setting using the :dbcommand:`setParameter` database command.
3204
-
3205
3202
If set, :parameter:`ShardingTaskExecutorPoolHostTimeoutMS` should be
3206
3203
greater than the sum of
3207
3204
:parameter:`ShardingTaskExecutorPoolRefreshRequirementMS` and
@@ -3210,10 +3207,21 @@ Sharding Parameters
3210
3207
:parameter:`ShardingTaskExecutorPoolHostTimeoutMS` to be greater than the
3211
3208
sum.
3212
3209
3210
+ The following example sets
3211
+ :parameter:`ShardingTaskExecutorPoolHostTimeoutMS` to ``120000``
3212
+ during startup:
3213
+
3213
3214
.. code-block:: bash
3214
3215
3215
3216
mongos --setParameter ShardingTaskExecutorPoolHostTimeoutMS=120000
3216
3217
3218
+ During runtime, you can also set the parameter with the
3219
+ :dbcommand:`setParameter` command:
3220
+
3221
+ .. code-block:: javascript
3222
+
3223
+ db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolHostTimeoutMS: 120000 } )
3224
+
3217
3225
.. parameter:: ShardingTaskExecutorPoolMaxConnecting
3218
3226
3219
3227
.. versionadded:: 3.6
@@ -3235,13 +3243,21 @@ Sharding Parameters
3235
3243
If it is greater, :binary:`~bin.mongos` ignores the
3236
3244
:parameter:`ShardingTaskExecutorPoolMaxConnecting` value.
3237
3245
3238
- You can only set this parameter during start-up and cannot change
3239
- this setting using the :dbcommand:`setParameter` database command.
3246
+ The following example sets
3247
+ :parameter:`ShardingTaskExecutorPoolMaxConnecting` to ``20``
3248
+ during startup:
3240
3249
3241
3250
.. code-block:: bash
3242
3251
3243
3252
mongos --setParameter ShardingTaskExecutorPoolMaxConnecting=20
3244
3253
3254
+ During runtime, you can also set the parameter with the
3255
+ :dbcommand:`setParameter` command:
3256
+
3257
+ .. code-block:: javascript
3258
+
3259
+ db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolMaxConnecting: 20 } )
3260
+
3245
3261
.. parameter:: ShardingTaskExecutorPoolMaxSize
3246
3262
3247
3263
Type: integer
@@ -3259,12 +3275,20 @@ Sharding Parameters
3259
3275
3260
3276
ShardingTaskExecutorPoolMaxSize * taskExecutorPoolSize
3261
3277
3262
- You can only set this parameter during start-up and cannot change
3263
- this setting using the :dbcommand:`setParameter` database command.
3278
+ The following example sets
3279
+ :parameter:`ShardingTaskExecutorPoolMaxSize` to ``20``
3280
+ during startup:
3264
3281
3265
3282
.. code-block:: bash
3266
3283
3267
- mongos --setParameter ShardingTaskExecutorPoolMaxSize=4
3284
+ mongos --setParameter ShardingTaskExecutorPoolMaxSize=20
3285
+
3286
+ During runtime, you can also set the parameter with the
3287
+ :dbcommand:`setParameter` command:
3288
+
3289
+ .. code-block:: javascript
3290
+
3291
+ db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolMaxSize: 20 } )
3268
3292
3269
3293
:binary:`~bin.mongos` can have up to ``n`` TaskExecutor connection
3270
3294
pools, where ``n`` is the number of cores. See
@@ -3304,13 +3328,21 @@ Sharding Parameters
3304
3328
:parameter:`warmMinConnectionsInShardingTaskExecutorPoolOnStartup`
3305
3329
parameter is enabled by default for the :binary:`~bin.mongos`.
3306
3330
3307
- You can only set this parameter during start-up and cannot change
3308
- this setting using the :dbcommand:`setParameter` database command.
3331
+ The following example sets
3332
+ :parameter:`ShardingTaskExecutorPoolMinSize` to ``2``
3333
+ during startup:
3309
3334
3310
3335
.. code-block:: bash
3311
3336
3312
3337
mongos --setParameter ShardingTaskExecutorPoolMinSize=2
3313
3338
3339
+ During runtime, you can also set the parameter with the
3340
+ :dbcommand:`setParameter` command:
3341
+
3342
+ .. code-block:: javascript
3343
+
3344
+ db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolMinSize: 2 } )
3345
+
3314
3346
:binary:`~bin.mongos` can have up to ``n`` TaskExecutor connection
3315
3347
pools, where ``n`` is the number of cores. See
3316
3348
:parameter:`taskExecutorPoolSize`.
@@ -3331,19 +3363,27 @@ Sharding Parameters
3331
3363
Maximum time the :binary:`~bin.mongos` waits before attempting to
3332
3364
heartbeat a resting connection in the pool.
3333
3365
3334
- You can only set this parameter during start-up and cannot change
3335
- this setting using the :dbcommand:`setParameter` database command.
3336
-
3337
3366
If set, :parameter:`ShardingTaskExecutorPoolRefreshRequirementMS` should be
3338
3367
greater than :parameter:`ShardingTaskExecutorPoolRefreshTimeoutMS`.
3339
3368
Otherwise, :binary:`~bin.mongos` adjusts the value of
3340
3369
:parameter:`ShardingTaskExecutorPoolRefreshTimeoutMS` to be less than
3341
3370
:parameter:`ShardingTaskExecutorPoolRefreshRequirementMS`.
3342
3371
3372
+ The following example sets
3373
+ :parameter:`ShardingTaskExecutorPoolRefreshRequirementMS` to
3374
+ ``90000`` during startup:
3375
+
3343
3376
.. code-block:: bash
3344
3377
3345
3378
mongos --setParameter ShardingTaskExecutorPoolRefreshRequirementMS=90000
3346
3379
3380
+ During runtime, you can also set the parameter with the
3381
+ :dbcommand:`setParameter` command:
3382
+
3383
+ .. code-block:: javascript
3384
+
3385
+ db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolRefreshRequirementMS: 90000 } )
3386
+
3347
3387
.. parameter:: ShardingTaskExecutorPoolRefreshTimeoutMS
3348
3388
3349
3389
Type: integer
@@ -3355,19 +3395,27 @@ Sharding Parameters
3355
3395
Maximum time the :binary:`~bin.mongos` waits for a heartbeat before
3356
3396
timing out the heartbeat.
3357
3397
3358
- You can only set this parameter during start-up and cannot change
3359
- this setting using the :dbcommand:`setParameter` database command.
3360
-
3361
3398
If set, :parameter:`ShardingTaskExecutorPoolRefreshTimeoutMS` should be
3362
3399
less than :parameter:`ShardingTaskExecutorPoolRefreshRequirementMS`.
3363
3400
Otherwise, :binary:`~bin.mongos` adjusts the value of
3364
3401
:parameter:`ShardingTaskExecutorPoolRefreshTimeoutMS` to be less than
3365
3402
:parameter:`ShardingTaskExecutorPoolRefreshRequirementMS`.
3366
3403
3404
+ The following example sets
3405
+ :parameter:`ShardingTaskExecutorPoolRefreshTimeoutMS` to
3406
+ ``30000`` during startup:
3407
+
3367
3408
.. code-block:: bash
3368
3409
3369
3410
mongos --setParameter ShardingTaskExecutorPoolRefreshTimeoutMS=30000
3370
3411
3412
+ During runtime, you can also set the parameter with the
3413
+ :dbcommand:`setParameter` command:
3414
+
3415
+ .. code-block:: javascript
3416
+
3417
+ db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolRefreshTimeoutMS: 30000 } )
3418
+
3371
3419
.. parameter:: ShardingTaskExecutorPoolReplicaSetMatching
3372
3420
3373
3421
.. versionadded:: 4.2
0 commit comments