Initially, i was running elasticsearch on a single machine on a rackspace. In the config file, i had
in the beginning written
Later when i had to run elasticsearch server on two machines , i had to change it to
network.host: 126.96.36.199 (basically current ip address of machine)
discovery.zen.ping.multicast.enabled: false discovery.zen.ping.unicast.hosts: ["188.8.131.52","184.108.40.206"]
Now i have two questions:
- I have configured one master and one non-master. Since i have changed my network.host. Should i always post to master ip address. Can i still maintain localhost as my posting ip.
- I am also using kibana to visualize the data, since i have changed the network.host. I changed it in the kibana.yml [I had put ip address of master] file as well and restarted it. It stopped working give me an 502 bad gateway error.
Can anybody give me another to expose my two machines apart from changing network.host property or rectify the above two problems?
I am quite new to elasticsearch cluster, i tried going through other discussion forums but couldn't find relevant information