There are 50,000 shards and 70 nodes in my cluster.I have two nodes with hardware failure,I want to use allocate_stale_primary for recovery. How can I quickly find out the "stale primary".
curl -X POST "http://localhost:9200/_cluster/reroute?pretty" -H 'Content-Type: application/json' -d'
{
"commands" : [
{
"allocate_stale_primary" : {
"index" : "myindex",
"shard" : 9,
"node" : "",
"accept_data_loss":true
}
}
]
}
'