]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add mon_pg_warn_max_per_osd, osd_pool_default_size and osd_pool_default_min_size...
authorJirayut Nimsaeng <wingth@gmail.com>
Thu, 8 Dec 2016 12:25:15 +0000 (19:25 +0700)
committerJirayut Nimsaeng <wingth@gmail.com>
Thu, 8 Dec 2016 12:25:15 +0000 (19:25 +0700)
roles/ceph-common/defaults/main.yml
roles/ceph-common/templates/ceph.conf.j2

index 1426dc0e3ebaf473efc7589c212f9595fede1f49..104e5f76f4c59b24cf982df2a9f261df427d11cc 100644 (file)
@@ -250,6 +250,7 @@ monitor_interface: interface
 monitor_address: 0.0.0.0
 mon_use_fqdn: false # if set to true, the MON name used will be the fqdn in the ceph.conf
 monitor_address_block: false
+mon_pg_warn_max_per_osd: 300
 
 ## OSD options
 #
@@ -260,6 +261,8 @@ osd_mkfs_type: xfs
 osd_mkfs_options_xfs: -f -i size=2048
 osd_mount_options_xfs: noatime,largeio,inode64,swalloc
 osd_objectstore: filestore
+osd_pool_default_size: 3
+osd_pool_default_min_size: 2
 
 # xattrs. by default, 'filestore xattr use omap' is set to 'true' if
 # 'osd_mkfs_type' is set to 'ext4'; otherwise it isn't set. This can
index 568eab00efbb1af15eecea3819bcab3efcd8e069..15776e56bef0bc85c3f23b7cb27c0f5bce08047a 100644 (file)
@@ -12,9 +12,12 @@ auth supported = none
 fsid = {{ fsid }}
 {% endif %}
 max open files = {{ max_open_files }}
-{% if common_single_host_mode is defined %}
+{% if common_single_host_mode is defined and common_single_host_mode %}
 osd crush chooseleaf type = 0
 {% endif %}
+mon pg warn max per osd = {{ mon_pg_warn_max_per_osd }}
+osd pool default size = {{ osd_pool_default_size }}
+osd pool default min size = {{ osd_pool_default_min_size }}
 {# NOTE (leseb): the blank lines in-between are needed otherwise we won't get any line break #}
 {% if groups[mon_group_name] is defined %}
 mon initial members = {% for host in groups[mon_group_name] %}