On Wed, Jan 15, 2014 at 3:47 PM, Ramin Etemaadi <[email protected]> wrote:
> Hi, > > I am quite newbie to Akka, I would like to run a simple cluster on five > actual nodes (1 to 5), node1 calls other nodes (2 to 5) and they do some > tasks and return the results to node1. > For the start, I just changed your helloKernel sample ( > https://github.com/akka/akka/blob/master/akka-samples/akka-sample-hello-kernel/src/main/java/sample/kernel/hello/java/HelloKernel.java) > to just print the IP address of actor node. > > Here is my configuration file: > > akka { > actor { > provider = "akka.cluster.ClusterActorRefProvider" > } > remote { > log-remote-lifecycle-events = off > netty.tcp { > hostname = "127.0.0.1" > This won't work, as explained in the documentation: http://doc.akka.io/docs/akka/2.2.3/scala/cluster-usage.html "Note that if you are going to start the nodes on different machines you need to specify the ip-addresses or host names of the machines in application.conf instead of 127.0.0.1" port = 0 > } > } > cluster { > seed-nodes = ["akka.tcp://[email protected]:2552", > "akka.tcp://[email protected]:2552", > "akka.tcp://[email protected]:2552", > "akka.tcp://[email protected]:2552", > "akka.tcp://[email protected]:2552"] > auto-down-unreachable-after = 100s > } > } > > But, now I don't know what should I run on node2 to node5 ? How should the > slave nodes start JVM and akka process? > I can't recommend reading the documentation enough, we've spent quite some effort producing it. Happy Hakking! √ > > Kind regards, > Ramin > > -- > >>>>>>>>>> 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. > -- Cheers, √ *Viktor Klang* *Director of Engineering* Typesafe <http://www.typesafe.com/> Twitter: @viktorklang -- >>>>>>>>>> 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.
