--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/fPTaANGIZC4J.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Hi Roland,I ran into the same question discussed here.Say I have a router named "MyRouter" which is configured exactly the same on two different nodes (physically or different JVMs), wouldn't it be good that there is some way I can configure the two routers knowing each other, which means two routers share the same group of routees.Cheers,Honnix
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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 post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
On W2, Wednesday, January 9, 2013 at 3:32 AM, Samuel Gendler wrote:
On Tuesday, January 8, 2013 9:04:48 AM UTC-8, rkuhn wrote:Hi Honnix,you can already share routees between routers by creating them with a routee list instead of a number of routees to be created. The routers would not know about each other, of course, but you could route to the same targets in a scalable or redundant fashion. A similar scheme will be put in place in the cluster-aware version, but there we can actually change the routees on the fly if you add/remove cluster nodes.
If I read the clustering documentation correctly, if you configure a cluster-aware router to use named actors that have already been created, then you are limited to only a single actor per node. You can only have multiple actors per node if you allow the router to manage the routees, which means you can't route to the same routees from anywhere in the cluster unless you are comfortable with being limited to only a single routee per node (or you cascade route, with the cluster routing to one actor per node and then that actor in turn routing to to one of many actors on that node, but then you lose the abilty to transition an actor with all of its pending messages from one node to another).
To quote the clustering documentation:
"When using a router with routees looked up on the cluster member nodes, i.e. the routees are already running, [...] nr-of-instances defines total number of routees in the cluster, but there will not be more than one per node. "
"When using a router with routees created and deployed on the cluster member nodes [...] nr-of-instances defines total number of routees in the cluster, but the number of routees per node, max-nr-of-instances-per-node, will not be exceeded. Setting nr-of-instances to a high value will result in creating and deploying additional routees when new nodes join the cluster."
So it seems that we currently have to choose between having many actors per node (and distributing them around the cluster as needed) or routing to a single pool of actors from all nodes in the cluster. I'm really hoping I'm wrong on this point, as that limitation really hampers my ability to use akka to solve the problem I'm trying to solve. Any clarification you can offer would be much appreciated.
Patrik Nordwall
Typesafe - The software stack for applications that scale
Twitter: @patriknw
Patrik Nordwall
Typesafe - Reactive apps on the JVM
Twitter: @patriknw
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/groups/opt_out.
Awesomely done, Patrik!I've wanted this done for soooo long :)