elasticsearch6.8.8与7.9.3,生产环境 需要对某些机器进行临时硬件维护,我使用cluster.routing.allocation.exclude._ip: 10.23.4.54从集群中剔除,把数据迁移到其他节点,然后下线机器。机器维修好之后(ip仍旧为 10.23.4.54),我想加入集群,并数据可以分配到这台机器上,该如何设置cluster.routing.allocation.exclude._ip、cluster.routing.allocation.include._ip参数?
这个问题困扰我很久了,官网也没查到这2个参数的明确说明使用。
以下是查出来的集群settings:
{
"persistent" : {
"xpack" : {
"monitoring" : {
"collection" : {
"enabled" : "true"
}
}
}
},
"transient" : {
"cluster" : {
"routing" : {
"allocation" : {
"node_concurrent_incoming_recoveries" : "8",
"include" : {
"_ip" : "10.28.4.54"
},
"node_initial_primaries_recoveries" : "8",
"enable" : "all",
"node_concurrent_outgoing_recoveries" : "8",
"node_concurrent_recoveries" : "8",
"exclude" : {
"_ip" : "10.28.4.54"
}
}
}
}
}
}
这个问题困扰我很久了,官网也没查到这2个参数的明确说明使用。
以下是查出来的集群settings:
{
"persistent" : {
"xpack" : {
"monitoring" : {
"collection" : {
"enabled" : "true"
}
}
}
},
"transient" : {
"cluster" : {
"routing" : {
"allocation" : {
"node_concurrent_incoming_recoveries" : "8",
"include" : {
"_ip" : "10.28.4.54"
},
"node_initial_primaries_recoveries" : "8",
"enable" : "all",
"node_concurrent_outgoing_recoveries" : "8",
"node_concurrent_recoveries" : "8",
"exclude" : {
"_ip" : "10.28.4.54"
}
}
}
}
}
}
1 个回复
Ombres
赞同来自: forestlee