删除碎片分配过滤器 [英] Remove shard allocation filter
本文介绍了删除碎片分配过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我设置了一个分片分配过滤器,如:
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...
这篇关于删除碎片分配过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文