Can MongoDb argument be used with multiple replicaSet sets?

If I have different web pages for different countries, and each web page has a morgodbSet replica of 2-3 nodes, can I use an arbiter with several replicas to vote in all?

Or do I need to initiate an arbiter on replicaSet?

+8
mongodb replication database-replication
source share
1 answer

On one server (different ports), several arbiter processes can be performed. They are fairly lightweight in terms of resources, because all they do is vote. You should consider starting arbitrators with the following arguments so that they are as light as possible (from the Command Line Parameters Page ):

  • - smallfiles - use a smaller initial file size (16 MB) and a maximum size (512 MB)
  • - nojournal - Disable logging. In version 2.0+, logging is enabled by default for 64-bit

If you do not use these parameters, the arbiter will still work, but will first select the data files before it finds out that it is an arbiter.

Update (January 2018):. Since this answer was written, an official guide was added to the documents for the arbitrator launch parameters, including parameters in the new configuration format. You can find it here.

+7
source share

All Articles