公司之前有项目用到ES集群,集群处于运行状态。原来的集群是通过多播请求进行配置,现在有新的服务器上部署了ES服务,想请教各位大神,如何不重启集群的情况下加入新的节点?
ES版本6.5.2
之前集群的多播配置:
#discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302","10.1.122.226:9300","10.1.122.226:9301","10.1.122.226:9302"]
discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302"]
#
discovery.zen.ping_timeout: 120s
client.transport.ping_timeout: 60s
http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type
这样配置一定需要重启集群吗?
ES版本6.5.2
之前集群的多播配置:
#discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302","10.1.122.226:9300","10.1.122.226:9301","10.1.122.226:9302"]
discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302"]
#
discovery.zen.ping_timeout: 120s
client.transport.ping_timeout: 60s
http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type
这样配置一定需要重启集群吗?
1 个回复
Charele - Cisco4321
赞同来自:
如果配置正确,节点会自己找到master,加入集群,无需重启集群。