I have been using Mongo DB Cluster for some data analysis (Mongo DB version 2.4.5) and while inserting some data into the cluster, I found an error which is the same as mentioned in the bug : https://jira.mongodb.org/browse/SERVER-10578
My configuration is as follows:
1) Node1 - mongoconfig server, mongod shard
2) Node2 - mongoconfig server, mongod shard
3) Node3 - mongoconfig server, mongos
4) Node4 - mongos
I changed the OS hostnames of all the machines and made sure that hostnames specified in the DNS server and OS hostnames are the same. After that, the problem got solved.
But now I have a requirement that I need to add mongos instances (nodes/machines) on the fly which will have different IP addresses but the same hostname (both at the OS level and in DNS entries). I will still continue to have unique hostnames (both at OS level and in DNS entries) for all the mongo config servers and mongo shard servers.
Will that work correctly or will I run across the same problem as mentioned in the bug?
Does the requirement of unique hostnames at OS level hold true even for mongos instances or is it just for shards?