Properly disable autoscaling PGs

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:30 -04:00
parent b267db8474
commit 6908f7070c
1 changed files with 11 additions and 2 deletions

View File

@ -387,8 +387,17 @@
- name: disable default pg autoscaler - name: disable default pg autoscaler
command: ceph config set global osd_pool_default_pg_autoscale_mode off command: ceph config set global osd_pool_default_pg_autoscale_mode off
- name: disable pg autoscaler - name: get pools
command: ceph osd pool set noautoscale shell: "ceph osd lspools | awk '{ $1=\"\"; print $0 }' | tr -d ' '"
register: pool_output
- name: set pools fact
set_fact:
ceph_pools: "{{ pool_output.stdout.split('\n') | list }}"
- name: disable pg autoscaler on each pool
command: "ceph osd pool set {{ item }} pg_autoscale_mode off"
loop: "{{ ceph_pools }}"
- name: set OSDs to require pacific - name: set OSDs to require pacific
command: ceph osd require-osd-release pacific command: ceph osd require-osd-release pacific