[Elasticsearch] es add and delete nodes

Insert picture description here

1 Overview

2. Add node

Add notes:

ES must have the same version number, for example: Elasticsearch V6.4.1.

Consistent with the newly configured Elasticsearch node, the following only introduces the fastest method.

Step 1: Copy ES related files of the original node to the new machine.
Step 2: Modify the core configuration file jvm.options和elasticsearch.yml。
Note 1: JVM pay attention to the rational configuration of the actual machine memory. Value: Min (32GB, half of machine memory).
Note 2: Configure according to the assigned role (Master/data/client).
Note 3: The cluster name must be consistent with the previous machine.
Note 4: Avoid split brain, rationalize the following configuration

curl -XPUT 'localhost:9200/_cluster/settings' -d'

Guess you like

Origin blog.csdn.net/qq_21383435/article/details/109283835