# ILM on single-node?

**URL:** <https://discuss.elastic.co/t/ilm-on-single-node/333997>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [May 22, 2023, 8:58am UTC](https://discuss.elastic.co/t/ilm-on-single-node/333997 "2023-05-22T08:58:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skairik](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Skairik](https://discuss.elastic.co/u/Skairik)\
**Post date:** [May 22, 2023, 8:58am UTC](https://discuss.elastic.co/t/ilm-on-single-node/333997/1 "2023-05-22T08:58:34Z")

</div>

Hello everyone,

I am currently on a single-node infrastructure and I would like to know if the implementation of ILM was useful, I assumed that putting an ILM with the different phases would allow me to keep my data longer, since it seemed to me that in cold tier, they took up less space. But that's not the impression I have:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/0/a07c8a475b246c5f68063f46ac1fd7747fef2c8a.png)

The 3 oldest are currently in cold phase, and still take the same place.

That's why I wonder if it would not come from the fact that I am in single node.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 22, 2023, 9:17am UTC](https://discuss.elastic.co/t/ilm-on-single-node/333997/2 "2023-05-22T09:17:09Z")

</div>

The different stages does change the storage size or resource usage unless you change index settings or perhaps forcemerge as part of phase transitions. If none of this is done the index is exactly the ame irrespective of phase. You can host all phases on a single node and use ILM to manage retention and use the different phases to apply or alter settings.

---

<div class="post-metadata">

**Author:** ![Skairik](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Skairik](https://discuss.elastic.co/u/Skairik)\
**Post date:** [May 22, 2023, 9:28am UTC](https://discuss.elastic.co/t/ilm-on-single-node/333997/3 "2023-05-22T09:28:51Z")

</div>

Thanks for the reply,

So if it doesn't reduce the size of the indexes, what I do is useless or does it still reduce the load on elasticsearch (on cpu or memory maybe ?). If it doesn't, it's useless for me now I guess.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 22, 2023, 9:55am UTC](https://discuss.elastic.co/t/ilm-on-single-node/333997/4 "2023-05-22T09:55:53Z")

</div>

ILM helps you manage retention by deleting old indices. If you do not do this the node will fill up and stop indexing. I would recommend implementing a hot-warm approach where you forcemerge your indices down to a single segment at the transition from hot to warm. This generally reduces heap usage.

---

<div class="post-metadata">

**Author:** ![Skairik](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Skairik](https://discuss.elastic.co/u/Skairik)\
**Post date:** [May 22, 2023, 10:11am UTC](https://discuss.elastic.co/t/ilm-on-single-node/333997/5 "2023-05-22T10:11:46Z")

</div>

So if I do that, my warm phase indexes will be read only (`Force merges the index into the specified maximum number of segments. This action makes the index read-only.`) and will take less space (perfect). But about the cold phase, if I don't add any parameter, there is no interest to activate it ? I can just set hot/warm/delete phases ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 22, 2023, 10:20am UTC](https://discuss.elastic.co/t/ilm-on-single-node/333997/6 "2023-05-22T10:20:14Z")

</div>

Yes, you do not need to implement all phases. You can also set the [best\_compression codec](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/ilm-forcemerge.html) when you forcemerge as this improve compression of data.

---

<div class="post-metadata">

**Author:** ![Skairik](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Skairik](https://discuss.elastic.co/u/Skairik)\
**Post date:** [May 22, 2023, 10:44am UTC](https://discuss.elastic.co/t/ilm-on-single-node/333997/7 "2023-05-22T10:44:37Z")

</div>

Ok great, many thanks for your help!

---

<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:** [June 19, 2023, 10:45am UTC](https://discuss.elastic.co/t/ilm-on-single-node/333997/8 "2023-06-19T10:45:02Z")

</div>

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