sh.disableBalancing()

在本页面

Description

  • sh. disableBalancing(* namespace *)
    • 禁用指定分片集合的平衡器。这不会影响同一集群中其他分片集合的chunks平衡。

Important

您只能在mongos实例上运行sh.disableBalancing()。如果在mongod实例上运行,则sh.disableBalancing()错误。

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

ParameterTypeDescription
namespacestring集合的namespace

有关平衡过程的更多信息,请参见Management 分片集群平衡器分片集群平衡器