欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 新闻 > 焦点 > elasticsearch现有集群扩展节点

elasticsearch现有集群扩展节点

2026/2/15 13:44:30 来源:https://blog.csdn.net/weixin_42073635/article/details/144131765  浏览:    关键词:elasticsearch现有集群扩展节点

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

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

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

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

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

在这篇文章第二步中:

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

cluster.name: CLUSTERNAMEXXX
node.name: xxxxnode1path.data: /data/xxxx/data 
path.logs: /data/xxxx/logs
path.repo: /data/xxxx/esbackupbootstrap.memory_lock: true
network.host: xxxxnode1, 127.0.0.1
discovery.seed_hosts: ["xxxxnode1", "xxxxnode2", "xxxxnode3", "xxxxnode4"]action.destructive_requires_name: falsexpack.security.enabled: truexpack.security.enrollment.enabled: truexpack.security.http.ssl:enabled: truekey: certs/private.keycertificate: certs/public.crtcertificate_authorities: certs/CAs/myCA.crtverification_mode: certificatexpack.security.transport.ssl:enabled: trueverification_mode: certificatekey: certs/private.keycertificate: certs/public.crtcertificate_authorities: certs/CAs/myCA.crtcluster.initial_master_nodes: ["xxxxnode1", "xxxxnode2", "xxxxnode3"]

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

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

查看节点情况

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词