vmr
vmr

Reputation: 1935

What is vetoes in replication election in MongoDB

What is vetoes in replication election in MongoDB? It is not too clear from the documentation. Doc link: MongoDB vetoes

An appropriate example would be great.

Upvotes: 0

Views: 314

Answers (1)

Sammaye
Sammaye

Reputation: 43884

They work a lot like they do in real life.

Imagine, if you will, that your replica set represents the UN Security Council.

Each member has a veto that they can use to over come any majority vote by other members for a certain notion.

For example, a node in Russia could use their veto to stop any action, including the taking of primary, by the US/EU nodes.

Essentially a veto is a unmutable vote for that member but they can only be used in certain cases as you spotted: http://docs.mongodb.org/manual/core/replica-set-elections/#vetoes-in-elections

Upvotes: 1

Related Questions