This API allows you to shrink an existing index into a new one with fewer primary shards. The number of the primary shards of the new index must be a factor of the original primary shards. The steps are as follows:
- The source index is marked as read-only using the index.blocks.write:true setting
.
Its states must be in green health. The relocation of a copy of each shard must be the same node, shrink_node_name (https://www.elastic.co/guide/en/elasticsearch/reference/master/shard-allocation-filtering.html):
- Use the _shrink API to shrink the cf_etf_split index into a new cf_etf_shrink