Skip to content
Snippets Groups Projects
Commit ffb4767c authored by Stig Telfer's avatar Stig Telfer Committed by Michal Nasiadka
Browse files

Increase the Fluentd request timeout for ES

Fluentd has a default timeout of 5s for flushing data to ElasticSearch.
If there is a significant backlog of unsent log messages, this timeout
can be exceeded, resulting in Fluentd failing to make further progress.

Raise the default timeout to 60s.

This patch adopts the configuration parameters previously proposed by
Krzysztof Klimonda.

Closes-Bug: #1983031
Closes-Bug: #1896611
Change-Id: I1aaab654a5a0752fccef2cfb8cc0bde4a0ee2562
parent b0dc2423
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ fluentd_elasticsearch_password: ""
fluentd_elasticsearch_ssl_version: "TLSv1_2"
fluentd_elasticsearch_ssl_verify: "true"
fluentd_elasticsearch_cacert: "{{ openstack_cacert }}"
fluentd_elasticsearch_request_timeout: "60s"
####################
# Docker
......
......@@ -37,6 +37,7 @@
logstash_format true
logstash_prefix {{ kibana_log_prefix }}
reconnect_on_error true
request_timeout {{ fluentd_elasticsearch_request_timeout }}
suppress_type_name true
<buffer>
@type file
......
......@@ -22,6 +22,7 @@
logstash_format true
logstash_prefix {{ kibana_log_prefix }}
reconnect_on_error true
request_timeout {{ fluentd_elasticsearch_request_timeout }}
suppress_type_name true
<buffer>
@type file
......
---
fixes:
- |
Under circumstances of extended disruption to the Fluentd-ElasticSearch
central logging pipeline, it is possible to generate a sufficient buffer
of unsent log data that takes longer than the default Fluentd request
timeout (default 5 seconds) to transfer the buffer. The default request
timeout value is raised to ``60s``, and made configurable using new
parameter ``fluentd_elasticsearch_request_timeout``. `LP#1983031
<https://bugs.launchpad.net/kolla-ansible/+bug/1983031>`__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment