删除碎片分配过滤器
问题描述:
我设置了一个分片分配过滤器,如:
I have set a shard allocation filter like:
PUT _cluster/settings
{
"transient" : {
"cluster.routing.allocation.exclude._name" : "node-1"
}
}
如何删除或禁用此类设置?我尝试使用include,但是我已经设置了两个过滤器 - 包含和排除。我可以设置类似cluster.routing.allocation.exclude._name:
。
How can I remove or disable such a setting? I tried with include, but then I have both filter setted - include and exclude. I can set something like "cluster.routing.allocation.exclude._name" : ""
.
但是它也可以设置如下:包括所有
节点?
But is it also possible to set something like: include all
nodes?
答
你尝试过
PUT _cluster/settings
{
"transient" : {
"cluster.routing.allocation.exclude._name" : ""
}
}
听起来很愚蠢,但我认为这是你在弹性搜索中取消设置的方式...
Sounds dumb, but I think that's how you unset things in elasticsearch...