# Lots of bulk requests being rejected by data node

**URL:** <https://discuss.elastic.co/t/lots-of-bulk-requests-being-rejected-by-data-node/198105>\
**Category:** Elasticsearch\
**Created:** [September 4, 2019, 9:22pm UTC](https://discuss.elastic.co/t/lots-of-bulk-requests-being-rejected-by-data-node/198105 "2019-09-04T21:22:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![viniciof](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/viniciof/32/53454_2.png) [@viniciof](https://discuss.elastic.co/u/viniciof)\
**Post date:** [September 4, 2019, 9:22pm UTC](https://discuss.elastic.co/t/lots-of-bulk-requests-being-rejected-by-data-node/198105/1 "2019-09-04T21:22:46Z")

</div>

Hi all,

One of my data nodes is always running 4 "bulk" tasks, has a waiting queue of 500 (max queue limit in our settings) and millions of rejected requests.

`GET _cat/thread_pool?v`  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/3/f322062ea72aad9b3052071321332cf42ef332f7.png)  
If I check the tasks running there, none of them is "long running" (according to running\_time\_in\_nanos field) thus I guess it's just a lot of small tasks arriving overwhelming my this queue.

I also notice I have some shards still INITIALIZING (they belong to very big index of around 4.2~TB) and they're indeed being processed by the same problematic node rejecting other requests. In addition, there are no errors reported by the _explain API_ for these and indeed 1 week ago it was 10 shards in this state, I measured the progress and seems that each shards takes around 15 hrs to finish and become fully assigned. Only three remain now (will probably complete in around 3-4 days) but this huge duration worries me.

```
puma.compilation.pipeline.96f19f5b-bc84-4d4b-8694-b80a293e78e4-latest 4 r INITIALIZING 10.184.95.1 data1-iil-001_data
puma.compilation.pipeline.96f19f5b-bc84-4d4b-8694-b80a293e78e4-latest 5 r INITIALIZING 10.184.95.1 data1-iil-001_data
puma.compilation.pipeline.96f19f5b-bc84-4d4b-8694-b80a293e78e4-latest 0 r INITIALIZING 10.184.95.1 data1-iil-001_data

```

The tasks related to initializations above look like this:

`GET _tasks?actions=internal:*&detailed`

```
"NdV2wnCaTKWjNr1Skdss1g": {
      "name": "data1-iil-001_data",
      "transport_address": "10.184.95.1:9300",
      "host": "icsl7074.iil.intel.com",
      "ip": "10.184.95.1:9300",
      "roles": [
        "data"
      ],
      "attributes": {
        "ibi_site": "iil",
        "box_type": "hot"
      },
      "tasks": {
        "NdV2wnCaTKWjNr1Skdss1g:299757825": {
          "node": "NdV2wnCaTKWjNr1Skdss1g",
          "id": 299757825,
          "type": "netty",
          "action": "internal:index/shard/recovery/translog_ops",
          "description": "",
          "start_time_in_millis": 1567631974145,
          "running_time_in_nanos": 95220328892,
          "cancellable": false
        },
        "NdV2wnCaTKWjNr1Skdss1g:299833445": {
          "node": "NdV2wnCaTKWjNr1Skdss1g",
          "id": 299833445,
          "type": "netty",
          "action": "internal:index/shard/recovery/translog_ops",
          "description": "",
          "start_time_in_millis": 1567632018694,
          "running_time_in_nanos": 50670944997,
          "cancellable": false
        },
        "NdV2wnCaTKWjNr1Skdss1g:299917403": {
          "node": "NdV2wnCaTKWjNr1Skdss1g",
          "id": 299917403,
          "type": "netty",
          "action": "internal:index/shard/recovery/translog_ops",
          "description": "",
          "start_time_in_millis": 1567632062311,
          "running_time_in_nanos": 7053950865,
          "cancellable": false
        }
      }
    }

```

Do you know what's the best known method to be able to continue handling incoming bulk requests as the init tasks above are occupying the available slots? (which is 4 in our setup for max bulk requests)

---

<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 2, 2019, 9:22pm UTC](https://discuss.elastic.co/t/lots-of-bulk-requests-being-rejected-by-data-node/198105/2 "2019-10-02T21:22:51Z")

</div>

Closed on October 2, 2019, 9:22pm UTC

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