Skip to content

Commit

Permalink
cephadm-adopt: enable osd memory autotune for HCI
Browse files Browse the repository at this point in the history
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 a305296)
  • Loading branch information
dsavineau authored and guits committed Jul 21, 2021
1 parent f6cd8b9 commit 3ec8e90
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions infrastructure-playbooks/cephadm-adopt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ec8e90

Please sign in to comment.