If I have different webpages for differents countries and each webpage have a mongodb replicaSet of 2-3 nodes, can I use an arbiter with more than one replicaSet so it votes in all?
Or I need to initiate an arbiter per replicaSet?
Arbiters are mongod instances that are part of a replica set but do not hold data (i.e. do not provide data redundancy). They can, however, participate in elections. Arbiters have minimal resource requirements and do not require dedicated hardware.
The Arbiter acts as the primary enemy of the game, charged with the destruction of humanity by the Prophet of Regret. He is ultimately killed by human forces at the game's climax.
MongoDB supports replica sets, which can have up to 50 nodes.
A replica set can have up to 50 members but only 7 voting members.
You can have multiple arbiter processes running on a single server (different ports). They are quite lightweight in terms of resources, as all they are doing is voting. You should look into starting the arbiters with the following arguments to keep them as lightweight as possible (from the Command Line Parameters Page):
If you do not run with those options, then the arbiter will still work, but will pre-allocate data files before it knows that it is an arbiter.
Update (Jan 2018): Since this answer was written official guidance has been added to the docs for startup options of an arbiter, including options in the new config format. It can be found here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With