# Logstash circuit breaking

**URL:** <https://discuss.elastic.co/t/logstash-circuit-breaking/315049>\
**Category:** Logstash\
**Created:** [September 23, 2022, 6:46pm UTC](https://discuss.elastic.co/t/logstash-circuit-breaking/315049 "2022-09-23T18:46:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harper\_S1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harper_s1/32/103430_2.png) [@Harper\_S1](https://discuss.elastic.co/u/Harper_S1)\
**Post date:** [September 23, 2022, 6:46pm UTC](https://discuss.elastic.co/t/logstash-circuit-breaking/315049/1 "2022-09-23T18:46:52Z")

</div>

Hi,

Do anyone know how to solve this circuit breaking exception in logstash (7.10).

```auto
[2022-09-23T14:38:22,920][INFO][logstash.outputs.elasticsearch][main][299ec4f1e5994d0fe7b59d4e4d29f50e734f0d6401d909dc198ecbc402ca3983] retrying failed action with response code: 429 ({"type"=>"circuit_breaking_exception", "reason"=>"[parent] Data too large, data for [indices:data/write/bulk[s]] would be [30050216410/27.9gb], which is larger than the limit of [29581587251/27.5gb], real usage: [30050158840/27.9gb], new bytes reserved: [57570/56.2kb], usages [request=0/0b, fielddata=2602183/2.4mb, in_flight_requests=57570/56.2kb, model_inference=0/0b, accounting=1486405036/1.3gb]", "bytes_wanted"=>30050216410, "bytes_limit"=>29581587251, "durability"=>"PERMANENT"})
[2022-09-23T14:38:22,920][INFO][logstash.outputs.elasticsearch][main][299ec4f1e5994d0fe7b59d4e4d29f50e734f0d6401d909dc198ecbc402ca3983] Retrying individual bulk actions that failed or were rejected by the previous bulk request. {:count=>14}
^C

```

I have tried multiple options like

1. To increase the jvm to 16g under /etc/logstash/jvm.options but still the same issue.
2. Restart logstash and Elastic nodes

Is there a way where I can discard this 27.9gb data or any other better way to resolve this issue.

Thank you!

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 23, 2022, 9:41pm UTC](https://discuss.elastic.co/t/logstash-circuit-breaking/315049/2 "2022-09-23T21:41:09Z")

</div>

That looks like circuit breaking on the elasticsearch side.

You're going to need to take a look, but it looks to me that your elasticsearch cluster It's very high JVM usage which could mean you have very high number of indices or shards or any number of reasons.

But pretty sure that error comes from the elasticsearch side.

---

<div class="post-metadata">

**Author:** ![Harper\_S1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harper_s1/32/103430_2.png) [@Harper\_S1](https://discuss.elastic.co/u/Harper_S1)\
**Post date:** [September 27, 2022, 3:24am UTC](https://discuss.elastic.co/t/logstash-circuit-breaking/315049/3 "2022-09-27T03:24:11Z")

</div>

I too agree, this error will be coming from elastic, but JVM is 65% utilized in elastic.

---

<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:** [October 25, 2022, 3:24am UTC](https://discuss.elastic.co/t/logstash-circuit-breaking/315049/4 "2022-10-25T03:24:20Z")

</div>

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