# How to scale up and down nodes automatically?

**URL:** <https://discuss.elastic.co/t/how-to-scale-up-and-down-nodes-automatically/224089>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [March 18, 2020, 11:21am UTC](https://discuss.elastic.co/t/how-to-scale-up-and-down-nodes-automatically/224089 "2020-03-18T11:21:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![doctor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doctor/32/64648_2.png) [@doctor](https://discuss.elastic.co/u/doctor)\
**Post date:** [March 18, 2020, 11:21am UTC](https://discuss.elastic.co/t/how-to-scale-up-and-down-nodes-automatically/224089/1 "2020-03-18T11:21:51Z")

</div>

Hey,

I am searching for a way to scale up and down ES nodes **automatically** at runtime.

I know I can update the "kind: Elasticsearch" yaml to change the number of nodes in the cluster but can this be done by itself?

Is there something dedicated in ECK to address this specific matter or should I use the Kubernetes HPA?

* * *

Using ECK v1.0  
Env: On premise

Thx

---

<div class="post-metadata">

**Author:** ![Anya\_Sabo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anya_sabo/32/49903_2.png) [@Anya\_Sabo](https://discuss.elastic.co/u/Anya_Sabo)\
**Post date:** [March 18, 2020, 1:29pm UTC](https://discuss.elastic.co/t/how-to-scale-up-and-down-nodes-automatically/224089/2 "2020-03-18T13:29:17Z")

</div>

That's correct, to scale you would change the number of nodes in the nodeSet (or potentially [replace a nodeSet](https://www.elastic.co/guide/en/cloud-on-k8s/1.0/k8s-orchestration.html#k8s-orchestration-limitations) to increase storage/node). We do not have support for the HPA or another autoscaling mechanism at this time. Unfortunately adopting the HPA model for Elasticsearch is challenging, as it expects there to be a single underlying deployment/sset/etc. In this case multiple ssets (can) make up an Elasticsearch resource. We hope to have a better autoscaling story in the future, but for now you would need to create something tailored for your use case.

---

<div class="post-metadata">

**Author:** ![doctor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doctor/32/64648_2.png) [@doctor](https://discuss.elastic.co/u/doctor)\
**Post date:** [March 18, 2020, 1:33pm UTC](https://discuss.elastic.co/t/how-to-scale-up-and-down-nodes-automatically/224089/3 "2020-03-18T13:33:35Z")

</div>

Ok! Thx for your answer.

---

<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:** [November 4, 2022, 7:49am UTC](https://discuss.elastic.co/t/how-to-scale-up-and-down-nodes-automatically/224089/4 "2022-11-04T07:49:46Z")

</div>


