# Why my bulk request not using all cpus of others node?

**URL:** https://discuss.elastic.co/t/why-my-bulk-request-not-using-all-cpus-of-others-node/180285
**Category:** Elasticsearch
**Created:** [May 9, 2019, 6:05am UTC](https://discuss.elastic.co/t/why-my-bulk-request-not-using-all-cpus-of-others-node/180285 "2019-05-09T06:05:06Z")
**Posts on this page:** 8
**Page:** 2

<div class="post-metadata">

### Author: ![ashishtiwari1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashishtiwari1993/32/135241_2.png) [@ashishtiwari1993](https://discuss.elastic.co/u/ashishtiwari1993)
#### Post date: [May 10, 2019, 7:35am UTC](https://discuss.elastic.co/t/why-my-bulk-request-not-using-all-cpus-of-others-node/180285/21 "2019-05-10T07:35:10Z")

</div>

@DavidTurner I did one experiment. I removed one node (node1) and start indexing. Now all traffic is moved to node2 according to `thread_pool` But indexing rate is same on both node (node2 and node3).

Some weird thing happening.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [May 10, 2019, 10:14am UTC](https://discuss.elastic.co/t/why-my-bulk-request-not-using-all-cpus-of-others-node/180285/22 "2019-05-10T10:14:12Z")

</div>

Is the distribution of primary and replica shards even?

---

<div class="post-metadata">

### Author: ![ashishtiwari1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashishtiwari1993/32/135241_2.png) [@ashishtiwari1993](https://discuss.elastic.co/u/ashishtiwari1993)
#### Post date: [May 10, 2019, 11:24am UTC](https://discuss.elastic.co/t/why-my-bulk-request-not-using-all-cpus-of-others-node/180285/23 "2019-05-10T11:24:25Z")

</div>

@Christian_Dahlqvist I dont have replica shards. And all primary shards distributed equally on both the server. And shards are not an even . Also i am using heavy bulk update.

---

<div class="post-metadata">

### Author: ![ashishtiwari1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashishtiwari1993/32/135241_2.png) [@ashishtiwari1993](https://discuss.elastic.co/u/ashishtiwari1993)
#### Post date: [May 11, 2019, 5:18pm UTC](https://discuss.elastic.co/t/why-my-bulk-request-not-using-all-cpus-of-others-node/180285/24 "2019-05-11T17:18:44Z")

</div>

Also one experiment i did. I reduced my bulk queue size from 10000 to 1000. Which caused rejection of document if queue size exceeded from 1000. I was expecting it will be route to other node whose bulk queue size is 10k.

Isn't it strange ?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [May 11, 2019, 5:21pm UTC](https://discuss.elastic.co/t/why-my-bulk-request-not-using-all-cpus-of-others-node/180285/25 "2019-05-11T17:21:54Z")

</div>

No, it gets queued where the primary shard resides for shard.

---

<div class="post-metadata">

### Author: ![ashishtiwari1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashishtiwari1993/32/135241_2.png) [@ashishtiwari1993](https://discuss.elastic.co/u/ashishtiwari1993)
#### Post date: [May 11, 2019, 5:28pm UTC](https://discuss.elastic.co/t/why-my-bulk-request-not-using-all-cpus-of-others-node/180285/26 "2019-05-11T17:28:15Z")

</div>

But my all bulk request getting queued on one node only. And in my shard allocation, it shows my primary shards is well distributed . So according to this i guess some request should be equally queued on all nodes.

Because i am receiving bulk request for all indexes.

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [May 11, 2019, 8:35pm UTC](https://discuss.elastic.co/t/why-my-bulk-request-not-using-all-cpus-of-others-node/180285/27 "2019-05-11T20:35:04Z")

</div>

Please could you share the full outputs of the following commands from your cluster, all taken at about the same time? I know we've seen some of these before, but maybe not all at the same time so they won't match up.

```auto
GET /_cat/shards

GET /_cat/thread_pool

GET /_tasks?detailed

```

---

<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 8, 2019, 8:35pm UTC](https://discuss.elastic.co/t/why-my-bulk-request-not-using-all-cpus-of-others-node/180285/28 "2019-06-08T20:35:09Z")

</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/why-my-bulk-request-not-using-all-cpus-of-others-node/180285.md?page=1)
