Does anyone know how mongos select a mongod to perform a query/insert/... ?
We have 3 shards. Every shard have 3 mongod(s) which were configurated as a replica set.
[More detail] After mongos determined which shard(maybe many shards) to perform the request by using shard key, how mongos select the right mongod(in the shard, one is primary, the other two are secondary)? Or how to direct the mongos to read from the secondary member in the shard? Is it possible? Is something like ReadPreference.SECONDARY_PREFERRED can be used?