Reliable check that the shards re-allocation has finished

At work, we have some logic that involves moving shards from a certain set of nodes to a different set of nodes within an index. I would like to know if there is any reliable way to check for the condition that the reallocation of shards has finished OTHER THAN explicitly keep pulling the state of an ES cluster and check that the shards are where they should be.

The downside of an explicit polling is that due to some external issues (i.e. some nodes out of disk, etc), the check will never be satistifed. I would appreciate any help

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