# Elasitcsearch-ruby raises "Cannot get new connection from pool" error

**URL:** <https://discuss.elastic.co/t/elasitcsearch-ruby-raises-cannot-get-new-connection-from-pool-error/36252>\
**Category:** Elasticsearch\
**Created:** [December 3, 2015, 7:49am UTC](https://discuss.elastic.co/t/elasitcsearch-ruby-raises-cannot-get-new-connection-from-pool-error/36252 "2015-12-03T07:49:12Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![PabloZed](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@PabloZed](https://discuss.elastic.co/u/PabloZed)\
**Post date:** [January 11, 2016, 1:30pm UTC](https://discuss.elastic.co/t/elasitcsearch-ruby-raises-cannot-get-new-connection-from-pool-error/36252/11 "2016-01-11T13:30:31Z")

</div>

Yes, you are right Robert!. Thank you so much.

With fluent-plugin-elasticsearch 1.2.0 plus reload\_connections set to false and AWS elasticsearch service everything works perfect!.

My conf looks like this

 type copy type elasticsearch host {{ config['es']['nginx']['endpoint'] }} port {{ config['es']['nginx']['port'] }} include\_tag\_key true tag\_key @log\_name logstash\_format true \*\*reload\_connections false\*\* flush\_interval 10s 

....

Great stuff!

---

_[View the full topic](https://discuss.elastic.co/t/elasitcsearch-ruby-raises-cannot-get-new-connection-from-pool-error/36252)._
