]> 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>
Mon, 12 Jul 2021 16:17:37 +0000 (18:17 +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>
infrastructure-playbooks/cephadm-adopt.yml

index e21cd8d9a518e481d9d9dbc9c11195ebd8a7a9c7..7bf185c96e9be30dc7d561c79db2fa03b2c33fc1 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