Thank you Martynas for your help.
I've dropped down to 2.3.0 and modified the Worker so that it stays alive. (
commit). Retesting, I get a different result to you. The app honours the ClusterRouterPoolSetting
totalInstances, but it ignores
maxInstancesPerNode and
allowLocalRoutees.
With Akka 2.3.0 and this code inside a Cluster Singleton:
context.actorOf(ClusterRouterPool(
RoundRobinPool(10),
ClusterRouterPoolSettings(
totalInstances = 30,
maxInstancesPerNode = 10,
allowLocalRoutees = false,
useRole = None)
).props(Props[Worker]), name = "worker-router")
I see that 30 workers are created on that node and nothing on any other.
Is creating the router inside a singleton somehow locking the routees down to that node? Why do you and I see different results for the same source?
Cheers
Jem