What’s your basis for thinking that some shard will get more queries? Unless 
you’re using implicit routing, you really have no control over either where 
docs end up or thus where queries go.

If you do somehow know some shards get more queries, one strategy is to simply 
have more _replicas_ for those shards with the ADDREPLICA collections API 
command.


> On Jun 29, 2019, at 7:00 AM, Shawn Heisey <apa...@elyograg.org> wrote:
> 
> On 6/29/2019 12:23 AM, Nawab Zada Asad Iqbal wrote:
>> is it possible to specify different number of replicas for different
>> shards? i.e if I expect some shard to get more queries , i can add more
>> replicas to that shard alone, instead of adding replicas for all the
>> shards.
> 
> On initial collection creation, I don't think that is possible -- the number 
> of replicas requested will apply to every shard.  But you can add and remove 
> replicas on shards after collection creation, so this is achievable.
> 
> Thanks,
> Shawn

Reply via email to