Running multiple remote servers with Akka

I'm having deployment problems using Akka to implement a small search application.

I want to deploy my ActorSystem on a set of local cluster machines to use them as workers, but I'm a little confused by what to insert into my application.conf for this to happen. For example, I can use:

akka.remote {
  transport = "akka.remote.netty.NettyRemoteTransport"
  netty {
    hostname = "0.0.0.0"
    port = 2552
  }
}

Each worker starts the ActorSystem at startup.

This allows my work machines to communicate with their address at startup, but then they refuse to listen to messages:

beaker-24: [ERROR] ... dropping message DaemonMsgWatch for non-local recipient akka://SearchService@beaker-24:2552/remote at akka://SearchService@0.0.0.0:2552

The documentation I found for this while only discusses deployment on my localhost, which is not so useful :). I hope there is a way to do this without creating a separate configuration for each host.


Update:

, IP-. .

+3
1

"0.0.0.0" , IP- . . IP ( ), , , " " .

, , - .

+1

All Articles