# How To Fix : code 429 - circuit\_breaking\_exception - Data too large, data for \[indices:data/write/bulk\[s\]\]

**URL:** https://discuss.elastic.co/t/how-to-fix-code-429-circuit-breaking-exception-data-too-large-data-for-indices-data-write-bulk-s/354138
**Category:** Elasticsearch
**Created:** [February 26, 2024, 4:37pm UTC](https://discuss.elastic.co/t/how-to-fix-code-429-circuit-breaking-exception-data-too-large-data-for-indices-data-write-bulk-s/354138 "2024-02-26T16:37:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Leo\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leo_k/32/132094_2.png) [@Leo\_K](https://discuss.elastic.co/u/Leo_K)
#### Post date: [February 26, 2024, 4:37pm UTC](https://discuss.elastic.co/t/how-to-fix-code-429-circuit-breaking-exception-data-too-large-data-for-indices-data-write-bulk-s/354138/1 "2024-02-26T16:37:23Z")

</div>

Hello everyone,

Configuration : Elastic Cloud - ES 8.11

I've been benchmarking Elastic for the past days and had multiple errors coming up and I couldn't find a viable answer on the most annoying one :

```auto
{ _index: 'MY_INDEX',
  _id: 'aicE5Y0B8q_R8Ba0rtrK',
  status: 429,
  error:
   { type: 'circuit_breaking_exception',
     reason:
      '[parent] Data too large, data for [indices:data/write/bulk[s]] would be [1924248266/1.7gb], which is larger than the limit of [1717986918/1.5gb], real usage: [1913359656/1.7gb], new bytes reserved: [10888610/10.3mb], usages [request=0/0b, inflight_requests=10888610/10.3mb, model_inference=0/0b, eql_sequence=0/0b, fielddata=197/197b]',
     bytes_wanted: 1924248266,
     bytes_limit: 1717986918,
     durability: 'TRANSIENT' } }

```

As you can see, I'm trying to insert 1924248266/1.7gb data while my Elastic instance is limited to compute 1717986918/1.5gb.

When I was looking the performance of my instance, CPU and RAM were pretty ok.

Anyways, to fix this, you need to check your nodes circuit breaker stats like this :  
`GET /_nodes/stats/breaker`

Here, you will have plenty of useful information per nodes but the most important is located on the "breaker" property.

If I look at the parent property, here's what I can see :

```auto
        "parent": {
          "limit_size_in_bytes": 1717986918, # Limit in bytes
          "limit_size": "1.5gb", # Limit in size
          "estimated_size_in_bytes": 1135798704, # Actual memory in bytes
          "estimated_size": "1gb", # Actual memory in size
          "overhead": 1, # A constant that all estimates for the circuit breaker are multiplied with to calculate a final estimate.
          "tripped": 0 # How many time this got triggered (reset on reboot)
        }

```

Let's say that you want to increase this to 2.2gb, you need ton run this command :

```auto
PUT /_cluster/settings
{
  "persistent": {
    "indices.breaker.total.limit": "2.2gb"
  }
}

```

This way, I'm increasing my circuit breaker total limit and thus making my import finally working ! I hope that this can help you 🙂

---

<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: [March 25, 2024, 4:37pm UTC](https://discuss.elastic.co/t/how-to-fix-code-429-circuit-breaking-exception-data-too-large-data-for-indices-data-write-bulk-s/354138/2 "2024-03-25T16:37:27Z")

</div>

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