For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

sh.stopAutoMerger() (mongosh method)

sh.stopAutoMerger()

New in version 7.0. :

Disables the AutoMerger.

This method is available in deployments hosted in the following environments:

  • MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud

Important

This command is not supported in M0 and Flex clusters. For more information, see Unsupported Commands.

sh.stopAutoMerger()

When the method runs, it stops the AutoMerger. Any in progress operations issued by the AutoMerger are completed.

The following example disables the AutoMerger. Run the example from mongos:

sh.stopAutoMerger()