Files
kolla-ansible/ansible/roles/common/templates/conf/input/04-openstack-wsgi.conf.j2
Bertrand Lallau 498dab2437 Fluentd: reduce CPU and I/O consumption
Disable the additional watch timer (enable_watch_timer).
Setting this parameter to false will significantly reduce CPU and I/O
consumption when tailing a large number of files on systems with inotify
support.

Change-Id: Ib432e6cdece01dbb94b3d2f3d7fbdd04b81d25fa
2017-09-18 09:11:47 +00:00

11 lines
379 B
Django/Jinja

# Note (blallau): to manage Apache and WSGI log files
{% set fluentd_dir = 'td-agent' if kolla_base_distro in ['ubuntu', 'debian'] else 'fluentd' %}
<source>
@type tail
path /var/log/kolla/*/*-access.log,/var/log/kolla/*/*-error.log
pos_file /var/run/{{ fluentd_dir }}/kolla-openstack-wsgi.pos
tag kolla.*
format /^(?<message>.*)$/
enable_watch_timer false
</source>