aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamYaple <sam@yaple.net>2016-03-13 16:38:14 +0000
committerSamYaple <sam@yaple.net>2016-03-13 16:38:14 +0000
commit8e3cc9ae1eb06b7c39aa964ced9c66f84e72abb9 (patch)
treee2c2b6da280b2b1ba5b56b2aa230f8023122c895
parente4829471651dd9677f2f73de4e2896902666fdd4 (diff)
downloadkolla-8e3cc9ae1eb06b7c39aa964ced9c66f84e72abb9.tar.gz
kolla-8e3cc9ae1eb06b7c39aa964ced9c66f84e72abb9.zip
Compact ceph-mon files
Long running clusters will see there monitor files grow to large sizes TrivialFix Change-Id: Id7961514895cc0a797e1dd30bf29a18d7137ea42
-rw-r--r--ansible/roles/ceph/templates/ceph.conf.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/ceph/templates/ceph.conf.j2 b/ansible/roles/ceph/templates/ceph.conf.j2
index 83a48c550..5d9fdaabc 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'] }}