# Elasticsearch crashes with - org.elasticsearch.cluster.block.ClusterBlockException

**URL:** <https://discuss.elastic.co/t/elasticsearch-crashes-with-org-elasticsearch-cluster-block-clusterblockexception/234631>\
**Category:** Elasticsearch\
**Created:** [May 27, 2020, 11:01pm UTC](https://discuss.elastic.co/t/elasticsearch-crashes-with-org-elasticsearch-cluster-block-clusterblockexception/234631 "2020-05-27T23:01:10Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 28, 2020, 12:53pm UTC](https://discuss.elastic.co/t/elasticsearch-crashes-with-org-elasticsearch-cluster-block-clusterblockexception/234631/21 "2020-05-28T12:53:38Z")

</div>

> [@Lisahtwy](#):
>
> I have been trying with bulksize = 5, do you want me to lower than that?

No. I believe that's a safe value.

> [@Lisahtwy](#):
>
> I have seen some posts here caused by connection creation without port=9200. Is this the possible culprit?

I don't know the Python client so I can't tell sorry.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 28, 2020, 1:59pm UTC](https://discuss.elastic.co/t/elasticsearch-crashes-with-org-elasticsearch-cluster-block-clusterblockexception/234631/22 "2020-05-28T13:59:31Z")

</div>

Also how much RAM do you have on the machine?

---

<div class="post-metadata">

**Author:** ![Lisahtwy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lisahtwy/32/53910_2.png) [@Lisahtwy](https://discuss.elastic.co/u/Lisahtwy)\
**Post date:** [May 28, 2020, 3:57pm UTC](https://discuss.elastic.co/t/elasticsearch-crashes-with-org-elasticsearch-cluster-block-clusterblockexception/234631/23 "2020-05-28T15:57:31Z")

</div>

8GB RAM

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 28, 2020, 4:32pm UTC](https://discuss.elastic.co/t/elasticsearch-crashes-with-org-elasticsearch-cluster-block-clusterblockexception/234631/24 "2020-05-28T16:32:59Z")

</div>

Is there any other process running on that machine? Anything else than Elasticsearch?

---

<div class="post-metadata">

**Author:** ![Lisahtwy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lisahtwy/32/53910_2.png) [@Lisahtwy](https://discuss.elastic.co/u/Lisahtwy)\
**Post date:** [May 28, 2020, 5:16pm UTC](https://discuss.elastic.co/t/elasticsearch-crashes-with-org-elasticsearch-cluster-block-clusterblockexception/234631/25 "2020-05-28T17:16:17Z")

</div>

Other than Elasticsearch, flask application is running. To run flask in production, I am using gunicorn and Nginx. Thats it.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 28, 2020, 5:37pm UTC](https://discuss.elastic.co/t/elasticsearch-crashes-with-org-elasticsearch-cluster-block-clusterblockexception/234631/26 "2020-05-28T17:37:43Z")

</div>

How much ram does it need to run?  
You should not allocate more than half of the available ram to elasticsearch heap.

When a node is suddenly killed that could be caused by an OOM killer.

---

<div class="post-metadata">

**Author:** ![Lisahtwy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lisahtwy/32/53910_2.png) [@Lisahtwy](https://discuss.elastic.co/u/Lisahtwy)\
**Post date:** [May 28, 2020, 5:42pm UTC](https://discuss.elastic.co/t/elasticsearch-crashes-with-org-elasticsearch-cluster-block-clusterblockexception/234631/27 "2020-05-28T17:42:06Z")

</div>

I didnt check how much flask is taking, but below is the part of memory info of my server.

```auto
MemTotal: 8135944 kB
MemFree: 359508 kB
MemAvailable: 488208 kB
Buffers: 19380 kB
Cached: 732836 kB
SwapCached: 26316 kB
Active: 6523720 kB

```

server has 8GB RAM so I gave 4gb for heap space.

---

<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 25, 2020, 5:42pm UTC](https://discuss.elastic.co/t/elasticsearch-crashes-with-org-elasticsearch-cluster-block-clusterblockexception/234631/28 "2020-06-25T17:42:11Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/elasticsearch-crashes-with-org-elasticsearch-cluster-block-clusterblockexception/234631.md?page=1)
