|
Some parts of mongodb seem to be sensitive to IP's vs hostnames when it comes to using config servers. I was wondering if you had a best practice of what set of IPs/hostnames we should use when configuring mongodb. For example :
replSet configurations such as rs.add() or adding members to the config. rs.initiate() always uses the private hostname for the first server but we could create the config manually and then initialize with that if public hostnames are the way to go.
configsvr configurations such as db.runCommand(
{ addshard : "replsetname/<private or public hostname>:port"}
)
mongos --configdb <private ip, private hostname, elastic ip, or public hostname>:port,,...
I would like to make sure we are using the right settings for all of this while in the cloud.
|