简体   繁体   中英

Error in akka clustering

I am developing a service using Akka clustering but I am getting these warnings when my program is running. I have an 8 node Akka cluster. Can anyone help me in solving this errors :

[WARN] [06/07/2018 15:08:51.923] [ClusterSystem-akka.remote.default-remote-dispatcher-18] [akka.tcp://ClusterSystem@192.168.2.8:2552/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2FClusterSystem%40192.168.2.7%3A2552-8] Association with remote system [akka.tcp://ClusterSystem@192.168.2.7:2552] has failed, address is now gated for [5000] ms. Reason: [Association failed with [akka.tcp://ClusterSystem@192.168.2.7:2552]] Caused by: [No response from remote for outbound association. Handshake timed out after [15000 ms].]

[WARN] [06/07/2018 16:07:06.347] [ClusterSystem-akka.actor.default-dispatcher-101] [akka.remote.PhiAccrualFailureDetector@3895fa5b] heartbeat interval is growing too large: 2839 millis

You will get these kind of errors when your HostIP is not matching with the configured seed nodes.

Also check your akka.remote configuration

  remote {
    log-remote-lifecycle-events = on
    netty.tcp {
      bind-hostname = 0.0.0.0
      bind-port = ${hostport}

      hostname = ${hostip}
      port = ${hostport}
    }
  }

The hostname should match with your HostIP.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM