curl -XGET localhost:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason| grep UNASSIGNED
index-2017.01.20 3 p UNASSIGNED NODE_LEFT
When a node has been restarted, then some index will be unassigned. Any config I can do to prevent this will happen