Shrink index

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:

  1. 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):
  1. Use the _shrink API to shrink the cf_etf_split index into a new cf_etf_shrink index. The original setting of the cf_etf_split ...

Get Advanced Elasticsearch 7.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.