Reputation: 441
I have looked into offical Akka documentation and I confuse. I follow this link and I used the same application.conf as like that and change the seed-node into my another machine ip.
akka {
actor.provider = "akka.cluster.ClusterActorRefProvider"
remote.netty.tcp.port=0
remote.netty.tcp.hostname=127.0.0.1
cluster {
seed-nodes = [
"akka.tcp://ClusterSystem@slave01:2551",
"akka.tcp://ClusterSystem@slave02:2552"]
auto-down-unreachable-after = 10s
}
extensions = ["akka.cluster.client.ClusterClientReceptionist"]
persistence {
journal.plugin = "akka.persistence.journal.leveldb-shared"
journal.leveldb-shared.store {
# DO NOT USE 'native = off' IN PRODUCTION !!!
native = off
dir = "target/shared-journal"
}
snapshot-store.plugin = "akka.persistence.snapshot-store.local"
snapshot-store.local.dir = "target/snapshots"
}
}
The problem is that it's said it's unreachable and connection refused. Any suggestion?
Upvotes: 0
Views: 714
Reputation: 22449
Have you made sure connection isn't blocked by firewall on the two hosts? I would first check whether both slave01 and slave02 are remotely reachable using telnet
at their corresponding port (e.g. telnet slave02 2552
). And in case slave01 and slave02 are hostnames or FQDN, they would need to be mapped to corresponding IP addresses in /etc/hosts
or DNS, accordingly.
Upvotes: 1