Add mon_pg_warn_max_per_osd, osd_pool_default_size and osd_pool_default_min_size variables

pull/1165/head
Jirayut Nimsaeng 2016-12-08 19:25:15 +07:00
parent a23007e7db
commit 8d6277bbc3
2 changed files with 7 additions and 1 deletions

View 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

View 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] %}