From 3ec8e90b3464bde795d9c38399ee80ca1015d72a Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Mon, 12 Jul 2021 08:58:42 -0400 Subject: [PATCH] cephadm-adopt: enable osd memory autotune for HCI 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 (cherry picked from commit a305296384c44e387965d9970ede001e1745141d) --- infrastructure-playbooks/cephadm-adopt.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/infrastructure-playbooks/cephadm-adopt.yml b/infrastructure-playbooks/cephadm-adopt.yml index db243843e6..c62729c08b 100644 --- a/infrastructure-playbooks/cephadm-adopt.yml +++ b/infrastructure-playbooks/cephadm-adopt.yml @@ -283,6 +283,13 @@ 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