Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Eureka Metadata (preferIpAddress) #187

Open
osmedd opened this issue Aug 15, 2022 · 0 comments
Open

Custom Eureka Metadata (preferIpAddress) #187

osmedd opened this issue Aug 15, 2022 · 0 comments

Comments

@osmedd
Copy link

osmedd commented Aug 15, 2022

I have created a eureka-client.properties files and put it on the CLASSPATH (verified it is loaded by munging the eureka serviceUrl and seeing things fail) but I cannot seem to force Hazelcast to register with the host IP address. I see other applications in our eureka setup have a registered hostname of the IP address, which turns out to be required due to some unforeseen DNS issues.

Here is my eureka-client.properties file (I tried a prefix of both hazelcast and eureka on a couple different permutations of preferIpAddress in case my reading skills had failed):

hazelcast.shouldUseDns=false
hazelcast.name=hazelcast
hazelcast.serviceUrl.default=http://my.secret.host:8080/eureka/v2
hazelcast.instance.preferIpAddress=true
hazelcast.preferIpAddress=true
eureka.instance.preferIpAddress=true
eureka.preferIpAddress=true

Is there a different way to get Hazelcast to register just the IP address? I also tried setting hostName directly (as the IP address) and that did not seem to show up in eureka either.

Thanks,
Owen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant