On this page本页内容
balancerStart
¶New in version 3.4.版本3.4中的新功能。
Starts the balancer thread. The command does not wait for a balancing round to start.
Starting in MongoDB 4.2, the command enables auto-splitting for the sharded cluster. To disable auto-splitting when the balancer is enabled, you can use sh.disableAutoSplit()
.
You can only issue the balancerStart
against the admin
database on a mongos
instance.
The command takes the following form:
balancerStart |
any | Any value. |
maxTimeMS |
integer |
Defaults to 60000 milliseconds.
|