我配置了mongo共享集群,但当我进入sh.isBalancerRunning()时,它给出了false答案,当我通过sh.status()检查状态时,它也给出了以下输出。
balancer:
Currently enabled: yes
Currently running: no
Balancer lock taken at Wed Sep 13 2017 05:37:35 GMT+0000 (UTC) by ConfigServer:Balancer
Balancer active window is set between 23:00 and 18:00 server local time
Failed balancer rounds in last 5 attempts: 5
Last reported error: could not find host matching read preference { mode: "primary" } for set rs1
Time of Reported error: Tue Sep 12 2017 14:33:10 GMT+0000 (UTC)
Migration Results for the last 24 hours:如何启动平衡器?
发布于 2018-06-25 22:47:47
您需要先检查连接。
验证从Mongo的服务器到"rs1“主Mon神实例的连通性。我相信它应该能行得通。
辅助窗口,请在没有平衡器活动窗口计划的情况下重试。我猜MongoDB Balancer不会把18:00读成第二天。
您可以更改它:
use config
db.settings.update({_id: "balancer"}, {$unset: {activeWindow: {start: "23:00", stop:"18:00"}}})https://stackoverflow.com/questions/46195207
复制相似问题