Add tuning for Ceph OSDs

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:24 -04:00
parent 24764fe704
commit b4e36d146a
2 changed files with 18 additions and 2 deletions

View File

@ -72,6 +72,12 @@ pvc_asn: "65500"
pvc_routers: pvc_routers:
- "192.168.100.1" - "192.168.100.1"
# Ceph OSD tuning
# > Uncomment in low-memory situation (nodes with <32GB RAM).
# > These options are *only* applied at cluster bootstrap and cannot be changed later.
# OSD memory limit - 939524096 (~900MB) is the lowest possible value; default is 4GB.
#pvc_osd_memory_limit: 939524096
# Node list # Node list
# > Every node configured with this playbook must be specified in this list. # > Every node configured with this playbook must be specified in this list.
pvc_nodes: pvc_nodes:

View File

@ -68,9 +68,19 @@
- "osd journal size = 2" - "osd journal size = 2"
- "osd pool default size = 3" - "osd pool default size = 3"
- "osd pool default min size = 2" - "osd pool default min size = 2"
- "osd pool default pg num = 512" - "osd pool default pg num = 256"
- "osd pool default pgp num = 512" - "osd pool default pgp num = 256"
- "osd crush chooseleaf type = 1" - "osd crush chooseleaf type = 1"
- "bluestore cache autotune = true"
- name: add memory limit if requested
lineinfile:
dest: /tmp/ceph-bootstrap/ceph.conf
line: "{{ item }}"
state: present
with_items:
- "osd memory target = {{ pvc_osd_memory_limit }}"
when: pvc_osd_memory_limit is defined
- name: collect bootstrapped Ceph files into the role - name: collect bootstrapped Ceph files into the role
fetch: fetch: