Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.

Commit a3ed520

Browse files
authored
feat(elasticsearch): add support for "reload_connections" option
This can help prevent "cannot get new connection from pool" issues with AWS ES See this thread for more info: https://discuss.elastic.co/t/elasitcsearch-ruby-raises-cannot-get-new-connection-from-pool-error/36252/11
1 parent 536b5d3 commit a3ed520

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rootfs/opt/fluentd/sbin/stores/elastic_search

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ cat << EOF >> $FLUENTD_CONF
4444
$([ -n "$ELASTICSEARCH_INCLUDE_TAG_KEY" ] && echo include_tag_key ${ELASTICSEARCH_INCLUDE_TAG_KEY})
4545
$([ -n "$ELASTICSEARCH_TARGET_INDEX_KEY" ] && echo target_index_key ${ELASTICSEARCH_TARGET_INDEX_KEY})
4646
$([ -n "$ELASTICSEARCH_TARGET_TYPE_KEY" ] && echo target_type_key ${ELASTICSEARCH_TARGET_TYPE_KEY})
47+
$([ -n "$ELASTICSEARCH_RELOAD_CONNECTIONS" ] && echo reload_connections ${ELASTICSEARCH_RELOAD_CONNECTIONS})
4748
logstash_format ${ELASTICSEARCH_LOGSTASH_FORMAT}
4849
buffer_type ${FLUENTD_BUFFER_TYPE}
4950
$([ "${FLUENTD_BUFFER_TYPE}" == "file" ] && echo buffer_path ${FLUENTD_BUFFER_PATH})

0 commit comments

Comments
 (0)