How do i find out "stale primary" quickly

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

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.