Currently we use replica sets in Atlas without issue; using the mongodb+srv connection string from the ‘CONNECT’ button on the cluster page we connect nodejs applications, robo3t gui and mongo shell command line with no problems.
We decided to experiment with sharding a cluster in anticipation of increasing volumes of data, so we setup a discreet cluster (non sharded) for test purposes and imported cloned data from one of our running databases. No problem so far.
However once we enabled the “Shard your cluster” option with a value of 2 we can no longer connect to it. Trying to use the “mongodb+srv” value from ‘CONNECT’’ returns a DNS error:
DNSHostNotFound: Failed to look up service
As I understand it we should be connecting to the mongos routers for the sharded cluster. Where are the connection details for the sharded cluster routers to be found in Atlas?