# New warm nodes are getting filled fast

**URL:** https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417
**Category:** Elasticsearch
**Created:** [April 7, 2021, 7:57am UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417 "2021-04-07T07:57:39Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![prajwalgmpp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prajwalgmpp/32/47707_2.png) [@prajwalgmpp](https://discuss.elastic.co/u/prajwalgmpp)
#### Post date: [April 7, 2021, 7:57am UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/1 "2021-04-07T07:57:39Z")

</div>

Hi All,

In the beginning, we had 4 data nodes. Two were ilm designated hot nodes and the other two were warm nodes. Newly created indices would be in the hot nodes under the hot phase and after 4 weeks of retention, would move to the warm nodes under the warm phase.

Recently we added two more warm nodes to the cluster. But what we have been noticing is that the indices are prominently populating these new warm nodes instead of getting evenly distributed across all the 4 warm nodes. How can I make the indices to stop populating only the new warm nodes?

---

<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: [April 7, 2021, 8:12am UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/2 "2021-04-07T08:12:53Z")

</div>

Can you share your ILM policy and the config from the warm nodes?

---

<div class="post-metadata">

### Author: ![prajwalgmpp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prajwalgmpp/32/47707_2.png) [@prajwalgmpp](https://discuss.elastic.co/u/prajwalgmpp)
#### Post date: [April 7, 2021, 8:22am UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/3 "2021-04-07T08:22:21Z")

</div>

We don't have a set ILM policy as of now, because the naming for the majority of our indices are static and not dynamic. So we manually run the command

> ```
> PUT *2021.<week_number>/_settings
> {
> "index.routing.allocation.require.data": "warm"
> }
> 
> ```

every week to rollover indices from hot to warm phase.

Following is the config of our new warm node:

> cluster.name: "\*\*"  
> node.name: "data-4"  
> path.logs: /var/log/elasticsearch  
> path.data: /datadisks/disk2/elasticsearch/data  
> discovery.zen.ping.unicast.hosts: ["master-0:9300","master-1:9300","master-2:9300"]  
> node.master: false  
> node.data: true  
> node.attr.data: warm  
> discovery.zen.minimum\_master\_nodes: 2  
> network.host: [_site_, _local_]  
> node.max\_local\_storage\_nodes: 1  
> #node.attr.fault\_domain:  
> #node.attr.update\_domain:  
> #cluster.routing.allocation.awareness.attributes: fault\_domain,update\_domain  
> #xpack.license.self\_generated.type: trial  
> xpack.security.enabled: true  
> bootstrap.memory\_lock: false
> 
> xpack.security.authc.token.enabled: true
> 
> xpack.security.authc.realms.native1:  
> type: native  
> order: 0
> 
> xpack.security.authc.realms.saml1:  
> type: saml  
> order: 2  
> idp.metadata.path: saml/idp-external.xml  
> idp.entity\_id: "^^^"  
> sp.entity\_id: "_**"  
> sp.acs: "^^^"  
> sp.logout: "**_"  
> attributes.principal: "\*\*\*"  
> attributes.groups: "[http://schemas.microsoft.com/ws/2008/06/identity/claims/groups](http://schemas.microsoft.com/ws/2008/06/identity/claims/groups)"
> 
> xpack.security.http.ssl.enabled: true  
> xpack.security.http.ssl.key: ssl/data-4.key  
> xpack.security.http.ssl.certificate: ssl/data-4.crt  
> #xpack.security.http.ssl.key\_passphrase: \*\*\*
> 
> xpack.security.transport.ssl.enabled: true  
> xpack.security.transport.ssl.verification\_mode: certificate  
> xpack.security.transport.ssl.keystore.path: certs/elastic-certificates.p12  
> xpack.security.transport.ssl.truststore.path: certs/elastic-certificates.p12  
> xpack.notification.email.account:  
> standard\_account:  
> profile: standard  
> smtp:  
> auth: false  
> starttls.enable: false

---

<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: [April 7, 2021, 9:12pm UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/4 "2021-04-07T21:12:21Z")

</div>

It looks like you have a license above Basic, based on your use of Watcher and AD in Security, so I would encourage you to reach out your Support contact about this as well.

What's the output from;

```auto
GET /_cat/allocation?v
GET /_cat/nodeattrs?v

```

---

<div class="post-metadata">

### Author: ![prajwalgmpp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prajwalgmpp/32/47707_2.png) [@prajwalgmpp](https://discuss.elastic.co/u/prajwalgmpp)
#### Post date: [April 9, 2021, 9:13am UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/5 "2021-04-09T09:13:45Z")

</div>

> [@warkolm](#):
>
> `GET /_cat/allocation?v`

```
shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
   830 1tb 1.1tb 804.6gb 1.9tb 60 10.40.10.58 10.40.10.58 cle-data-3
   830 1tb 1.1tb 798.2gb 1.9tb 60 10.40.10.57 10.40.10.57 cle-data-2
   830 1.4tb 1.5tb 383.6gb 1.9tb 80 10.40.10.59 10.40.10.59 cle-data-5
  1005 1.3tb 1.4tb 482.7gb 1.9tb 76 10.40.10.8 10.40.10.8 cle-data-0
   830 1.5tb 1.6tb 344.5gb 1.9tb 82 10.40.10.60 10.40.10.60 cle-data-4
  1005 1.3tb 1.5tb 479.5gb 1.9tb 76 10.40.10.6 10.40.10.6 cle-data-1

cle-master-2 ml.machine_memory 3608973312
cle-master-2 ml.max_open_jobs 20
cle-master-2 xpack.installed true
cle-master-2 ml.enabled true
cle-data-2 ml.machine_memory 14706561024
cle-data-2 ml.max_open_jobs 20
cle-data-2 xpack.installed true
cle-data-2 ml.enabled true
cle-data-2 data warm
cle-data-1 ml.machine_memory 59094614016
cle-data-1 ml.max_open_jobs 20
cle-data-1 xpack.installed true
cle-data-1 ml.enabled true
cle-data-1 data hot
cle-data-3 ml.machine_memory 14706561024
cle-data-3 ml.max_open_jobs 20
cle-data-3 xpack.installed true
cle-data-3 ml.enabled true
cle-data-3 data warm
cle-data-4 ml.machine_memory 14677934080
cle-data-4 ml.max_open_jobs 20
cle-data-4 xpack.installed true
cle-data-4 ml.enabled true
cle-data-4 data warm
cle-data-5 ml.machine_memory 14677934080
cle-data-5 ml.max_open_jobs 20
cle-data-5 xpack.installed true
cle-data-5 ml.enabled true
cle-data-5 data warm
cle-master-0 ml.machine_memory 3608965120
cle-master-0 ml.max_open_jobs 20
cle-master-0 xpack.installed true
cle-master-0 ml.enabled true
cle-master-1 ml.machine_memory 3608973312
cle-master-1 ml.max_open_jobs 20
cle-master-1 xpack.installed true
cle-master-1 ml.enabled true
cle-data-0 ml.machine_memory 59094618112
cle-data-0 ml.max_open_jobs 20
cle-data-0 xpack.installed true
cle-data-0 ml.enabled true
cle-data-0 data hot

```

---

<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: [April 12, 2021, 12:28am UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/6 "2021-04-12T00:28:52Z")

</div>

Just a note, you have way too many shards for your data size and are likely overloading your nodes. You should shrink some of your indices if you can.

However looking at that output I can see;

```auto
cle-data-2 data warm
cle-data-3 data warm
cle-data-4 data warm
cle-data-5 data warm

```

And;

```auto
shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
   830 1tb 1.1tb 804.6gb 1.9tb 60 10.40.10.58 10.40.10.58 cle-data-3
   830 1tb 1.1tb 798.2gb 1.9tb 60 10.40.10.57 10.40.10.57 cle-data-2
   830 1.4tb 1.5tb 383.6gb 1.9tb 80 10.40.10.59 10.40.10.59 cle-data-5
   830 1.5tb 1.6tb 344.5gb 1.9tb 82 10.40.10.60 10.40.10.60 cle-data-4

```

So all of those nodes have the same shard count on them. It does look like the shard sizes are different though, which would account for what you are seeing.

However ES balances by shard count first, then if it starts to hit disk watermarks then it will move things around as needed.

---

<div class="post-metadata">

### Author: ![prajwalgmpp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prajwalgmpp/32/47707_2.png) [@prajwalgmpp](https://discuss.elastic.co/u/prajwalgmpp)
#### Post date: [April 26, 2021, 6:43am UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/7 "2021-04-26T06:43:31Z")

</div>

Earlier the watermark levels were 10 and 20gb respectively for low and high. I then changed it to the following:

```
> transient" : {
> "cluster" : {
> "routing" : {
> "rebalance" : {
> "enable" : "primaries"
> },
> "allocation" : {
> "disk" : {
> "threshold_enabled" : "true",
> "watermark" : {
> "low" : "150gb",
> "flood_stage" : "10gb",
> "high" : "100gb"
> }

```

But despite this, the free disk spaces on two of the warm nodes out of 4 have reduced to as low as 14gb and 65gb. Why is this happening? Why didn't elasticsearch stop pushing data to these two nodes once they reached the 100gb threshold?

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [April 26, 2021, 7:13am UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/8 "2021-04-26T07:13:29Z")

</div>

> [@prajwalgmpp](#):
>
> Why didn't elasticsearch stop pushing data to these two nodes once they reached the 100gb threshold?

Which nodes have reached the 100GB threshold? According to `GET _cat/allocation`, all nodes have over 300GB of free space.

---

<div class="post-metadata">

### Author: ![prajwalgmpp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prajwalgmpp/32/47707_2.png) [@prajwalgmpp](https://discuss.elastic.co/u/prajwalgmpp)
#### Post date: [April 26, 2021, 11:38am UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/9 "2021-04-26T11:38:44Z")

</div>

Hi David

The GET /\_cat/allocation output that I had posted is a couple of weeks old. Today it had reached 1gb and 65gb. We have done some cleanup work now and the free disk space has risen to around 100gb, so no use providing the current allocation output.

Any further advise?

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [April 26, 2021, 12:45pm UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/10 "2021-04-26T12:45:47Z")

</div>

Would be good to see diagnostic info from when the problem was occurring, but if the problem is not occurring any more then there's not a lot we can do.

If it happens again then obtain `GET _cat/allocation` and also run the [cluster allocation explain API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-allocation-explain.html) on one or more shards on the node that's too full. Logs from the master at the same time might be useful too.

---

<div class="post-metadata">

### Author: ![prajwalgmpp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prajwalgmpp/32/47707_2.png) [@prajwalgmpp](https://discuss.elastic.co/u/prajwalgmpp)
#### Post date: [April 26, 2021, 1:38pm UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/11 "2021-04-26T13:38:41Z")

</div>

The problem still exists David. The free disk space has increased because we have manually deleted indices. Otherwise, it would have reached 0gb by now.

Sure, when the free disp space of the nodes fall below 100gb, I will post the allocation output and provide the logs from Master

---

<div class="post-metadata">

### Author: ![prajwalgmpp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prajwalgmpp/32/47707_2.png) [@prajwalgmpp](https://discuss.elastic.co/u/prajwalgmpp)
#### Post date: [April 27, 2021, 9:20am UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/12 "2021-04-27T09:20:54Z")

</div>

Hi David,

Is there a way to temporarily halt elasticsearch from allocating shards to a particular node that is space constrained so that it can concentrate on other nodes?

```
> shards disk.indices disk.used disk.avail disk.total disk.percent node
> 523 1.2tb 1.3tb 581.6gb 1.9tb 71 cle-data-5
> 523 1tb 1.1tb 811gb 1.9tb 59 cle-data-3
> 522 1.2tb 1.3tb 587gb 1.9tb 70 cle-data-4
> 502 1.7tb 1.8tb 102.3gb 1.9tb 94 cle-data-2

```

As you can see, cle-data-2 has just 102.3gb whereas other nodes have a lot. So how can I halt elasticsearch allocation on cle-data-2 temporarily?

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [April 27, 2021, 9:35am UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/13 "2021-04-27T09:35:28Z")

</div>

Yes, that happens by default when the free space reaches the high watermark. I think it's already doing its thing, given that this node has fewer shards than the others. Would you supply the other diagnostic info I asked for above (allocation explain for a shard on the overfull node, plus master logs)?

---

<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: [May 25, 2021, 9:35am UTC](https://discuss.elastic.co/t/new-warm-nodes-are-getting-filled-fast/269417/14 "2021-05-25T09:35:32Z")

</div>

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