「Elasticsearch」- 集群搭建(Elasticsearch 7.6.2)

  CREATED BY JENKINSBOT

注意事项

1)版本不同,集群配置方法不同。例如 Elasticsearch 6.8.6 与 7.6.2 的集群配置方法是不同的。

操作系统设置

关闭 swap 分区

修改文件描述符数量

设置虚拟内存

调整线程数量

修改配置文件

There are two important discovery and cluster formation settings that should be configured before going to production so that nodes in the cluster can discover each other and elect a master node:discovery.seed_hosts,cluster.initial_master_nodes

network.host: 0.0.0.0

discovery.seed_hosts: ["10.10.50.217", "10.10.50.218", "10.10.50.219"]
cluster.initial_master_nodes: ["esclus-01", "esclus-02", "esclus-03"]

注意事项,参数 cluster.initial_master_nodes 中的参数要与节点名称对应。

参考文献

Elasticsearch Reference [7.6]/Important discovery and cluster formation settings