Starting from version 2.0 Elasticsearch binds only on the loopback interface by default (_local_ in terms of configuration).
The documentation says that there is a way to switch to another network, for example, _non_loopback_ binds to the first non-loopback interface. It works fine.
But I cannot figure out how do I combine these settings so that Elasticsearch binds on both loopback and non-loopback interfaces simultaneously?
PS. My reason is that I use Logstash on each Elasticsearch instance that connects to it via localhost, but I also want other Elasticsearch instances to see each other to form the cluster...
http
(since port 9200) – Shortlynetwork.bind*
andnetwork.publish*
settings from yourelasticsearch.yml
file and addtransport.host: _non_loopback_
andhttp.host: _local_
. – Shortlynetwork.bind_host: 0
– Shortly