Publish and bind machine ip for elasticsearch nodes


#1

Currently my es nodes publish on a private ip (172.xx.xx.xx) and I would like them to publish on the ip of the machine where they are created. I know that I can manually set the publish_host option to the specific machine ip (ex. network.publish_host: 10.0.4.123). But in my case when the service is created, it is randomly assigned to one of the free nodes, so I don't know which ip to publish beforehand. What changes do I need to make to the network env vars (network.host, network.bind_host, network.publish_host) so that each node does something like:

publish_address {10.0.4.123:9200}, bound_addresses {[::]:9200}

Thanks!


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.