Set a chunk size for Fluentd bulk log upload to Monasca

In Fluentd v0.12, both the in memory and file buffer chunk size default
to 8MB. In v1.0 the file buffer defaults to 256MB. This can exceed the
Monasca Log or Unified API maximum chunk size which is set to 10MB.
This can result in logs being rejected and filling the local buffer
on disk.

Change-Id: I9c495773db726a3c5cd94b819dff4141737a1d6e
Closes-Bug: #1885885
Co-Authored-By: Sebastian Luna Valero <sebastian.luna.valero@gmail.com>
This commit is contained in:
Stig Telfer 2020-07-01 16:42:13 +02:00 committed by Doug Szumski
parent 852c7a32c3
commit 2c919bc61c
3 changed files with 20 additions and 0 deletions

View File

@ -52,6 +52,9 @@
buffer_path /var/lib/fluentd/data/monasca.buffer/{{ syslog_swift_facility }}.*
max_retry_wait 1800s
disable_retry_limit true
<buffer>
chunk_limit_size 8m
</buffer>
</store>
{% endif %}
</match>
@ -112,6 +115,9 @@
buffer_path /var/lib/fluentd/data/monasca.buffer/{{ syslog_haproxy_facility }}.*
max_retry_wait 1800s
disable_retry_limit true
<buffer>
chunk_limit_size 8m
</buffer>
</store>
{% endif %}
</match>
@ -169,6 +175,9 @@
buffer_path /var/lib/fluentd/data/monasca.buffer/{{ syslog_glance_tls_proxy_facility }}.*
max_retry_wait 1800s
disable_retry_limit true
<buffer>
chunk_limit_size 8m
</buffer>
</store>
{% endif %}
</match>

View File

@ -14,5 +14,8 @@
buffer_path /var/lib/fluentd/data/monasca.buffer/openstack.*
max_retry_wait 1800s
disable_retry_limit true
<buffer>
chunk_limit_size 8m
</buffer>
</store>
</match>

View File

@ -0,0 +1,8 @@
---
fixes:
- |
Fixes `LP#1885885
<https://bugs.launchpad.net/kolla-ansible/+bug/1885885>`__ where the
default chunk size in the Monasca Fluentd output plugin increased from
8MB to 256MB for file buffering which exceeded the limit allowed by
the Monasca Log / Unified API.