>
>     1. Despite using a router to distribute work to the 
> workers<https://github.com/Synesso/scratch-akka-cluster-singleton/blob/distributed/src/main/scala/sample/cluster/simple/TheFatController.scala#L24>,
>  
> all work continues to happen on the same node (even when max workers is 
> reached for that node).
>
 
This can be caused by the known 
regression<https://www.assembla.com/spaces/akka/simple_planner#/ticket:3967>in 
akka 2.3.1. In that case the second node is unable to join the cluster, 
so all work happens on the first node. I have tried your example code with 
akka 2.3.0 and workers are being distributed between two or more nodes.

    2. Despite stopping the 
workers<https://github.com/Synesso/scratch-akka-cluster-singleton/blob/distributed/src/main/scala/sample/cluster/simple/Worker.scala#L11>,
 
> the system is unable to process work once the max number of 
> workers<https://github.com/Synesso/scratch-akka-cluster-singleton/blob/distributed/src/main/scala/sample/cluster/simple/TheFatController.scala#L29>is
>  hit.
> I hope someone can help me as I can't see what I've done wrong.
>

I see that you are stopping workers with a PoisonPill message. This stops 
the worker and its mailbox. In this case router is not going to restart 
workers. However if you use Kill message to kill worker, then 
ActorKilledException is thrown in the worker which kills the worker but 
also notifies the router. Router will act (escalate, restart, ...) to this 
exception according to its supervision strategy.

Martynas Mickevičius
Typesafe – Reactive Apps on the JVM

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
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