# What is the difference between force merge and freeze index on ILM actions?

**URL:** <https://discuss.elastic.co/t/what-is-the-difference-between-force-merge-and-freeze-index-on-ilm-actions/299811>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [March 16, 2022, 4:17am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-force-merge-and-freeze-index-on-ilm-actions/299811 "2022-03-16T04:17:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![m-amano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m-amano/32/62977_2.png) [@m-amano](https://discuss.elastic.co/u/m-amano)\
**Post date:** [March 16, 2022, 4:17am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-force-merge-and-freeze-index-on-ilm-actions/299811/1 "2022-03-16T04:17:47Z")

</div>

Is there any difference between force merge and freeze index action in ILM?

My entire ILM is under below.  
In warm phase, the index is merged to a single segment which makes the index read only.

```auto
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "set_priority": {
            "priority": 100
          }
        }
      },
      "warm": {
        "min_age": "1d",
        "actions": {
          "shrink": {
            "number_of_shards": 1
          },
          "set_priority": {
            "priority": 50
          },
          "forcemerge": {
            "max_num_segments": 1
          }
        }
      },
      "delete": {
        "min_age": "90d",
        "actions": {
          "delete": {
            "delete_searchable_snapshot": true
          }
        }
      }
    }
  }
}

```

Now I have two questions.  
Would it bring any better performance or any difference if I add cold phase with freeze action after warm Phase?  
Is this freeze action not used in Elastic v8 anymore?

> **[Index lifecycle actions | Elasticsearch Guide \[8.1\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.1/ilm-actions.html)**

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [March 16, 2022, 10:58pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-force-merge-and-freeze-index-on-ilm-actions/299811/2 "2022-03-16T22:58:56Z")

</div>

Freeze was primarily used to lower the overhead that an index took in the memory of the cluster. With changes in later versions of Elasticsearch, it is no longer necessary (we reduced index overhead), so it was deprecated and will eventually be removed.

I would recommend not using it in your ILM policy, as it is also deprecated there.

Hope that helps.

---

<div class="post-metadata">

**Author:** ![m-amano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m-amano/32/62977_2.png) [@m-amano](https://discuss.elastic.co/u/m-amano)\
**Post date:** [March 17, 2022, 1:28am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-force-merge-and-freeze-index-on-ilm-actions/299811/3 "2022-03-17T01:28:31Z")

</div>

@dakrone

Thanks, I get it!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 14, 2022, 1:29am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-force-merge-and-freeze-index-on-ilm-actions/299811/4 "2022-04-14T01:29:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
