Skip to content

Commit 4d3e25c

Browse files
committed
cephadm_adopt: set autotune_memory_target_ratio
This adds a task that sets `autotune_memory_target_ratio` depending on the value of `is_hci`. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2028693 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 41d6259)
1 parent 11fa908 commit 4d3e25c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

infrastructure-playbooks/cephadm-adopt.yml

+8
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,14 @@
360360
delegate_to: '{{ groups[mon_group_name][0] }}'
361361
when: is_hci | bool
362362

363+
- name: set autotune_memory_target_ratio
364+
command: "{{ ceph_cmd }} config set mgr mgr/cephadm/autotune_memory_target_ratio {{ '0.2' if is_hci | bool else '0.7' }}"
365+
changed_when: false
366+
delegate_to: "{{ groups[mon_group_name][0] }}"
367+
run_once: true
368+
environment:
369+
CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}'
370+
363371
- name: manage nodes with cephadm - ipv4
364372
command: "{{ ceph_cmd }} orch host add {{ ansible_facts['nodename'] }} {{ ansible_facts['all_ipv4_addresses'] | ips_in_ranges(cephadm_mgmt_network.split(',')) | first }} {{ group_names | intersect(adopt_label_group_names) | join(' ') }}"
365373
changed_when: false

0 commit comments

Comments
 (0)