'MongoDB two member replica-set
I have a two member replica set (within a sharded cluster), with no arbiter. I know that the recommended design is to have three servers (or an odd number) but right now I have to stick with this design.
The problem is that when the primary is down, the secondary doesn't get elected as a temporary master (since the priority for both servers is 1 and I have no arbiter).
Is there any way to get that automatic failover (slave becomes primary -> primary back online -> default primary gets its previous state)?
Thank you!
Solution 1:[1]
Unfortunatly to get an elected primary a majority of the set must be online.
There is a specifric word for the type of election process that is used but MongoDBs documentation, from what I can see, has been dumbbed down to remove this information which isn't helpful at all; infact I beleive it is http://en.wikipedia.org/wiki/Quorum
50% is not enough of the members.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sammaye |
