Hi Hector,

On Wed, Jan 7, 2015 at 4:29 PM, Héctor Veiga <kec...@gmail.com> wrote:

> Hello,
>
> I have a setup of 5 nodes running clustered using Akka Cluster (Akka
> 2.3.7) and I am using a consistent-hashing router to spread the load among
> all nodes. My consistent key is based on a String and I have verified that
> the number of actors creating in the cluster is almost evenly distributed.
> However, my problem is that for some particular keys there is around 3x
> more load than for the rest. This leads to have an unbalanced data
> processing cluster where some nodes are processing around 5000 messages per
> second and some others just 2000.
>
> Is there a way to distribute the actors in the cluster in a way that when
> a new actor for a new consistent hash key is created, the actor is created
> in the node that is processing less data?
>

I'm afraid that is not possible with the consistent hashing router or any
of the other built-in tools. You have to develop that yourself with an
ordinary actor.

Regards,
Patrik


>
> Thank you for your help,
>
> Hector.
>
> --
> >>>>>>>>>> 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.
>



-- 

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