'how to check if ElasticSearch's Restore is finished?
Can I monitor Elasticsearch's Restore process? I am looking for a GET request in Elasticsearch's API that checks if restore has finished.
I'm restoring indices from a snapshot I've created, but how can I know if the restore has finished?
waitUntilRestoreFromSnapshotIsFinished(ElasticsearchClient EsClient) {
//what to do here??
}
Solution 1:[1]
I've got an answer for this that helped me, hope it helps you all:
You can use this Elasticsearch API: GET: <your_host>/_cat/recovery?v&pretty&human
Then filter the result by the recovery_type of "snapshot" and look at the progress percentage (for one snapshot there might be more than one recovery)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |