ES平衡节点的时候不向上面分配分片,或者更进一步直接将原有分片“赶出去
可以尝试使用下面的命令
curl -XPUT 'localhost:9200/_cluster/settings' -d
'{
"transient": {
"cluster.routing.allocation.exclude._ip": "192.168.0.1,192.168.0.2"
}
}'
ES平衡节点的时候不向上面分配分片,或者更进一步直接将原有分片“赶出去
可以尝试使用下面的命令
curl -XPUT 'localhost:9200/_cluster/settings' -d
'{
"transient": {
"cluster.routing.allocation.exclude._ip": "192.168.0.1,192.168.0.2"
}
}'