- Reference >
mongoShell Methods >- Sharding Methods >
- sh.enableAutoSplit
sh.enableAutoSplit¶
On this page
Description¶
-
sh.enableAutoSplit()¶ New in version 3.4.
Enables auto-splitting for the sharded cluster.
sh.enableAutoSplit()enables the autosplit flag in theconfig.settingscollection.Auto-splitting is enabled by default.
Important
You can only run
sh.enableAutoSplit()from amongoshell connected to amongosinstance.sh.enableAutoSplit()errors if run on amongodinstance.For more information on chunk splits, see Chunk Splits. For more information about how MongoDB balances chunks among shards, see: Manage Sharded Cluster Balancer and Sharded Cluster Balancer.