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