Hi,

I am trying to learn the Akka singleton pattern and was looking at the 
distributed worker tutorial given here: 
http://typesafe.com/activator/template/akka-distributed-workers . I am 
trying to play with the scenario where I start 2 masters(backend) nodes as 
different processes. I start them on port 2551 and 2552. 2551 being the 
oldest is the singleton master and 2552 is a standby.

Now according to the tutorial:

"In case of failure of the master node another master actor is 
automatically started on a standby node. The master on the standby node 
takes over the responsibility for outstanding work."

However when I kill the master running on port 2551, the standby master on 
2552 doesn't promote itself to master and I keep getting the following 
error in the logs:

[WARN] [04/08/2015 15:28:11.665] 
[ClusterSystem-akka.remote.default-remote-dispatcher-18] 
[akka.tcp://[email protected]:2552/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2FClusterSystem%40127.0.0.1%3A2551-3/endpointWriter]
 
AssociationError [akka.tcp://[email protected]:2552] -> 
[akka.tcp://[email protected]:2551]: Error [Invalid address: 
akka.tcp://[email protected]:2551] [

akka.remote.InvalidAssociation: Invalid address: 
akka.tcp://[email protected]:2551

Caused by: akka.remote.transport.Transport$InvalidAssociationException: 
Connection refused: /127.0.0.1:2551

I have no idea what is happening here. Any help in how to use the singleton 
pattern to handle the behavior that the tutorial claims would be highly 
appreciated. Thanks.

-Vineet

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to