我正在尝试将所有碎片(主要和副本)从一个特定的Elasticsearch节点移至其他节点。
在做一些研究时,我了解了Cluster-level shard allocation filtering,可以在其中指定要在分配分片时忽略的节点名称。
PUT _cluster/settings
{
"transient" : {
"cluster.routing.allocation.exclude._name" : "data-node-1"
}
}
我的问题是
最佳答案
Shards are only relocated if it is possible to do so without breaking another routing constraint, such as never allocating a primary and replica shard on the same node.
更多信息here
关于elasticsearch - 如何检查所有碎片是否已从特定的Elasticsearch节点移走?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60545706/