From 8e3cc9ae1eb06b7c39aa964ced9c66f84e72abb9 Mon Sep 17 00:00:00 2001 From: SamYaple Date: Sun, 13 Mar 2016 16:38:14 +0000 Subject: [PATCH] Compact ceph-mon files Long running clusters will see there monitor files grow to large sizes TrivialFix Change-Id: Id7961514895cc0a797e1dd30bf29a18d7137ea42 --- ansible/roles/ceph/templates/ceph.conf.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/roles/ceph/templates/ceph.conf.j2 b/ansible/roles/ceph/templates/ceph.conf.j2 index 83a48c550a..5d9fdaabc2 100644 --- a/ansible/roles/ceph/templates/ceph.conf.j2 +++ b/ansible/roles/ceph/templates/ceph.conf.j2 @@ -10,6 +10,11 @@ auth cluster required = cephx auth service required = cephx auth client required = cephx +[mon] +# NOTE(SamYaple): The monitor files have been known to grow very large. The +# only fix for that is to compact the files. +mon compact on start = true + {% if service_name is defined and service_name == 'ceph-rgw' %} [client.radosgw.gateway] host = {{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}