首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Mongo Balancer未运行

Mongo Balancer未运行
EN

Stack Overflow用户
提问于 2017-09-13 18:33:21
回答 1查看 1.5K关注 0票数 0

我配置了mongo共享集群,但当我进入sh.isBalancerRunning()时,它给出了false答案,当我通过sh.status()检查状态时,它也给出了以下输出。

代码语言:javascript
复制
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:

如何启动平衡器?

EN

回答 1

Stack Overflow用户

发布于 2018-06-25 22:47:47

您需要先检查连接。

验证从Mongo的服务器到"rs1“主Mon神实例的连通性。我相信它应该能行得通。

辅助窗口,请在没有平衡器活动窗口计划的情况下重试。我猜MongoDB Balancer不会把18:00读成第二天。

您可以更改它:

代码语言:javascript
复制
use config

db.settings.update({_id: "balancer"}, {$unset: {activeWindow: {start: "23:00", stop:"18:00"}}})
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46195207

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档