For the former, you probably can poll the cluster state for reallocating
shards. Not very efficient, but since shard reallocation can take some time
for non-trivial indices (large shards), the polling interval can be large.
Deletions would be tough. When exactly is a shard deleted in ElasticSearch?
The only scenario I can think of is during a reallocation (copy and
deleted) and when the numbers of replicas is reduced (which is under user
On Wed, Oct 3, 2012 at 2:43 AM, Alexander Reelsen email@example.com wrote:
is there any possibility to get informed, when a shard is moved from
one instance to another or when it is being deleted? I'd like to free
up some in-memory resources in case that happens in my