From: Marc Heckmann Date: Thu, 3 Sep 2015 21:08:51 +0000 (-0400) Subject: Support setting the "mon pg warn max object skew" in ceph.conf X-Git-Tag: v1.0.0~115^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F401%2Fhead;p=ceph-ansible.git Support setting the "mon pg warn max object skew" in ceph.conf It should be used to disable health warnings about number of PGs being too low if some pools have very few objects bringing down the average number of objects per pool. This happens when running RadosGW. The default is 10 and since the warnings only occur with some use cases, the default here is 10 as well. Set to 20 or more to silence the warnings. --- diff --git a/group_vars/all.sample b/group_vars/all.sample index 941254700..1e0f9f11d 100644 --- a/group_vars/all.sample +++ b/group_vars/all.sample @@ -138,6 +138,7 @@ dummy: #mon_osd_report_timeout: 300 #mon_pg_warn_max_per_osd: 0 # disable complains about low pgs numbers per osd #mon_osd_allow_primary_affinity: "true" +#mon_pg_warn_max_object_skew: 10 # set to 20 or higher to disable complaints about number of PGs being too low if some pools have very few objects bringing down the average number of objects per pool. This happens when running RadosGW. Ceph default is 10 ## OSD options # diff --git a/roles/ceph-common/defaults/main.yml b/roles/ceph-common/defaults/main.yml index 769110cfe..04d453c5b 100644 --- a/roles/ceph-common/defaults/main.yml +++ b/roles/ceph-common/defaults/main.yml @@ -146,6 +146,7 @@ mon_osd_nearfull_ratio: .85 mon_osd_report_timeout: 300 mon_pg_warn_max_per_osd: 0 # disable complains about low pgs numbers per osd mon_osd_allow_primary_affinity: "true" +mon_pg_warn_max_object_skew: 10 # set to 20 or higher to disable complaints about number of PGs being too low if some pools have very few objects bringing down the average number of objects per pool. This happens when running RadosGW. Ceph default is 10 ## OSD options # diff --git a/roles/ceph-common/templates/ceph.conf.j2 b/roles/ceph-common/templates/ceph.conf.j2 index fc19de1a0..be8d1a40b 100644 --- a/roles/ceph-common/templates/ceph.conf.j2 +++ b/roles/ceph-common/templates/ceph.conf.j2 @@ -81,6 +81,7 @@ mon osd report timeout = {{ mon_osd_report_timeout }} mon pg warn max per osd = {{ mon_pg_warn_max_per_osd }} mon osd allow primary affinity = {{ mon_osd_allow_primary_affinity }} + mon pg warn max object skew = {{ mon_pg_warn_max_object_skew }} {% if enable_debug_mon %} debug mon = {{ debug_mon_level }}