Skip to content

Enhance shrink action in ILM to specify max single primary shard size #65714

Closed
@gaobinlong

Description

@gaobinlong

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Data Management/ILM+SLMIndex and Snapshot lifecycle management:Distributed Indexing/DistributedA catch all label for anything in the Distributed Indexing Area. Please avoid if you can.>featureTeam:Data ManagementMeta label for data/management teamTeam:Distributed (Obsolete)Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions