Reputation: 17
I do understand why we need an arbiter in mongoDb election, ref - Why do we need an 'arbiter' in MongoDB replication?
But how does an arbiter actually vote since it does not maintain any replicas of the data?
Does it just votes randomly ? Or does it votes based on some metadata ?
Upvotes: 0
Views: 170
Reputation: 28336
The arbiter does not maintain replicas of the data, but it does maintain the replica set configuration document, and it exchanges heartbeats with the other members of the replica set.
This means that the arbiter has all the same information about member health that the other replica set members have, so it can use exactly the same voting criteria as a secondary node.
Upvotes: 1