Merge pull request #67 from leseb/improve-ceph-conf

Improve ceph.conf
pull/68/head
Leseb 2014-04-11 14:08:52 +02:00
commit 080e2011b4
2 changed files with 32 additions and 6 deletions

View File

@ -1,20 +1,26 @@
--- ---
# Variables here are applicable to all host groups NOT roles # Variables here are applicable to all host groups NOT roles
# Setup options ## Setup options
#
distro_release: "{{ facter_lsbdistcodename }}" distro_release: "{{ facter_lsbdistcodename }}"
apt_key: http://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc apt_key: http://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
ceph_release: emperor ceph_release: emperor
redhat_distro: el6 # supported distros are el6, rhel6, f18, f19, opensuse12.2, sles11 redhat_distro: el6 # supported distros are el6, rhel6, f18, f19, opensuse12.2, sles11
# Ceph options ## Ceph options
#
cephx: true cephx: true
fsid: # /!\ GENERATE ONE WITH 'uuidgen -r' /!\ fsid: # /!\ GENERATE ONE WITH 'uuidgen -r' /!\
# Monitors options ## Monitor options
#
monitor_interface: eth1 monitor_interface: eth1
mon_osd_down_out_interval: 600
mon_osd_mon_down_reporters: 7 # number of OSDs per host + 1
# MDS options ## MDS options
#
mds: true # disable mds configuration in ceph.conf mds: true # disable mds configuration in ceph.conf
# Rados Gateway options # Rados Gateway options
@ -23,7 +29,8 @@ redhat_distro_ceph_extra: centos6.4 # supported distros are centos6.3, centos6.4
radosgw_interface: eth1 # the public interface which the radosgw talks to the world with, this variable is used in the haproxy role, this does not need to be set if haproxy is not used. radosgw_interface: eth1 # the public interface which the radosgw talks to the world with, this variable is used in the haproxy role, this does not need to be set if haproxy is not used.
#radosgw_dns_name: your.subdomain.tld # subdomains used by radosgw. See http://ceph.com/docs/master/radosgw/config/#enabling-subdomain-s3-calls #radosgw_dns_name: your.subdomain.tld # subdomains used by radosgw. See http://ceph.com/docs/master/radosgw/config/#enabling-subdomain-s3-calls
# OSD options ## OSD options
#
journal_size: 100 journal_size: 100
pool_default_pg_num: 128 pool_default_pg_num: 128
pool_default_pgp_num: 128 pool_default_pgp_num: 128
@ -31,3 +38,12 @@ pool_default_size: 2
cluster_network: 192.168.0.0/24 cluster_network: 192.168.0.0/24
public_network: 192.168.0.0/24 public_network: 192.168.0.0/24
osd_mkfs_type: xfs osd_mkfs_type: xfs
osd_mon_heartbeat_interval: 30
# Performance tuning
filestore_merge_threshold: 40
filestore_split_multiple: 8
osd_op_threads: 8
# Recovery tuning
osd_recovery_max_active: 5
osd_max_backfills: 2
osd_recovery_op_priority: 2

View File

@ -29,6 +29,8 @@
{% endif %} {% endif %}
[mon] [mon]
mon osd down out interval = {{ mon_osd_down_out_interval }}
mon osd mon down reporters = {{ mon_osd_mon_down_reporters }}
{% for host in groups['mons'] %} {% for host in groups['mons'] %}
{% if hostvars[host]['ansible_hostname'] is defined %} {% if hostvars[host]['ansible_hostname'] is defined %}
[mon.{{ hostvars[host]['ansible_hostname'] }}] [mon.{{ hostvars[host]['ansible_hostname'] }}]
@ -51,7 +53,15 @@
{% if public_network is defined %} {% if public_network is defined %}
public_network = {{ public_network }} public_network = {{ public_network }}
{% endif %} {% endif %}
osd mon heartbeat interval = {{ osd_mon_heartbeat_interval }}
# Performance tuning
filestore merge threshold = {{ filestore_merge_threshold }}
filestore split multiple = {{ filestore_split_multiple }}
osd op threads = {{ osd_op_threads }}
# Recovery tuning
osd recovery max active = {{ osd_recovery_max_active }}
osd max backfills = {{ osd_max_backfills }}
osd recovery op priority = {{ osd_recovery_op_priority }}
{% if mds %} {% if mds %}
[mds] [mds]
{% for host in groups['mdss'] %} {% for host in groups['mdss'] %}