Thanks maod...,

Please see my response to *√*

Regards

El jueves, 22 de septiembre de 2016, 10:10:52 (UTC-3), maod...@yahoo.com.cn 
escribió:
>
> you should set one of hos to start up with port 2552.
>
>
>
> 在 2016年9月22日星期四 UTC+8上午2:29:34,Gerard W写道:
>>
>> I'm using Akka 2.3.15 (java) and I'm trying to get a cluster with two 
>> members in two different hosts. Everything runs fine when I start the two 
>> nodes on a single machine, but then when I try to start up the second node 
>> on a different machine, it keeps getting "Association with remote system 
>> [...] has failed". 
>> I know I'm probably not configuring it right, but I don't know exactly 
>> how to do it.
>>
>> So in the hostA (ip 192.168.2.21) I'm running an actor on 2552 that joins 
>> successfully to the cluster. The application.conf looks like:
>>
>> akka {
>>   actor {
>>     provider = "akka.cluster.ClusterActorRefProvider"
>>   }  
>>   remote {
>>     log-remote-lifecycle-events = off
>>     netty.tcp {
>>       hostname = "192.168.2.21"
>>       port = 0
>>     }
>>   }
>>   cluster {
>>     seed-nodes = [
>>       "akka.tcp://MulticastPocCluster@192.168.2.21:2552"]
>>
>>   }
>> }
>> akka.cluster.metrics.enabled=off
>> akka.extensions=["akka.cluster.metrics.ClusterMetricsExtension"]
>>
>> akka.cluster.metrics.native-library-extract-folder=${user.dir}/target/native
>>
>> I've copied everything over to hostB (ip 192.168.2.55), modified the 
>> application.conf file to:
>>
>> akka {
>>   actor {
>>     provider = "akka.cluster.ClusterActorRefProvider"
>>   }
>>   remote {
>>     log-remote-lifecycle-events = off
>>     netty.tcp {
>>       hostname = "192.168.2.55"
>>       port = 0
>>     }
>>   }
>>   cluster {
>>     seed-nodes = [
>>       # Seed node in the other host
>>       "akka.tcp://MulticastPocCluster@192.168.2.21:2552"]
>>   }
>> }
>> akka.cluster.metrics.enabled=off
>> akka.extensions=["akka.cluster.metrics.ClusterMetricsExtension"]
>>
>> akka.cluster.metrics.native-library-extract-folder=${user.dir}/target/native
>>
>> I've verified that I can ping hostA from hostB by ip address. But I get 
>> this error when I try to start up an actor on hostB:
>>
>> INFO] [09/21/2016 12:52:53.229] 
>> [MulticastPocCluster-akka.remote.default-remote-dispatcher-6] [akka.tcp://
>> MulticastPocCluster@192.168.2.55:2552/system/transports/akkaprotocolmanager.tcp0/akkaProtocol-tcp%3A%2F%2FMulticastPocCluster%40192.168.2.21%3A2552-1]
>>  
>> No response from remote for outbound association. Associate timed out after 
>> [15000 ms].
>> [WARN] [09/21/2016 12:52:53.232] 
>> [MulticastPocCluster-akka.remote.default-remote-dispatcher-5] [akka.tcp://
>> MulticastPocCluster@192.168.2.55:2552/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2FMulticastPocCluster%40192.168.2.21%3A2552-0]
>>  
>> Association with remote system [akka.tcp://
>> MulticastPocCluster@192.168.2.21:2552] has failed, address is now gated 
>> for [5000] ms. Reason: [Association failed with [akka.tcp://
>> MulticastPocCluster@192.168.2.21:2552]] Caused by: [No response from 
>> remote for outbound association. Associate timed out after [15000 ms].]
>>
>> Log from hostA:
>>
>> [INFO] [09/21/2016 12:51:14.402] [main] [akka.remote.Remoting] Starting 
>> remoting
>> [INFO] [09/21/2016 12:51:14.649] [main] [akka.remote.Remoting] Remoting 
>> started; listening on addresses :[akka.tcp://
>> MulticastPocCluster@192.168.2.21:2552]
>> [INFO] [09/21/2016 12:51:14.663] [main] 
>> [akka.cluster.Cluster(akka://MulticastPocCluster)] Cluster Node [akka.tcp://
>> MulticastPocCluster@192.168.2.21:2552] - Starting up...
>> [INFO] [09/21/2016 12:51:14.762] [main] 
>> [akka.cluster.Cluster(akka://MulticastPocCluster)] Cluster Node [akka.tcp://
>> MulticastPocCluster@192.168.2.21:2552] - Registered cluster JMX MBean 
>> [akka:type=Cluster]
>> [INFO] [09/21/2016 12:51:14.762] [main] 
>> [akka.cluster.Cluster(akka://MulticastPocCluster)] Cluster Node [akka.tcp://
>> MulticastPocCluster@192.168.2.21:2552] - Started up successfully
>> [INFO] [09/21/2016 12:51:14.796] 
>> [MulticastPocCluster-akka.actor.default-dispatcher-2] 
>> [akka.cluster.Cluster(akka://MulticastPocCluster)] Cluster Node [akka.tcp://
>> MulticastPocCluster@192.168.2.21:2552] - Node [akka.tcp://
>> MulticastPocCluster@192.168.2.21:2552] is JOINING, roles []
>> [INFO] [09/21/2016 12:51:14.809] 
>> [MulticastPocCluster-akka.actor.default-dispatcher-2] 
>> [akka.cluster.Cluster(akka://MulticastPocCluster)] Cluster Node [akka.tcp://
>> MulticastPocCluster@192.168.2.21:2552] - Leader is moving node 
>> [akka.tcp://MulticastPocCluster@192.168.2.21:2552] to [Up]
>> sep 21, 2016 12:51:15 PM kamon.sigar.SigarProvisioner provision
>> ADVERTENCIA: Sigar library is already provisioned.
>> [INFO] [09/21/2016 12:51:15.376] 
>> [MulticastPocCluster-akka.actor.default-dispatcher-3] 
>> [akka.cluster.Cluster(akka://MulticastPocCluster)] Cluster Node [akka.tcp://
>> MulticastPocCluster@192.168.2.21:2552] - Metrics collection has started 
>> successfully
>>
>> Log from hostB:
>>
>> [INFO] [09/21/2016 12:52:37.915] [main] [akka.remote.Remoting] Starting 
>> remoting
>> [INFO] [09/21/2016 12:52:38.087] [main] [akka.remote.Remoting] Remoting 
>> started; listening on addresses :[akka.tcp://
>> MulticastPocCluster@192.168.2.55:2552]
>> [INFO] [09/21/2016 12:52:38.087] [main] 
>> [akka.cluster.Cluster(akka://MulticastPocCluster)] Cluster Node [akka.tcp://
>> MulticastPocCluster@192.168.2.55:2552] - Starting up...
>> [INFO] [09/21/2016 12:52:38.165] [main] 
>> [akka.cluster.Cluster(akka://MulticastPocCluster)] Cluster Node [akka.tcp://
>> MulticastPocCluster@192.168.2.55:2552] - Registered cluster JMX MBean 
>> [akka:type=Cluster]
>> [INFO] [09/21/2016 12:52:38.165] [main] 
>> [akka.cluster.Cluster(akka://MulticastPocCluster)] Cluster Node [akka.tcp://
>> MulticastPocCluster@192.168.2.55:2552] - Started up successfully
>> sep 21, 2016 12:52:38 PM kamon.sigar.SigarProvisioner provision
>> ADVERTENCIA: Sigar library is already provisioned.
>> [INFO] [09/21/2016 12:52:38.272] 
>> [MulticastPocCluster-akka.actor.default-dispatcher-14] 
>> [akka.cluster.Cluster(akka://MulticastPocCluster)] Cluster Node [akka.tcp://
>> MulticastPocCluster@192.168.2.55:2552] - Metrics collection has started 
>> successfully
>> [INFO] [09/21/2016 12:52:53.229] 
>> [MulticastPocCluster-akka.remote.default-remote-dispatcher-6] [akka.tcp://
>> MulticastPocCluster@192.168.2.55:2552/system/transports/akkaprotocolmanager.tcp0/akkaProtocol-tcp%3A%2F%2FMulticastPocCluster%40192.168.2.21%3A2552-1]
>>  
>> No response from remote for outbound association. Associate timed out after 
>> [15000 ms].
>> [WARN] [09/21/2016 12:52:53.232] 
>> [MulticastPocCluster-akka.remote.default-remote-dispatcher-5] [akka.tcp://
>> MulticastPocCluster@192.168.2.55:2552/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2FMulticastPocCluster%40192.168.2.21%3A2552-0]
>>  
>> Association with remote system [akka.tcp://
>> MulticastPocCluster@192.168.2.21:2552] has failed, address is now gated 
>> for [5000] ms. Reason: [Association failed with [akka.tcp://
>> MulticastPocCluster@192.168.2.21:2552]] Caused by: [No response from 
>> remote for outbound association. Associate timed out after [15000 ms].]
>> [INFO] [09/21/2016 12:52:53.264] 
>> [MulticastPocCluster-akka.actor.default-dispatcher-3] 
>> [akka://MulticastPocCluster/deadLetters] Message 
>> [akka.cluster.InternalClusterAction$InitJoin$] from 
>> Actor[akka://MulticastPocCluster/system/cluster/core/daemon/joinSeedNodeProcess-1#-1019468403]
>>  
>> to Actor[akka://MulticastPocCluster/deadLetters] was not delivered. [1] 
>> dead letters encountered. This logging can be turned off or adjusted with 
>> configuration settings 'akka.log-dead-letters' and 
>> 'akka.log-dead-letters-during-shutdown'.
>> [INFO] [09/21/2016 12:52:53.264] 
>> [MulticastPocCluster-akka.actor.default-dispatcher-3] 
>> [akka://MulticastPocCluster/deadLetters] Message 
>> [akka.cluster.InternalClusterAction$InitJoin$] from 
>> Actor[akka://MulticastPocCluster/system/cluster/core/daemon/joinSeedNodeProcess-1#-1019468403]
>>  
>> to Actor[akka://MulticastPocCluster/deadLetters] was not delivered. [2] 
>> dead letters encountered. This logging can be turned off or adjusted with 
>> configuration settings 'akka.log-dead-letters' and 
>> 'akka.log-dead-letters-during-shutdown'.
>> [INFO] [09/21/2016 12:52:53.264] 
>> [MulticastPocCluster-akka.actor.default-dispatcher-3] 
>> [akka://MulticastPocCluster/deadLetters] Message 
>> [akka.cluster.InternalClusterAction$InitJoin$] from 
>> Actor[akka://MulticastPocCluster/system/cluster/core/daemon/joinSeedNodeProcess-1#-1019468403]
>>  
>> to Actor[akka://MulticastPocCluster/deadLetters] was not delivered. [3] 
>> dead letters encountered. This logging can be turned off or adjusted with 
>> configuration settings 'akka.log-dead-letters' and 
>> 'akka.log-dead-letters-during-shutdown'.
>> [INFO] [09/21/2016 12:52:53.264] 
>> [MulticastPocCluster-akka.actor.default-dispatcher-3] 
>> [akka://MulticastPocCluster/deadLetters] Message 
>> [akka.cluster.InternalClusterAction$InitJoin$] from 
>> Actor[akka://MulticastPocCluster/system/cluster/core/daemon/joinSeedNodeProcess-1#-1019468403]
>>  
>> to Actor[akka://MulticastPocCluster/deadLetters] was not delivered. [4] 
>> dead letters encountered. This logging can be turned off or adjusted with 
>> configuration settings 'akka.log-dead-letters' and 
>> 'akka.log-dead-letters-during-shutdown'.
>> [INFO] [09/21/2016 12:52:53.357] 
>> [MulticastPocCluster-akka.actor.default-dispatcher-18] 
>> [akka://MulticastPocCluster/system/transports/akkaprotocolmanager.tcp0/akkaProtocol-tcp%3A%2F%2FMulticastPocCluster%40192.168.2.21%3A2552-1]
>>  
>> Message [akka.actor.Status$Failure] from 
>> Actor[akka://MulticastPocCluster/system/transports/akkaprotocolmanager.tcp0/akkaProtocol-tcp%3A%2F%2FMulticastPocCluster%40192.168.2.21%3A2552-1#-1432534155]
>>  
>> to 
>> Actor[akka://MulticastPocCluster/system/transports/akkaprotocolmanager.tcp0/akkaProtocol-tcp%3A%2F%2FMulticastPocCluster%40192.168.2.21%3A2552-1#-1432534155]
>>  
>> was not delivered. [5] dead letters encountered. This logging can be turned 
>> off or adjusted with configuration settings 'akka.log-dead-letters' and 
>> 'akka.log-dead-letters-during-shutdown'.
>> [INFO] [09/21/2016 12:53:13.298] 
>> [MulticastPocCluster-akka.remote.default-remote-dispatcher-19] [akka.tcp://
>> MulticastPocCluster@192.168.2.55:2552/system/transports/akkaprotocolmanager.tcp0/akkaProtocol-tcp%3A%2F%2FMulticastPocCluster%40192.168.2.21%3A2552-2]
>>  
>> No response from remote for outbound association. Associate timed out after 
>> [15000 ms].
>>
>> Maybe I don't understand how to configure my nodes correctly and I'm just 
>> getting confused with the remote and/or cluster configuration.
>>
>> Thanks for your help!
>>
>>

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to