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"
}
}'