I have configured my production environment with the following details:
1. Three config server
2. Two routers (`mongos`)
3. Two shards of three node replica sets.
My question is: I am trying to connect to the sharded database with the help of the mongo java driver. So, if I give my two mongos IPs for connection, how will the driver select one mongos for routing data, in other words which mongos will be selected as the primary router and how will the other one be picked if one goes down.