# How to check number of threads used for Elasticseach indexing ,searching,merging

**URL:** <https://discuss.elastic.co/t/how-to-check-number-of-threads-used-for-elasticseach-indexing-searching-merging/174247>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [March 28, 2019, 6:23am UTC](https://discuss.elastic.co/t/how-to-check-number-of-threads-used-for-elasticseach-indexing-searching-merging/174247 "2019-03-28T06:23:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suvarna](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@suvarna](https://discuss.elastic.co/u/suvarna)\
**Post date:** [March 28, 2019, 6:23am UTC](https://discuss.elastic.co/t/how-to-check-number-of-threads-used-for-elasticseach-indexing-searching-merging/174247/1 "2019-03-28T06:23:52Z")

</div>

Hi

I have started the Elasticsearch instance on 127.0.0.1:9200 .  
Started the rally with below command..

esrally --track=noaa --pipeline=benchmark-only --target-hosts=127.0.0.1:9200 --report-file=/LUCENE/rally\_reports/report.md --report-format=csv

how to check the number of threads used for indexing and searching at elasticsearch.

My system having 28 cores and 112 cpus.

Please let me know ,how to check and if we want to configure threads for indexing where we can change the properties

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [March 28, 2019, 6:38am UTC](https://discuss.elastic.co/t/how-to-check-number-of-threads-used-for-elasticseach-indexing-searching-merging/174247/2 "2019-03-28T06:38:55Z")

</div>

Hi,

this is not really specific to Rally but you can check thread pool statistics with Elasticsearch's node stats API. Elasticsearch uses various thread pools that can be configured but this should only be done after careful experimentation and in my experience you should start optimizing other parameters first (like the bulk size).

Daniel

---

<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:** [April 25, 2019, 6:38am UTC](https://discuss.elastic.co/t/how-to-check-number-of-threads-used-for-elasticseach-indexing-searching-merging/174247/3 "2019-04-25T06:38:56Z")

</div>

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