Docs 菜单

sh.disableBalancing()

在此页面上

sh.disableBalancing(namespace)

Disables the balancer for the specified sharded collection. This does not affect the balancing of chunks for other sharded collections in the same cluster.

重要

You can only run sh.disableBalancing() on a mongos instance. sh.disableBalancing() errors if run on mongod instance.

sh.disableBalancing() 方法具有以下参数:

Parameter
类型
说明

namespace

字符串

The namespace of the collection.

For more information on the balancing process, see 管理分片集群负载均衡器 and 分片集群负载均衡器.

此方法可用于以下环境中托管的部署:

在此页面上