elasticsearch listen to multiple ips

后端 未结 3 1879
失恋的感觉
失恋的感觉 2021-02-07 02:03

Is it possible to listen to multiple host adresses so that I can listen to localhost requests AND private IP requests?

something like:

network.host: \"12         


        
3条回答
  •  醉话见心
    2021-02-07 02:08

    I tested the given solution and it did not work. I concluded that Elastic cannot listen on specific interfaces using network.bind_host in the configuration.

    However you can tell elastic to listen on all interfaces by specifying:

    network.bind_host: 0.0.0.0
    network.publish_host: 
    

    This will make sure one address is published (to the cluster) but all addresses are accessible. Tested and verified with Elastic 2.1.1.

提交回复
热议问题