Better HN
topnewbestaskshowjobs
Log inSign up

ianrose

3 karma · joined Nov 5, 2012 (14y ago) · 1 submissions

Submissions

comment 14y ago · link · parent

"However due to the way voting works with MongoDB, you must use an odd number of replica set members."

So what happens if I have 2 sequential failures? Suppose I have a replica set of size 5 and the master fails? The remaining 4 would elect a new master from amongst themselves, right? But then what if this next master also fails? The remaining 3 nodes are still a quorum (3 > 5/2) and thus (theoretically) should be able to elect a master. But am I to understand that they won't be able to do so?