I'm using MongoDB and I want to know if I can add an Arbiter node in the same server that I'm hosting my Config-Server. Is it possible?

Let's say that I have 3 sharded clusters with 6 servers (2 per shard), 3 config-servers (each one will have arbiter for each shard) and 1 server as mongos (router). Is this good enough?

Also, what is the suggested specs for those Config-Arbiter servers would be?

  • You can configure an arbiter on the primary node itself rather configuring on config server.
    – harshavmb
    Dec 16, 2015 at 6:21

1 Answer 1


Yes. You can add an Arbiter and a Config Server in the same machine.

Generally, you should avoid setting 2 DB process in the same machine because:

  1. Its harder to provision/estimate the machine resources for 2 process running simultaneously
  2. Its usually cheaper to have 2 low-end machines than 1 high-end (horizontal x vertical scaling).
  3. Some resources can't scale in your environment. E.g: network bandwidth.

However, if you want to share resources only with an Arbiter and Config nodes, since they require much less resources then a Primary node, this configuration is quite good.

The following article shows how you could set up your environment with nice images: http://www.kchodorow.com/blog/2010/08/09/sharding-and-replica-sets-illustrated/

Setup: 3 replica sets
mongodb setup

M = Master
S = Slave
A = Arbiter

Configuration: 3 servers
mongodb configuration

C = Config Server
No letter = mongos

Since this configuration mixes things, you can achieve high availability and sharding using just 3 servers.

  • great reply , it was clear enough to me , thanks a lot Nov 4, 2015 at 6:50
  • Setting 2 DB process in the same machine is a bad idea. But using LPAR we can do, as arbiter and config servers don't need a machine with high processing power, I believe LPAR could solve the problem.
    – harshavmb
    Dec 16, 2015 at 6:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.