search

Home  >  Q&A  >  body text

sharding - MongoDB的Mongos启动就死

求大牛指教。

4个mongos只能启动1个,如果启动其他的mongos,所有的查询都执行不了。

Tue Aug 13 14:17:16 [conn10647] DBClientCursor::init call() failed Tue Aug 13 14:17:16 [conn2937] ns: user.dev could not initialize cursor across all shards because : stale config detected for ns: user.dev ParallelCursor::_init @ s02/192.168.1.101:9100,192.168.1.102:9100,192.168.1.103:9100 attempt: 0

阿神阿神2768 days ago620

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-04-21 11:20:30

    Only one can be started. Does it mean that only one mongos can be queried normally? What does it mean that the query cannot be executed? What if it dies when it starts? Which mongos have this problem? What is the version number, how many mongods, how many mongos, and config server? Was it possible before? What changes have you made?

    If one (and at most one) mongos migrates data between mongds, then other mongos will find the original shard based on the cache's config information and find that the data is no longer there and the config has changed. At this time, the stale config will appear. The error is a normal error. Mongos will go to the config server to ask for a new config. It should be able to get the latest config, find the data, and continue working happily.

    reply
    0
  • Cancelreply