How to manually put nodes in the elastics search

I have two servers.

xxx.xxx.xxx.xxx
yyy.yyy.yyy.yyy

In setting up a flexible search, how do I add manually. I am not a fan of discovery. This does not work.

Each node has the right to be a master. I use the digital ocean.

+4
source share
1 answer

Assuming you are using zen detection, you can disable the multi-cast option and set the addresses of the unicast nodes.

If you use the default port 9300 on your hosts, the settings below should work in your configuration file

# disable multicast
discovery.zen.ping.multicast.enabled: false

# set the list of hosts for unicast discovery
discovery.zen.ping.unicast.hosts: ["xxx.xxx.xxx.xxx", "yyy.yyy.yyy.yyy"]
+13
source

Source: https://habr.com/ru/post/1527673/


All Articles