A服务器启动了3个es节点 B服务器新增一个data节点 加入不到集群中
A服务es master节点配置
cluster.name: es-cluster
node.name: es-master
node.master: true
node.data: false
network.host: 0.0.0.0
http.port: 9200
transport.port: 9300
discovery.seed_hosts: [ "es-master", "es-slave1", "es-eligible", "10.85.120.33:9300"]
cluster.initial_master_nodes: ["es-eligible", "es-master"]
http.cors.enabled: true
http.cors.allow-origin: "*"
xpack.security.enabled: false
#http.cors.allow-headers: "Authorization"
B服务 data节点配置
cluster.name: es-cluster
node.name: es-slave2
node.master: false
node.data: true
network.host: 0.0.0.0
http.port: 9200
transport.port: 9300
# 集群发现
discovery.seed_hosts: ['10.85.121.212:9300', "10.85.121.212:9301", "10.85.121.212:9302", "es-slave2"]
cluster.initial_master_nodes:
- 10.85.121.212:9300
- 10.85.121.212:9302
http.cors.enabled: true
http.cors.allow-origin: "*"
xpack.security.enabled: false
#http.cors.allow-headers: "Authorization"
出现的错误 是 initial discovery state -timeout 30s 发现不了集群?
A服务es master节点配置
cluster.name: es-cluster
node.name: es-master
node.master: true
node.data: false
network.host: 0.0.0.0
http.port: 9200
transport.port: 9300
discovery.seed_hosts: [ "es-master", "es-slave1", "es-eligible", "10.85.120.33:9300"]
cluster.initial_master_nodes: ["es-eligible", "es-master"]
http.cors.enabled: true
http.cors.allow-origin: "*"
xpack.security.enabled: false
#http.cors.allow-headers: "Authorization"
B服务 data节点配置
cluster.name: es-cluster
node.name: es-slave2
node.master: false
node.data: true
network.host: 0.0.0.0
http.port: 9200
transport.port: 9300
# 集群发现
discovery.seed_hosts: ['10.85.121.212:9300', "10.85.121.212:9301", "10.85.121.212:9302", "es-slave2"]
cluster.initial_master_nodes:
- 10.85.121.212:9300
- 10.85.121.212:9302
http.cors.enabled: true
http.cors.allow-origin: "*"
xpack.security.enabled: false
#http.cors.allow-headers: "Authorization"
出现的错误 是 initial discovery state -timeout 30s 发现不了集群?
1 个回复
Charele - Cisco4321
赞同来自: