I am creating a sharded cluster with a 2 node config server replicaset.Due to some reason, the config server replicaset did not get created/setup properly.At this time, I started a mongos process configured to connect to this CSRS and on that box, I see lot of mongos processes getting created
Why wouldnt the mongos process just fail instead of keeping re-spawning and trying to connect to the CSRS? Related to this, how do we check (from an external script) that the CSRS is up & available before starting a mongos process?
The docs (https://docs.mongodb.com/manual/tutorial/troubleshoot-sharded-clusters/#sharding-config-servers-and-availability ) do mention that the CSRS should be available when you first initiate a sharded cluster, but does not mention how to do it.