Search code examples
elasticsearchbackupshardingsnapshot

Elasticsearch: Restore snapshot with different shards number


I have created an Elasticsearch snapshot and want to restore it with a different number of shards: My old cluster uses 5 shards for every index, I want to reduce it to 2 shards.

Is this somehow possible to do this with the Elasticsearch snapshot API?


Solution

  • This is not possible with Elasticsearch snapshot API. Internally snapshot is taken per shard and it is restored also in the same manner.

    -- Edit ---

    We have shrink API now , which can reduce number shard but only to a devisiable number.