]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cephadm-adopt: enable osd memory autotune for HCI
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 12 Jul 2021 12:58:42 +0000 (08:58 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 21 Jul 2021 14:22:10 +0000 (16:22 +0200)
This enables the osd_memory_target_autotune option on HCI environment.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1973149
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit a305296384c44e387965d9970ede001e1745141d)

infrastructure-playbooks/cephadm-adopt.yml

index db243843e650857cd90fcfc94d07f3fc17a5fc18..c62729c08baad083c66e3c0852e3e1d6c70f4296 100644 (file)
           changed_when: false
           delegate_to: '{{ groups[mon_group_name][0] }}'
 
+    - name: enable the osd memory autotune for hci environment
+      command: "{{ ceph_cmd }} config set osd osd_memory_target_autotune true"
+      changed_when: false
+      run_once: true
+      delegate_to: '{{ groups[mon_group_name][0] }}'
+      when: is_hci | bool
+
     - name: manage nodes with cephadm
       command: "{{ ceph_cmd }} orch host add {{ ansible_facts['hostname'] }} {{ ansible_facts['default_ipv4']['address'] }} {{ group_names | join(' ') }}"
       changed_when: false