From 498dab2437d2466bdc5975f9824731e3291ee6d6 Mon Sep 17 00:00:00 2001 From: Bertrand Lallau Date: Thu, 7 Sep 2017 22:19:39 +0200 Subject: [PATCH] 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 --- ansible/roles/common/templates/conf/input/00-global.conf.j2 | 1 + ansible/roles/common/templates/conf/input/02-mariadb.conf.j2 | 1 + ansible/roles/common/templates/conf/input/03-rabbitmq.conf.j2 | 1 + .../roles/common/templates/conf/input/04-openstack-wsgi.conf.j2 | 1 + ansible/roles/common/templates/conf/input/05-libvirt.conf.j2 | 1 + 5 files changed, 5 insertions(+) diff --git a/ansible/roles/common/templates/conf/input/00-global.conf.j2 b/ansible/roles/common/templates/conf/input/00-global.conf.j2 index 013785250a..5ddcc6e6fd 100644 --- a/ansible/roles/common/templates/conf/input/00-global.conf.j2 +++ b/ansible/roles/common/templates/conf/input/00-global.conf.j2 @@ -51,4 +51,5 @@ time_key Timestamp time_format %F %T.%L ignore_repeated_permission_error true + enable_watch_timer false diff --git a/ansible/roles/common/templates/conf/input/02-mariadb.conf.j2 b/ansible/roles/common/templates/conf/input/02-mariadb.conf.j2 index b435cb1a48..aed9c1b05c 100644 --- a/ansible/roles/common/templates/conf/input/02-mariadb.conf.j2 +++ b/ansible/roles/common/templates/conf/input/02-mariadb.conf.j2 @@ -8,4 +8,5 @@ format_firstline /^\d{6}/ format1 /^(?