From f7ed4b4652eaffad8c1ee83e21b1d2412252ee32 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 28 Jun 2017 16:33:56 -0600 Subject: [PATCH] Set WHISPER_AUTOFLUSH to True Related to https://github.com/ceph/cephmetrics/issues/45 Signed-off-by: Zack Cerza --- ansible/roles/ceph-grafana/tasks/configure_carbon.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ansible/roles/ceph-grafana/tasks/configure_carbon.yml b/ansible/roles/ceph-grafana/tasks/configure_carbon.yml index e51a3d6..f5a7b23 100644 --- a/ansible/roles/ceph-grafana/tasks/configure_carbon.yml +++ b/ansible/roles/ceph-grafana/tasks/configure_carbon.yml @@ -1,4 +1,13 @@ --- +- name: Set WHISPER_AUTOFLUSH to True + lineinfile: + dest: /etc/carbon/carbon.conf + regexp: "^WHISPER_AUTOFLUSH = .*" + insertafter: "^#.*buffering writes from the kernel.*" + line: "WHISPER_AUTOFLUSH = True" + notify: + - Restart carbon-cache + - name: Set whisper_retention set_fact: # Changing collectd_interval is not supported at this time -- 2.47.3