Closed nastra closed 8 years ago
I would argue that if you 'don't have the proper name resolution configured' you should just be using an IP address for hostname in the cluster_config.
By calling gethostbyname you're assuming that the client is on the same network as the nodes. If that's the case, why not just use the internal_ip listed in the cluster_config? I'm more partial to using the explicit config in cluster_config than doing auto-determination of IPs.
Oh right I forgot that we actually have the IP addresses specified in cluster_config.json
. I will change the logic to read the IP from that file. Thanks for the hint
@EnigmaCurry please re-review
lgtm. Thanks!
Previously, it would just bind to the hostname and you couldn't establish a remote JMX connection if you don't have the proper name resolution configured. The easy fix is to always bind the RMI server to the host's public IP address.
@aboudreault / @EnigmaCurry can you guys review please?