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:
parent
58b5acbf65
commit
5293b1294f
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Fluentd now buffers logs locally to file when the Monasca API is
|
||||
unreachable.
|
Loading…
Reference in New Issue
Block a user