elasticsearch现有集群扩展节点

原文地址:elasticsearch现有集群扩展节点 -- 无敌牛

欢迎参观我的个人博客:无敌牛 -- 技术/著作/典籍/分享等

给现有的 elasticsearch 集群扩展节点比较容易,已有的集群不需要做任何修改,也不用对服务做任何处理,只需要新的节点主动发现并把添加到现有的集群中即可。

和重新搭建 elasticsearch 集群部署类似,只需要修改一下 elasticsearch.yml 配置文件即可。

参考往期文章:elasticsearch集群部署及加密通讯 -- 无敌牛 elasticsearch集群部署及加密通讯

在这篇文章第二步中:

discovery.seed_hosts: 项增加 xxxxnode4 即可。内容如下:

复制代码
cluster.name: CLUSTERNAMEXXX
node.name: xxxxnode1

path.data: /data/xxxx/data 
path.logs: /data/xxxx/logs
path.repo: /data/xxxx/esbackup

bootstrap.memory_lock: true
network.host: xxxxnode1, 127.0.0.1
discovery.seed_hosts: ["xxxxnode1", "xxxxnode2", "xxxxnode3", "xxxxnode4"]

action.destructive_requires_name: false

xpack.security.enabled: true

xpack.security.enrollment.enabled: true

xpack.security.http.ssl:
  enabled: true
  key: certs/private.key
  certificate: certs/public.crt
  certificate_authorities: certs/CAs/myCA.crt
  verification_mode: certificate

xpack.security.transport.ssl:
  enabled: true
  verification_mode: certificate
  key: certs/private.key
  certificate: certs/public.crt
  certificate_authorities: certs/CAs/myCA.crt

cluster.initial_master_nodes: ["xxxxnode1", "xxxxnode2", "xxxxnode3"]

其他配置项按照 elasticsearch集群部署及加密通讯 -- 无敌牛 文章所述进行配置。

最后只启动新添加的节点即可。现有集群不需要做任何改动。

查看节点情况

相关推荐
网络小白不怕黑16 小时前
Docker容器网络:四大模式解析与自定义网络
运维·docker·容器
FeelTouch Labs20 小时前
Nginx核心架构设计
运维·前端·nginx
程序员zgh20 小时前
Linux系统常用命令集合
linux·运维·服务器·c语言·开发语言·c++
gwd20020 小时前
如何快速设置 Docker 代理设置
运维·人工智能·docker·容器
紫郢剑侠20 小时前
飞秋@Windows +iptux@Linux,打造内网跨平台IM环境
linux·运维·服务器·im·qq
保持低旋律节奏21 小时前
linux——调试
linux·运维·服务器
牛奶咖啡1321 小时前
Linux系统故障排查思路实践教程(下)
linux·运维·服务器·su命令切换用户问题解决·文件打开过多问题解决·linux网络故障问题解决·linux故障排查思路
武子康21 小时前
大数据-184 Elasticsearch Doc Values 机制详解:列式存储如何支撑排序/聚合/脚本
大数据·后端·elasticsearch
expect7g21 小时前
Paimon源码解读 -- Compaction-8.专用压缩任务
大数据·后端·flink
weixin_5214311221 小时前
Docker容器技术
运维·docker·容器