Description
Elasticsearch version: master
Plugins installed: []
JVM version (java -version): 14.0.1
OS version (uname -a if on a Unix-like system): Mac OS 10.13.6
Description of the problem including expected versus actual behavior:
Today in the shrink
action of ILM, we can only set number_of_shards
to a certain value which is a factor of the number of shards in the source index.
However, in our situation, the storage of the source indexs differ from 100GB to 1TB, all of the source indexs contain 60 shards, we want to shrink the soure index according to it's storage, for example, shrink the 100GB index to 2 shards and the 1TB index to 20 shards, ensure that the max primary shard size is 50GB.
So can we add a parameter like max_single_primary_size
in the shrink action thus the shard num of the new shrunken index can be calculated by the storage of the source index?