On Sat, Apr 16, 2016 at 5:57 PM, Prasanna Thirumalai <[email protected]> wrote:
> I am using Akka Cluster 2.4.3 and trying to setup a simple cluster in my > machine to understand its working better. I have a singleton cluster with > remoting enabled with primary and standby master and one worker node. Each > of these 3 run in separate JVMs > > Things work fine when all the nodes are started the first time. If I kill > and restart the worker, I see following issues happening > > *Restart Worker* > > When the worker comes back after restart, the master on receiving MemberUp > event > tries to resolve for the actorRef from the member address the following way > > context.actorSelection(member.address.toString).resolveOne(15 seconds) > > Actor selection is for sending messages to an actor path, not an ActorSystem address (hostname:port). See http://doc.akka.io/docs/akka/2.4.4/general/addressing.html Perhaps you should also study this example: http://doc.akka.io/docs/akka/2.4.4/scala/cluster-usage.html#Subscribe_to_Cluster_Events /Patrik > This fails with an exception saying ActorNotFound. This works with no > problem when all the nodes are coming up for the first time in the cluster. > > *Restart worker again* > > This time, the worker comes up with the following message > > [WARN] [04/15/2016 18:24:24.991] > [clustersystem-akka.remote.default-remote-dispatcher-5] > [akka.remote.Remoting] Tried to associate with unreachable remote address > [akka.tcp://clustersystem@host1:2551]. Address is now gated for 5000 ms, > all messages to this address will be delivered to dead letters. Reason: > [The remote system has quarantined this system. No further associations to > the remote system are possible until this system is restarted.] > > *Restart worker again* > > This time the resolveOne on a MemberUp event works. > > I am having a bit of difficulty in understanding what is happening here, I > have looked into the docs but I did not find anything that will help me in > there. > > *application.conf* > > akka { > actor { > provider = "akka.cluster.ClusterActorRefProvider" > } > > remote { > enabled-transports = ["akka.remote.netty.tcp"] > } > > log-dead-letters = off > jvm-exit-on-fatal-error = on > > loglevel = "DEBUG" > > remote { > log-remote-lifecycle-events = off > netty.tcp { > hostname = "host1" > port = 0 > } > } > > cluster { > seed-nodes = [ > "akka.tcp://clustersystem@host1:2551", > "akka.tcp://clustersystem@host1:2552"] > > auto-down-unreachable-after = 10s > } > > > extensions = ["akka.cluster.metrics.ClusterMetricsExtension"]} > > I start master nodes at ports 2551 and 2552 (provide the ports as command > line args) and I start the worker on port 3551 > > > Posted the same question to stackoverflow: > http://stackoverflow.com/questions/36659242/akka-singleton-cluster-resolveonce-of-a-worker-by-master-fails-after-restart > > -- > >>>>>>>>>> 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 https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Patrik Nordwall Akka Tech Lead Lightbend <http://www.lightbend.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
