# UNEXPECTED POOL ERROR - Logstash workers

**URL:** <https://discuss.elastic.co/t/unexpected-pool-error-logstash-workers/97038>\
**Category:** Elasticsearch\
**Created:** [August 14, 2017, 11:59pm UTC](https://discuss.elastic.co/t/unexpected-pool-error-logstash-workers/97038 "2017-08-14T23:59:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![test123](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@test123](https://discuss.elastic.co/u/test123)\
**Post date:** [August 14, 2017, 11:59pm UTC](https://discuss.elastic.co/t/unexpected-pool-error-logstash-workers/97038/1 "2017-08-14T23:59:24Z")

</div>

Hi Guys,

I have setup ELK pipeline with Elasticsearch output from logstash. Currently, I am getting ~6000 events per second. This is with default number of workers in logstash. However, when I increase number of workers in logstash to 40, I get following exception:

> UNEXPECTED POOL ERROR {:e=\>#\<LogStash::Outputs::Elasticsearch::HttpClient::Pool::NoConnectionAvailableError: No Available connections\>}

> [ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch, but no there are no living connections in the connection pool. Perhaps Elasticsearch is unreachable or down? {: error\_message=\>"No Available connections", :class=\>"LogStash::Outputs::Elasticsearch::HttpClient::Pool::NoConnectionAvailableError", :will\_retry\_in\_seconds=\>4}

This only happens when I specify number of workers in logstash. I tried replacing output in logstash from elasticsearch to "dots" codec and I was able to get ~12000 events per second. For some reason, with elasticsearch as output, it keeps throwing the exception I mentioned above. Any thoughts?

Thanks!

I am using ES: 5.5

---

<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:** [September 11, 2017, 11:59pm UTC](https://discuss.elastic.co/t/unexpected-pool-error-logstash-workers/97038/2 "2017-09-11T23:59:24Z")

</div>

Closed on September 11, 2017, 11:59pm UTC

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