As far as I am aware you can't split the two, they both need to be on the same interface/IP. I don't know if this is a bug or if the docs are incorrect.
Regards, Mark Walkom Infrastructure Engineer Campaign Monitor email: [email protected] web: www.campaignmonitor.com On 17 April 2014 08:28, OJ LaBoeuf <[email protected]> wrote: > I'm trying to bind the API to 127.0.0.1 and use the apache reverse proxy > settings with kibana to talk to ES. This works as I expected. > > However, I need to bind the inter-cluster communication to a real IP > address, supposedly with network.publish_host, but this does not work. > Both bind to 127.0.0.1 > > Running from the latest deb package, on ubuntu 12.04 > > from /etc/elasticsearch/elasticsearch.yaml > > network.bind_host: 127.0.0.1 > network.publish_host: my.redacted.ip.address > > > netstat -an | grep 9300 > tcp 0 0 127.0.0.1:9300 0.0.0.0:* > LISTEN > > netstat -an | grep 9200 > tcp 0 0 127.0.0.1:9200 0.0.0.0:* > LISTEN > > > this is a major deal as I do not want to bind the api directly to a > routable interface. > > > from the docs: > > The network.bind_host setting allows to control the host different > network components will bind on. By default, the bind host will be > anyLocalAddress (typically 0.0.0.0 or ::0). > > The network.publish_host setting allows to control the host the node will > publish itself within the cluster so other nodes will be able to connect to > it. Of course, this can't be the anyLocalAddress, and by default, it will > be the first non loopback address (if possible), or the local address. > > The network.host setting is a simple setting to automatically set both > network.bind_host and network.publish_host to the same host value. > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/632b4ca3-6dad-4476-9b35-a6806b9fc783%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/632b4ca3-6dad-4476-9b35-a6806b9fc783%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEM624ZP-_h720RhceosOs%2B1mjKByxYa1gSP_hv%3DzeYfSx4FKg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
