Hi folks,
Original discussion is here: Elasticsearch::Transport Cannot get new connection from pool
Recently, some users reported fluent-plugin-elasticsearch failed to import logs to Elasticsearch.
I checked their logs and the cause is elasticsearch-ruby raises "Cannot get new connection from pool" when perform import requests.
This error seems to happen at this point: https://github.com/elastic/elasticsearch-ruby/blob/7ba1fbdc2285a51fe6447b9241dfc871579dc118/elasticsearch-transport/lib/elasticsearch/transport/transport/base.rb#L193
And here is the fluent-plugin-elasticsearch code: https://github.com/uken/fluent-plugin-elasticsearch/blob/e44f323c99f3a5aca29b569023b846c1111f87da/lib/fluent/plugin/out_elasticsearch.rb
I want to know this problem is elasticsearch-ruby or fluent-plugin-elasticsearch.
If former, I want to know when this error happens and how to recover in the code.
If latter, where is the wrong and how to fix?
Currently, restarting fluentd is needed...
Thanks,