title: how to execute read only query on sharded replica set in mongodb
body: <p>Consider following configuration - </p>
  
  <ol>
  <li>2 Shard server each has 1-replica set (say rs0 and rs1). </li>
  <li>3 config server and 1 query router (mongos)</li>
  </ol>
  
  <p>The above sharding configuration is working fine. But, i want to execute read-only query from sharded replica set (from secondary of rs0 and rs1). Since, the mongodb data are exists in both replica set rs0 and rs1. So, how to configure this, to fetch the data from both secondary of rs0 and rs1?.</p>