sh.startAutoMerger()
On this page
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoDB server.
Definition
New in version 7.0.
Enables the AutoMerger.
Syntax
sh.startAutoMerger()
Behavior
To set the time intervals for automatic chunk merges, use these parameters:
Example
The following example enables the AutoMerger. Run the example
from mongos
:
sh.startAutoMerger()
Learn More
sh.stopAutoMerger()
methodsh.enableAutoMerger()
methodsh.disableAutoMerger()
method
configureCollectionBalancing
commandmergeAllChunksOnShard
commandautoMergerIntervalSecs
parameterautoMergerThrottlingMS
parameter