Disable Fluentd Monasca plugin retry limit

By default a retry limit of 17 exists. When the limit is reached buffered
logs are discarded. To avoid this, we disable the retry limit. The risk of
bringing down the host by filling the Fluent data docker volume is managed
by the maximum buffer size which is 2GB by default.

In summary, after this change, the net behaviour is that Fluentd should
buffer up to a maximum of 2GB of logs locally, and attept to post them to
the Monasca Log API at intervals not exceeding 30 minutes.

Closes-Bug: #1855702
Change-Id: I0d5a3dab29635c00411f4f51e5a0721726df2abd
This commit is contained in:
Doug Szumski 2019-06-20 08:22:00 +00:00
parent 5293b1294f
commit f19eb7de88
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,7 @@
buffer_type file
buffer_path /var/lib/fluentd/data/monasca.buffer/{{ syslog_swift_facility }}.*
max_retry_wait 1800s
disable_retry_limit true
</store>
{% endif %}
</match>
@ -94,6 +95,7 @@
buffer_type file
buffer_path /var/lib/fluentd/data/monasca.buffer/{{ syslog_haproxy_facility }}.*
max_retry_wait 1800s
disable_retry_limit true
</store>
{% endif %}
</match>

View File

@ -13,5 +13,6 @@
buffer_type file
buffer_path /var/lib/fluentd/data/monasca.buffer/openstack.*
max_retry_wait 1800s
disable_retry_limit true
</store>
</match>