Add validation of the total_shards_per_node to the beginning of the ILM shrink step #72725
Labels
>bug
:Data Management/ILM+SLM
Index and Snapshot lifecycle management
Team:Data Management
Meta label for data/management team
If the
total_shards_per_node
per node setting will prevent the shards of the index from all being relocated to a single node, then we should fail the shrink action without havingset-single-node-allocation
since it won't work anyway.For example, if the index has 5 shards, but
total_shards_per_node
is set to 3 for this index, then we won't be able to actually move all the shards onto one node -- failing this early with a validation / pre-flight error would be better than attempting toset-single-node-allocation
and then waiting forever for it to do something that it isn't going to do.The text was updated successfully, but these errors were encountered: