sh.disableAutoSplit
Description
New in version 3.4.
Disables the autosplit flag in the config.settings
collection. When auto-splitting is enabled for a sharded cluster,MongoDB automatically splits chunks based on the shard key valuesthe chunk represents to keep the chunks from growing too large.
Auto-splitting is enabled by default. For moreinformation on chunk splits, see Chunk Splits.
You can only run sh.disableAutoSplit()
from amongo
shell connected to a mongos
instance. sh.disableAutoSplit()
errors if run on amongod
instance.
Note
Starting in MongoDB 4.2, sh.stopBalancer()
also disablesauto-splitting for the sharded cluster.
See also