curl -XPUT 'http://x.x.x.x:9200/_all/_settings' -H 'Content-Type: application/json' -d '{
"index.unassigned.node_left.delayed_timeout": 0
}'
curl -XPUT 'http://x.x.x.x:9200/_all/_settings' -H 'Content-Type: application/json' -d '{
"index.unassigned.node_left.delayed_timeout": "5s"
}'
curl -XPUT 'http://x.x.x.x:9200/_all/_settings' -H 'Content-Type: application/json' -d '{
"settings": {
"index": {
"refresh_interval" : "1s"
}
}
}'
curl -XPOST 'http://x.x.x.x:9200/_cluster/reroute' -H 'Content-Type: application/json' -d '{
"commands":[
{
"move" : {
"index" : "tns_order_index_v1", "shard" : 2,
"from_node" : "172.31.82.58", "to_node" : "l-order-es13.rd.cn2"
}
}
]
}'
curl -XPUT 'http://x.x.x.x:9200/_cluster/settings' -H 'Content-Type: application/json' -d '{
"persistent": {
"cluster": {
"routing": {
"allocation.enable": "all"
}
}
}
}'
curl -XPOST http://x.x.x.x:9200/_cluster/reroute?retry_failed=true
curl -XGET http://x.x.x.x:9200/_cluster/allocation/explain?pretty
curl -s "http://x.x.x.x:9200/_cat/shards"
curl -XGET 'http://x.x.x.x:9200/_cat/shards' | grep UNASSIGNED