上一篇文章部署了单节点的es,这篇文章展示如何在centos上部署elasticsearch集群
这里不再赘述
可以参考链接

centos 安装单机版elasticsearch

环境三台centos,ip分别是:”10.211.55.14″, “10.211.55.16”,”110.211.55.17″

之前我么在10.211.55.14已经安装部署过了,这里直接增加修改配置文件,
增加两行

discovery.zen.ping.unicast.hosts: [“10.211.55.14”, “10.211.55.16”,”110.211.55.17″]
discovery.zen.minimum_master_nodes: 1

现在直接将文件夹复制给另外两台
scp -r elasticsearch-7.9.2 parallels@10.211.55.16:/home/parallels/program/elasticsearch-7.9.2
在登录上去修改各自配置文件,
node.name:
network.host:
根据每台服务器修改,集群的node.name,和host不能一直

master节点日志显示node-2,node-3加入

[2020-09-27T11:31:09,960][INFO ][o.e.c.s.MasterService    ] [node-1] node-join[{node-3}{oiUjJttoSrGYoUdzK8eHSQ}{L0vCTnSLRk-JABBdL3UL-w}{10.211.55.17}{10.211.55.17:9300}{dilmrt}{ml.machine_memory=1923530752, ml.max_open_jobs=20, xpack.installed=true, transform.node=true} join existing leader], term: 3, version: 42, delta: added {{node-3}{oiUjJttoSrGYoUdzK8eHSQ}{L0vCTnSLRk-JABBdL3UL-w}{10.211.55.17}{10.211.55.17:9300}{dilmrt}{ml.machine_memory=1923530752, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}}
[2020-09-27T11:31:10,844][INFO ][o.e.c.s.ClusterApplierService] [node-1] added {{node-3}{oiUjJttoSrGYoUdzK8eHSQ}{L0vCTnSLRk-JABBdL3UL-w}{10.211.55.17}{10.211.55.17:9300}{dilmrt}{ml.machine_memory=1923530752, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}}, term: 3, version: 42, reason: Publication{term=3, version=42}
[2020-09-27T11:31:14,648][INFO ][o.e.c.s.MasterService    ] [node-1] node-join[{node-2}{PUVr5gqxRZiWHfykhmin_w}{JL5NUJZbSbKVoSuVQ5H02Q}{10.211.55.16}{10.211.55.16:9300}{dilmrt}{ml.machine_memory=1923530752, ml.max_open_jobs=20, xpack.installed=true, transform.node=true} join existing leader], term: 3, version: 43, delta: added {{node-2}{PUVr5gqxRZiWHfykhmin_w}{JL5NUJZbSbKVoSuVQ5H02Q}{10.211.55.16}{10.211.55.16:9300}{dilmrt}{ml.machine_memory=1923530752, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}}
[2020-09-27T11:31:15,442][INFO ][o.e.c.s.ClusterApplierService] [node-1] added {{node-2}{PUVr5gqxRZiWHfykhmin_w}{JL5NUJZbSbKVoSuVQ5H02Q}{10.211.55.16}{10.211.55.16:9300}{dilmrt}{ml.machine_memory=1923530752, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}}, term: 3, version: 43, reason: Publication{term=3, version=43}

通过/elasticsearch-head-master查看es显示节点

 

centos安装部署elasticsearch集群插图

1 对 “centos安装部署elasticsearch集群”的想法;

发表评论

电子邮件地址不会被公开。