Issues trying to join a cluster locally using akka-bootstrap and akka-discovery

Hi,

I want to setup a local environment (for testing) where multiple clusters would use same address and different ports:

I have 3 nodes with this config (the management.http.port is ofc different for each of them same for the netty.tcp.port ):

akka{
  discovery {
    method = config
    config.services = {
      test-cluster = {
        endpoints = [
          {
            host = "127.0.0.1"
            port = 8001
           },
          {
            host = "127.0.0.1"
            port = 8002
           },
          {
            host = "127.0.0.1"
            port = 8003
           }]
      }
    }
  }
  management {
    http.hostname="127.0.0.1"
    http.port=8001
    cluster.bootstrap {
      contact-point-discovery {
       service-name = "test-cluster"
      }
    }
  }
  remote.netty.tcp.hostname = "127.0.0.1"
  remote.netty.tcp.port = 30001
  actor.provider = "cluster"
}

If I use 127.0.0.1/2/3 for the endpoints it will work (example in the docs).
However if I am using same IP for akka management and different ports it doesn’t, I don’t want to setup multiple loopback addresses because the setup would not usable in a concurrent CI environment.

Can someone point me in the right direction?
Thank You

Hi octavz,
I have the same problem.
have you solved your problem concerning a local cluster with nodes having the same ip but different ports ?

Perhaps looking at the platform guide management config helps figuring it out. Specifically local-shared.conf and the local1.conf, local2.conf and local3.conf: platform sample src/main/resources

Thank you very much this is the port-name = “management”
that i missed ;-)