Wow, so comprehensive.
Thank you very much.

вівторок, 16 травня 2017 р. 18:46:10 UTC+3 користувач Justin du coeur 
написав:
>
> On Tue, May 16, 2017 at 11:38 AM, Evgeny Shepelyuk <eshep...@gmail.com 
> <javascript:>> wrote:
>
>> My current worrying question is about how to properly build extractShardId 
>> function.
>> According to the docs this function must depend on the number of nodes.
>>
>
> While this is true, you shouldn't over-interpret it.  The function isn't 
> based on the exact number of nodes at a given moment, it's based on the 
> number of nodes you *expect* is the *likely* maximum size of the cluster.  
> As you say, you don't want the entity-to-shard mapping to change in 
> mid-stream (which would lead to chaos), so the number needs to be pretty 
> static.
>
> So in practice, you take the expected size of the cluster, multiply that 
> by around 10, and use that for the number of shards.  Exactly where those 
> shards *live* will rearrange more or less automatically as the cluster 
> resizes and things rebalance.
>
> (All of the above is AFAIK; so far, my cluster size is small and 
> constant.  Members of the Akka Team should correct me if I am incorrect.)
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to