Hi,
On Thu, Jan 9, 2014 at 6:13 PM, Richard Grossman <[email protected]>wrote: > Hi > > I'm using Akka 2.2.3 and after make my routing by code I want to move it > into application.conf to be deploy > > My problem is that I've a hierarchy of actor like this (taking the /user > as base of course) > I create Actor2 from Actor1 > > Actor1 > Actor2 > Actor3 > Actor4 > > So I've 1 dispatcher MyDispatcher > > I've add this to application.conf > akka.actor.deployment { > "/Actor1" { > dispatcher = MyDispatcher > } > > "Actor1/Actor2" { > dispatcher = MyDispatcher > } > > "Actor1/Actor2/Actor3" { > dispatcher = MyDispatcher > router = round-robin > nr-of-instances = 5 > } > } > I think the paths must start with / "/Actor1/Actor2" "/Actor1/Actor2/Actor3" > > First it seems insane because it's already difficult to manage for 5 > actors so you've 200 !!! > You can use wildcards for actors at the same level in the hierarchy. "/Actor1/*" There is a ticket <https://www.assembla.com/spaces/akka/tickets/3493>to allow configuration of whole actor sub-trees. For the dispatcher, an alternative is to only define it in config at the parent actor, and in code use: context.actorOf(Props[Actor2].withDispatcher(context.props.dispatcher), name = "Actor2") > Second the Actor3 is not routed as declared. > Could it be the missing / ? Regards, Patrik > Is there any documentation how to declare something like this ? > > Thanks > > > > > -- > >>>>>>>>>> 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 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/groups/opt_out. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> 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 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/groups/opt_out.
