我有一条消息通过 Akka 中的集群发送。我有两个后端节点和一个前端节点。后端节点正常,但前端节点没有出现(关联失败)。
我觉得我有一个关于为什么会这样的提示:我有一个工作配置(前端出现并且可以正常发送和接收消息),但是前端、后端和公共消息都在同一个包中。当我将这些拆分为单独的子项目(通用、前端和后端)时,代码会中断。有什么明显的原因吗?另外,堆栈跟踪:
[INFO] [10/08/2014 17:00:32.385] [ClusterSystem-akka.actor.default-dispatcher-14] [Cluster(akka://ClusterSystem)] Cluster Node [akka.tcp://ClusterSystem@192.168.1.2:62701] - Welcome from [akka.tcp://ClusterSystem@192.168.1.7:2552]
[INFO] [10/08/2014 17:00:32.425] [ClusterSystem-akka.actor.default-dispatcher-14] [akka://ClusterSystem/system/cluster/core/daemon/joinSeedNodeProcess-1] Message [akka.cluster.InternalClusterAction$InitJoinAck] from Actor[akka.tcp://ClusterSystem@192.168.1.7:2551/system/cluster/core/daemon#1100391461] to Actor[akka://ClusterSystem/system/cluster/core/daemon/joinSeedNodeProcess-1#217838192] 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'.
[WARN] [10/08/2014 17:00:33.281] [ClusterSystem-akka.remote.default-remote-dispatcher-6] [akka.tcp://ClusterSystem@192.168.1.2:62701/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2FClusterSystem%40192.168.1.7%3A2551-0] Association with remote system [akka.tcp://ClusterSystem@192.168.1.7:2551] has failed, address is now gated for [5000] ms. Reason is: [sample.cluster.transformation.BackendRegistration$].
我觉得这一定有一个明显的原因。我的 Build.scala 文件具有依赖项,并且我导入了我需要的类/对象,但是将它们放在单独的子项目中会影响什么吗?