Open kgneng2 opened 2 years ago
http://host:10200/_cluster/health?pretty
curl -XPUT "localhost:9200/<INDEX_NAME>/_settings?pretty" -H 'Content-Type: application/json' -d' { "settings": { "index.unassigned.node_left.delayed_timeout": "5m" } }'
N >= R + 1
replica 갯수가 Node수보다 작아야한다
PUT _cluster/settings { "transient": { "cluster.routing.allocation.enable" : "all" } }
curl -XGET http://localhost:9200/_cat/shards | grep UNASSIGNED | awk {'print $1'} | xargs -i curl -XDELETE "/{}"
1. DELETE
1. cluster 상태확인
2. unassinged 된 shard
2. shard allocation is delayed
3. too many shard
replica 갯수가 Node수보다 작아야한다
4. re-enable shard allocation
Refererence