mongosh
mongo
Docs 主页 → 开发应用程序 → MongoDB Manual
在此页面上
sh.waitForBalancerOff(timeout, interval)
一直等到负载均衡器停止运行的内部方法。
timeout
interval
sh.enableBalancing()
sh.disableBalancing()
sh.getBalancerState()
sh.isBalancerRunning()
sh.setBalancerState()
sh.startBalancer()
sh.stopBalancer()
sh.waitForBalancer()