Skip to content

Commit e3efdf6

Browse files
authored
Merge pull request #25 from frsyuki/master
Override default reload_connections to false
2 parents c70e548 + 3289962 commit e3efdf6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/fluent/plugin/out_aws-elasticsearch-service.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ class AwsElasticsearchServiceOutput < ElasticsearchOutput
2121
config_param :assume_role_session_name, :string, :default => "fluentd"
2222
end
2323

24+
# here overrides default value of reload_connections to false because
25+
# AWS Elasticsearch Service doesn't return addresses of nodes and Elasticsearch client
26+
# fails to reload connections properly. This ends up "temporarily failed to flush the buffer"
27+
# error repeating forever. See this discussion for details:
28+
# https://discuss.elastic.co/t/elasitcsearch-ruby-raises-cannot-get-new-connection-from-pool-error/36252
29+
config_set_default :reload_connections, false
2430

2531
#
2632
# @override

0 commit comments

Comments
 (0)