scala - akka 集群连接被拒绝 : address is now > gated for [5000] ms

标签 scala akka

我有一个包含 2 个 worker 和 1 个 master 的集群。集群使用 Akka 和 Scala 实现。

当我杀死 worker 并尝试使用以下命令再次运行它时:

java -Xms3500M -Xmx3500M -Dlog_file_name=worker1 "-Dconfig.file=F:\cluster\application.conf" -cp cluster.jar knowmail.Worker worker1 2551

我收到以下错误:

Connection refused Association with remote system [akka.tcp://ClusterSystem@xxxxxx:2552] has failed, address is now gated for [5000] ms. Reason: [As kka.tcp://ClusterSystem@xxxx:2552]] Caused by: [Connection refused: no further information: /xxxx:2552]

集群配置:

  remote {
    log-remote-lifecycle-events = off
    log-received-messages = on
    log-sent-messages = on

    netty.tcp {
      hostname = "xxxxxx"
      port = 8888
      bind-hostname = 0.0.0.0
      bind-port = 8888
    }
  }

  cluster {
    seed-nodes = [
      "akka.tcp://ClusterSystem@xxxxx:2551",
      "akka.tcp://ClusterSystem@xxxxxx:2552"]

    auto-down-unreachable-after = 20s
  }

  http.client.parsing.max-content-length = infinite
}

有没有人遇到这个错误并解决了?

最佳答案

当我在另一个种子节点启动之前启动其中一个种子节点/worker 时,会发生这种情况。

所以一个种子节点正在寻找另一个并报告以下错误:

akka.tcp://ClusterSystem@10.5.2.10:2552] has failed, address is now gated for [5000] ms.

关于scala - akka 集群连接被拒绝 : address is now > gated for [5000] ms,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44746322/

相关文章:

java - HBase FuzzyRowFilter 不返回任何结果

Scalaz Reader 到 ReaderT

scala - Scala 中使用关联运算符的并行聚合

scala - 与 pipeTo 等效的 Akka 类型是什么?

java - 多个 Kafka 分区到 Akka 流

scala - 使用 sbt-assemble 的单个项目中具有不同外部依赖项的多个可执行 jar 文件

scala - 学习mapreduce,SQL命令如何翻译成mapreduce数据流。字数统计示例不能满足我的理解。

scala - Akka:测试与 IO 管理器的交互

scala - Akka HTTP 如何使用 Content-Type application/x-www-form-urlencoded 发布 singleRequest

scala - Actor 名称不唯一 InvalidActorNameException