# ILM Policy Shard Allocation on the same node

**URL:** https://discuss.elastic.co/t/ilm-policy-shard-allocation-on-the-same-node/229928
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [April 27, 2020, 9:16am UTC](https://discuss.elastic.co/t/ilm-policy-shard-allocation-on-the-same-node/229928 "2020-04-27T09:16:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DawitCh](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@DawitCh](https://discuss.elastic.co/u/DawitCh)
#### Post date: [April 27, 2020, 9:16am UTC](https://discuss.elastic.co/t/ilm-policy-shard-allocation-on-the-same-node/229928/1 "2020-04-27T09:16:44Z")

</div>

Have I already try to look at this kind of question in the community?  
I would say yes. Most of them got red status cluster, but in my case

- There are 3 nodes **HOT WARM COLD respectively from node 1 to node 3**

- I add data to ELK stack, but **my shard is located on WARM/COLD instead of HOT**. I have no idea about this.

- shard allocation NOT ALLOW because my shard is in WARM node and it tries to reallocate from HOT to WARM **(allocation in the same node)**  
\*Note ''' "can\_remain\_on\_current\_node": "no" ''' I see this option in [Cluster api](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/cluster-allocation-explain.html) Is it possible to set because I didn't see this field in my result? or Is it already deprecated?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 18, 2020, 2:39am UTC](https://discuss.elastic.co/t/ilm-policy-shard-allocation-on-the-same-node/229928/2 "2020-05-18T02:39:27Z")

</div>

What does your policy look like?

---

<div class="post-metadata">

### Author: ![DawitCh](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@DawitCh](https://discuss.elastic.co/u/DawitCh)
#### Post date: [June 1, 2020, 3:18am UTC](https://discuss.elastic.co/t/ilm-policy-shard-allocation-on-the-same-node/229928/3 "2020-06-01T03:18:44Z")

</div>

```auto
{
  "1week" : {
    "version" : 1,
    "modified_date" : "2020-06-01T03:14:13.860Z",
    "policy" : {
      "phases" : {
        "warm" : {
          "min_age" : "0ms",
          "actions" : {
            "allocate" : {
              "include" : { },
              "exclude" : { },
              "require" : {
                "box_type" : "hot"
              }
            },
            "shrink" : {
              "number_of_shards" : 1
            },
            "set_priority" : {
              "priority" : 50
            }
          }
        },
        "cold" : {
          "min_age" : "3d",
          "actions" : {
            "set_priority" : {
              "priority" : 0
            }
          }
        },
        "hot" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_size" : "5gb",
              "max_age" : "2d"
            },
            "set_priority" : {
              "priority" : 100
            }
          }
        },
        "delete" : {
          "min_age" : "5d",
          "actions" : {
            "delete" : { }
          }
        }
      }
    }
  }
}

```

![image](https://us1.discourse-cdn.com/elastic/original/3X/0/a/0aa5be2d1d6a0a407d6bd092d473ddedcfcadd65.png)  
each phrase will have something like this and I set it according to the phrase. Ex. in warm phrase box\_typr will be warm.

---

<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 29, 2020, 3:18am UTC](https://discuss.elastic.co/t/ilm-policy-shard-allocation-on-the-same-node/229928/4 "2020-06-29T03:18:46Z")

</div>

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