# Primary Indices replicating to Warm Node

**URL:** <https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [August 23, 2020, 6:20pm UTC](https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029 "2020-08-23T18:20:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajesh](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@ajesh](https://discuss.elastic.co/u/ajesh)\
**Post date:** [August 23, 2020, 6:20pm UTC](https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029/1 "2020-08-23T18:20:28Z")

</div>

Hi There,

Our current Elasticsearch stack is a 3 node testing cluster with 2 Data and 1 Warm node. All three are master. As per the cluster re-balancing policy its creating index replicas (Primary and replica) on the Warm node as well. Warm node is attached with magnetic HDD to handle only less load and we need to move only the indices to warm node as per the ILM policy which is configured. Please help us to configure it as per the node role.

Thanks  
Ajesh

---

<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:** [August 23, 2020, 7:10pm UTC](https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029/2 "2020-08-23T19:10:06Z")

</div>

How have you configured your shard allocation filtering and node attributes?

---

<div class="post-metadata">

**Author:** ![ajesh](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@ajesh](https://discuss.elastic.co/u/ajesh)\
**Post date:** [August 24, 2020, 3:38am UTC](https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029/3 "2020-08-24T03:38:35Z")

</div>

Hello Chris,

Thanks for looking into this. Shard allocation filtering was default. I just now configured the allocation filter as below and could see all the indices moved to first two nodes , but would like to know if this prevent the Warm indices from moving from first two nodes to warm node as per my ILM policy.

PUT \_cluster/settings  
{  
"transient": {  
"cluster.routing.allocation.exclude.\_ip": "192.168.206.100"  
}  
}

# First two nodes

Master  
Ingest  
data

# Last node

Master (Voting only)  
data  
node.attr.box\_type: warm

Thanks,  
Ajesh

---

<div class="post-metadata">

**Author:** ![ajesh](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@ajesh](https://discuss.elastic.co/u/ajesh)\
**Post date:** [August 24, 2020, 2:59pm UTC](https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029/4 "2020-08-24T14:59:26Z")

</div>

I have also set `node.attr.size: small`. but this dont have any effect , it still replicates the primary and replica indices to warm node.

---

<div class="post-metadata">

**Author:** ![ajesh](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@ajesh](https://discuss.elastic.co/u/ajesh)\
**Post date:** [August 25, 2020, 9:51am UTC](https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029/5 "2020-08-25T09:51:10Z")

</div>

Hi Chris,

Kindly help me to resolve this issue.

Thanks,  
Ajesh

---

<div class="post-metadata">

**Author:** ![Steve\_Mushero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_mushero/32/22441_2.png) [@Steve\_Mushero](https://discuss.elastic.co/u/Steve_Mushero)\
**Post date:** [August 26, 2020, 8:11am UTC](https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029/6 "2020-08-26T08:11:17Z")

</div>

Suggest looking at [filtering / allocation docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/shard-allocation-filtering.html) as starting point. You set the attribute but need to tell the cluster/index to use them, I assume.

---

<div class="post-metadata">

**Author:** ![ajesh](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@ajesh](https://discuss.elastic.co/u/ajesh)\
**Post date:** [August 26, 2020, 12:34pm UTC](https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029/7 "2020-08-26T12:34:33Z")

</div>

Thanks Steve, i will check the filter Option . Just one doubt. If i set the filter for a specific index for shard allocation only on Big nodes. Will those indices rollover to warm node as per the ILM policy

---

<div class="post-metadata">

**Author:** ![Steve\_Mushero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_mushero/32/22441_2.png) [@Steve\_Mushero](https://discuss.elastic.co/u/Steve_Mushero)\
**Post date:** [August 27, 2020, 8:47am UTC](https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029/8 "2020-08-27T08:47:27Z")

</div>

> [@ajesh](#):
>
> Thanks Steve, i will check the filter Option . Just one doubt. If i set the filter for a specific index for shard allocation only on Big nodes. Will those indices rollover to warm node as per the ILM policy

Sorry, don't know enough about ILM to answer, but it's set on the index, so I believe when the ILM rolls over to what what's a new index, it could have different settings.

---

<div class="post-metadata">

**Author:** ![ajesh](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@ajesh](https://discuss.elastic.co/u/ajesh)\
**Post date:** [August 27, 2020, 2:53pm UTC](https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029/9 "2020-08-27T14:53:51Z")

</div>

Thank you Steve , I will check this option and post the updates here.

---

<div class="post-metadata">

**Author:** ![ajesh](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@ajesh](https://discuss.elastic.co/u/ajesh)\
**Post date:** [September 2, 2020, 11:15am UTC](https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029/10 "2020-09-02T11:15:23Z")

</div>

Hi Steve,

After adding the below config to elasticsearch yml and index template , everything working fine.

`node.attr.data: warm` \> to elasticsearch.yml of warm node

`node.attr.data: hot` \> to elasticsearch.yml of hot node

Updated Index template with below config

```
"routing": {
  "allocation": {
    "require": {
      "data": "hot"
      } 
    }
  },

```

Updated all indices with below config

`"index.routing.allocation.require.data": "hot"`

Thank you Steve & Christian for the Guidance

---

<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:** [September 30, 2020, 11:15am UTC](https://discuss.elastic.co/t/primary-indices-replicating-to-warm-node/246029/11 "2020-09-30T11:15:45Z")

</div>

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