Re: how to ensure that one shard does not get overloaded when we use routing

2017-11-03 Thread Emir Arnautović
Hi Ketan, I’ll just add that with 4 shards you might just as well skip bits part - all tenant document will end up on a single shard anyway. Unless you have a lot projectIds or all have pretty much the same number of documents, and you always search single projectId, I would reevaluate using rou

Re: how to ensure that one shard does not get overloaded when we use routing

2017-11-02 Thread Erick Erickson
Well, you have to monitor. That's the down-side to using this type of routing, you're effectively saying "I know enough about my usage to predict". What do you think you're gaining by using this? Putting all docs from a single org on a subset of your servers reduces some part of the parallelism yo