Enable buffering to file for Monasca logs

This enables buffering to file, rather than memory for Monasca logs.
A dedicated docker volume is used for the file buffer. If a post
to the Monasca Log API fails, retries will be made using an exponential
backoff algorithm with a maximum retry interval of 30mins. The maximum
interval is set relatively low to try and reduce the risk of large
buffers accumulating, and therefore the risk of overloading the Monasca
Log API.

Closes-Bug: #1855700
Change-Id: Ib5286e9dbaf2bc92d2f4960b2131223ab5dbdbec
This commit is contained in:
Doug Szumski 2019-06-19 11:27:14 +00:00
parent 58b5acbf65
commit 5293b1294f
3 changed files with 14 additions and 0 deletions

View File

@ -40,6 +40,9 @@
domain_id default
project_name {{ monasca_control_plane_project }}
message_field_name Payload
buffer_type file
buffer_path /var/lib/fluentd/data/monasca.buffer/{{ syslog_swift_facility }}.*
max_retry_wait 1800s
</store>
{% endif %}
</match>
@ -88,6 +91,9 @@
domain_id default
project_name {{ monasca_control_plane_project }}
message_field_name Payload
buffer_type file
buffer_path /var/lib/fluentd/data/monasca.buffer/{{ syslog_haproxy_facility }}.*
max_retry_wait 1800s
</store>
{% endif %}
</match>

View File

@ -10,5 +10,8 @@
domain_id default
project_name {{ monasca_control_plane_project }}
message_field_name Payload
buffer_type file
buffer_path /var/lib/fluentd/data/monasca.buffer/openstack.*
max_retry_wait 1800s
</store>
</match>

View File

@ -0,0 +1,5 @@
---
features:
- |
Fluentd now buffers logs locally to file when the Monasca API is
unreachable.