Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

MongoDB 3.4 - How to add config servers to a mongos

$
0
0

I'm editting the config file of a mongos. And I have a replicaSet of n config servers. To balance the load among all of them, I have to write all config servers in the config file, or it's enough to add the master?

sharding:
  configDB: <configReplSetName>/cfg1.example.net:27017, cfg2.example.net:27017,...

The documentation is not very clear about this. Thank you.

Edit - Possible solution: I've found this doc, where I interpret, that you should add all your config servers to your mongo's config file. Otherway, if the master config server cannot be accessed, the cluster won't be able to operate. This makes sense, since, in mongodb architecture, only mongos can act as load balancers. If someone can confirm this, I will vote him.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>