Ha.... my fault!

I didn't know that the allocation strategy instance could be invoked by 
multiple threads concurrently, having multiple shard regions. My code was 
actor oriented and then not prepared for concurrency. After a 15s fix, 
letting an instance for each shard region,  everything worked like a charm.

Many thanks for your help!


El lunes, 19 de octubre de 2015, 17:05:15 (UTC+2), Eduardo Fernandes 
escribió:
>
> Ok. I'l work on that.
>
> Thanks.
>
> El lunes, 19 de octubre de 2015, 14:39:46 (UTC+2), Patrik Nordwall 
> escribió:
>>
>> Hi Eduardo,
>>
>> That sounds strange. I'm not aware of any know bug here, but that doesn't 
>> mean that it is bug free. Could you setup a testcase/example that we can 
>> use to reproduce the issue?
>>
>> Thanks,
>> Patrik
>>
>> On Mon, Oct 19, 2015 at 1:03 PM, Eduardo Fernandes <edu...@gmail.com> 
>> wrote:
>>
>>> Hi.
>>>
>>> We're using Akka 2.3.13 (Java Interface).
>>>
>>> We have our own AllocationStrategy implementation and the idea is move 
>>> several shards from one node to other.  We have a 2 nodes in the cluster 
>>> and 1000 shards in total. When we start 7000 actors we have approximately 
>>> 3500 actors on each node inside 500 shards on each node (aprox). Everything 
>>> normal and behaving like the user manual.
>>>
>>> At some point in time we return in the rebalance() method around 300 
>>> shards to rebalance. What I'm observing is that some actors not belonging 
>>> to a shard in the rebalancing set are being stopped, what is quite strange.
>>>
>>> I can't find any public issue related to this. There is some known 
>>> relocation bug?
>>>
>>> Many thanks in advance.
>>>
>>> /Eduardo
>>>
>>> -- 
>>> >>>>>>>>>> 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+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>>
>> Patrik Nordwall
>> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
>> Twitter: @patriknw
>>
>>

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to