Akka集群boostrapping演示不起作用

时间:2018-05-31 01:19:54

标签: scala akka akka-cluster

我正在Akka Cluster Bootstrapping测试here的discovery-dns演示。 我禁用了HTTP管理部分并在我的本地计算机上运行它,application.conf是相同的,除了我在启动第二台服务器时更改了tcp.port

我在学校的电脑上运行这些服务器。

我启动了两台服务器并且运行没有错误,但他们无法发现节点并连续打印出这些日志,我尝试了很多不同的配置但没有运气,任何帮助都将不胜感激!

以下是日志的一部分:

[INFO] [05/30/2018 20:16:13.364] [simple-akka.actor.default-dispatcher-4] [akka.tcp://simple@127.0.0.1:2552/system/bootstrapCoordinator] Located service members with name: [simple]: []   
[INFO] [05/30/2018 20:16:13.754] [simple-akka.actor.default-dispatcher-35] [LowestAddressJoinDecider(akka://simple)] Discovered [0] contact points, confirmed [0], which is less than the required [2], retrying   
[INFO] [05/30/2018 20:16:14.442] [simple-akka.actor.default-dispatcher-3] [DnsSimpleServiceDiscovery(akka://simple)] Resolved Dns.Resolved: Resolved(simple,List(),List())

这是我的application.conf:

akka {
  loglevel = INFO
  discovery.method = akka-dns
  actor {
    provider = "cluster"
  }
remote {
  netty.tcp {
  hostname = 127.0.0.1
  port = 2551
  }
 }
management {
  http {
  hostname = 127.0.0.1
  port = 8558
}
cluster.bootstrap {     
  contact-point {
    fallback-port = 8558
  }
}
}
}

0 个答案:

没有答案