]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
Set WHISPER_AUTOFLUSH to True 47/head
authorZack Cerza <zack@redhat.com>
Wed, 28 Jun 2017 22:33:56 +0000 (16:33 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 28 Jun 2017 22:33:56 +0000 (16:33 -0600)
Related to https://github.com/ceph/cephmetrics/issues/45

Signed-off-by: Zack Cerza <zack@redhat.com>
ansible/roles/ceph-grafana/tasks/configure_carbon.yml

index e51a3d6f2efb610a13652668270fff885a587853..f5a7b23d6ed74222ba36e030a9c5f210aa53b203 100644 (file)
@@ -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