ElasticSearch Replication

Can anyone provide some instructions on how to configure ElasticSearch for replication. I run ES on Windows and understand that if I run bat files several times on the same server, a separate instance of ES is launched, and they all connect to each other.

I will soon move to a production environment and configure three nodes, each node will be on a different server. Can someone point me to some documentation that gives me a bit more control over replication.

+4
source share
2 answers

See the discovery documentation . It works out of the box with a multicast open, although you may have problems with firewalls, etc., but I would recommend against it in production. I would rather use unicast and configure the node names of the nodes belonging to the cluster in elasticsearch.yml . Thus, you will be convinced that nobody is going to enter a production cluster from his own machine.

Another thing I would like to do is set up the correct cluster name for each environment.

+6
source

Replication is installed for each index in Elasticsearch, and not for the server or node. That is, each index can have a different number of replication settings. The default number of replica settings is 1.

The amount of replication is unrelated or limited by the number of node. If the number of replications is greater than the number of data nodes, only index health turns yellow because some replications are not allocated, it still works fine.

You can refer to the document for more information: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html

0
source

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


All Articles