charts icon indicating copy to clipboard operation
charts copied to clipboard

Make autodiscovery work based on SVC names and/or FQDN

Open xrow opened this issue 4 years ago • 7 comments

Problem: If the target endpoint is set to an name based value either a FQDN or a SVC name the member autodiscovery doen work. Though it does work when using a IP based host name target-endpoints: "XX.239.105.XX:30XXX"

The reason for this request is a simplyfied setup for HA.

xrow avatar Aug 05 '20 11:08 xrow

@xrow , target endpoint, do you mean:

  • WAN Replication?
  • Client Configuration?

DNS resolution works fine with the Hazelcast client. So you can put FQDN or SVC in the Hazelast client and it will successfully find the cluster.

Regarding WAN Replication, it is a general issue with Hazelcast that it does not resolve DNSes correctly. That's the related GH Issue: https://github.com/hazelcast/hazelcast-enterprise/issues/3627

leszko avatar Aug 06 '20 08:08 leszko

Can see hazelcast/hazelcast-enterprise#3627, but it sound like this is the one i am talking about.

xrow avatar Aug 06 '20 22:08 xrow

@xrow Just to make sure, so the issue is happening when you're using WAN replication?

Holmistr avatar Aug 07 '20 08:08 Holmistr

this is correct.

xrow avatar Aug 07 '20 10:08 xrow

@xrow I see, thank you. In that case, let me comment on it. Working with hostnames in WAN replication is our long standing issue. However, it's not trivial at all to fix. Therefore, we are scheduling it for the next version of IMDG, which is very very roughly targeted to early Q2 2021.

Holmistr avatar Aug 07 '20 11:08 Holmistr

Any update on this? I'd like to use a DNS name in my helm chart for

hazelcast.yaml.hazelcast.wan-replication.wanPublisherRegional.batch-publisher.regional-publisher.target-endpoints

brettcurtis avatar Mar 24 '22 15:03 brettcurtis

@brettcurtis Actually yes! In recently released Hazelcast Platform 5.1, we've done many improvements with the usage of hostnames, especially around WAN replication. Could you give it a try and see if it works for your usecase? Hopefully it should.

Holmistr avatar Mar 24 '22 15:03 Holmistr