MongoS stop accepting application requests when replication failover takes place.

14 views
Skip to first unread message

Raidon

unread,
Jul 10, 2014, 9:12:39 AM7/10/14
to mongod...@googlegroups.com
Hi,

My sharding environment consists of one mongos, 1 shard (replica-set), and 3 config servers.
Yes I know it's not a good setup in terms of sharding environment. But I'm just doing some testing on this setup.

The problem I'm facing is mongos stops accepting requests from applications when failover takes place in replica-set ( when new primary is elected).

I want to know why mongos does not entertain the application requests when new primary is elected in the replica-set (shard)?


Will Berkeley

unread,
Jul 11, 2014, 10:49:23 AM7/11/14
to mongod...@googlegroups.com
Hi. When you say that the mongos isn't accepting application requests when a new primary is elected, do you mean that the mongos isn't accepting requests during the election, or that, once the election is over and there's a new primary, the mongos isn't accepting requests? In the former case, it is expected behavior that writes to a replica set without a primary will fail. This is necessary to maintain consistency of the data. See the docs on elections. If the situation is the latter case, could you provide us with the version of MongoDB you are using and the full error messages that you get from the mongos?

-Will
Reply all
Reply to author
Forward
0 new messages