Answer the question
In order to leave comments, you need to log in
ELASTICSEARCH how to replicate more "elegantly" via the ANSIBLE playbook?
Hello,
After setting up the MASTER -> SLAVE replica on POSTGRES , it turned out that there is a need to create a similar type of replication for ELASTICSEARCH .
Googling a bit, I found out that ELASTICSEARCH only supports cluster multimaster replication ( MASTER - MASTER ELIGIBLE ).
Answer the question
In order to leave comments, you need to log in
You are wrong, I have never reloaded nodes on prod after adding new ones.
Everything is done on the fly:
In the config of the new node, you register all the nodes, after you start it, it enters the cluster and starts syncing (it is better to do it when the load on the cluster is minimal, since there will be a lot of copying), the sync will depend on the settings for the distribution of shards and replicas. Accordingly:
1. Remove all restrictions on the network (configure firewall rules (Add, fix, etc.)), if they exist
2. Launch a new node, it will enter the cluster itself and sync
3. Add a new one to the existing ones in the config.
Regarding your split-brain questions, in the elastic settings there is a setting for the minimum number of nodes to work: discovery.zen.minimum_master_nodes: number
This allows, for example, you have 5 nodes, you keep 1 primary shard on each node and 2 replicas of each shard on other nodes. With the discovery.zen.minimum_master_nodes: 3 setting, you can always take 2 servers out of service (for maintenance), while the cluster will turn yellow but will give data (not so fast, though, performance degradation)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question