Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to check the relocation progress of shards in elasticsearch?

Yesterday, I was adding a node to production elasticsearch cluster once I added it I can use /_cat/health api to check number of relocating shards. And there is another api /_cat/shards to check which shards are getting relocated. However, is there any way or api to check live progress of shards/data movement to the newly added node. Suppose there is a 13GB shards, we've added a node to es cluster can we check how much percent, GBs(MBs or KBs) has moved currently so that we can have a estimate of how much time it will take for reallocation.

Can this be implemented by on our own or suggest this to elasticsearch? If it can be implemented on our own, how to proceed or what pre-requisites I need to know?

like image 415
Abhishek Sinha Avatar asked Oct 17 '25 15:10

Abhishek Sinha


1 Answers

you have

GET _cat/recovery?active_only=true&v
GET _cat/recovery?active_only=true&h=index,shard,source_node,target_node,bytes_percent,time

https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-recovery.html

like image 107
Alexey Gavrilov Avatar answered Oct 21 '25 14:10

Alexey Gavrilov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!