# Runaway Resource Usage

**URL:** <https://discuss.elastic.co/t/runaway-resource-usage/197560>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [August 30, 2019, 5:18pm UTC](https://discuss.elastic.co/t/runaway-resource-usage/197560 "2019-08-30T17:18:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![j-rewerts](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j-rewerts/32/52724_2.png) [@j-rewerts](https://discuss.elastic.co/u/j-rewerts)\
**Post date:** [August 30, 2019, 5:18pm UTC](https://discuss.elastic.co/t/runaway-resource-usage/197560/1 "2019-08-30T17:18:41Z")

</div>

Hi!

I've deployed a cluster following [this guide](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html) to Kubernetes in GKE. One of my ES nodes was evicted for using too much memory.

 ![26%20AM](https://us1.discourse-cdn.com/elastic/original/3X/a/f/af6d90210998658f3398131c450fafda1be53e63.png)  
 ![51%20AM](https://us1.discourse-cdn.com/elastic/original/3X/8/0/80e6dcd4acfdbb086756900fd829a3862746219a.png)

I wasn't running anything overnight on the cluster. How can I ensure Elasticsearch doesn't get evicted in the future?

---

<div class="post-metadata">

**Author:** ![j-rewerts](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j-rewerts/32/52724_2.png) [@j-rewerts](https://discuss.elastic.co/u/j-rewerts)\
**Post date:** [August 30, 2019, 5:27pm UTC](https://discuss.elastic.co/t/runaway-resource-usage/197560/2 "2019-08-30T17:27:22Z")

</div>

One thing I should add is that I had turned on stack monitoring.

---

<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:** [August 30, 2019, 5:36pm UTC](https://discuss.elastic.co/t/runaway-resource-usage/197560/3 "2019-08-30T17:36:33Z")

</div>

Hi @j-rewerts you can configure resource request/limits, as well as JVM heap size, as described in the latter half of this sample:

> <https://github.com/elastic/cloud-on-k8s/blob/0.9/operators/config/samples/elasticsearch/elasticsearch.yaml>

  
Let us know if you have any questions

---

<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:23am UTC](https://discuss.elastic.co/t/runaway-resource-usage/197560/4 "2022-11-04T07:23:37Z")

</div>


