]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
osd: add pg autoscaler support
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 28 Feb 2020 15:03:15 +0000 (16:03 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 4 Mar 2020 14:29:01 +0000 (09:29 -0500)
commit47adc2bb08b18845c34d90bd0dafb43298e6bee5
treeea1cb223961b76048b0ada380358f35d35cdee6a
parentbf1f125d718c386264f19ce82cae5060ac166ce6
osd: add pg autoscaler support

This commit adds the pg autoscaler support.

The structure for pool definition has now two additional attributes
`pg_autoscale_mode` and `target_size_ratio`, eg:

```
test:
  name: "test"
  pg_num: "{{ osd_pool_default_pg_num }}"
  pgp_num: "{{ osd_pool_default_pg_num }}"
  rule_name: "replicated_rule"
  application: "rbd"
  type: 1
  erasure_profile: ""
  expected_num_objects: ""
  size: "{{ osd_pool_default_size }}"
  min_size: "{{ osd_pool_default_min_size }}"
  pg_autoscale_mode: False
  target_size_ratio": 0.1
```

when `pg_autoscale_mode` is `True` user has to set a decent value in
`target_size_ratio`.

Given that it's a new feature, it's still disabled by default.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1782253
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
group_vars/all.yml.sample
group_vars/clients.yml.sample
group_vars/rhcs.yml.sample
roles/ceph-client/defaults/main.yml
roles/ceph-client/tasks/create_users_keys.yml
roles/ceph-defaults/defaults/main.yml
roles/ceph-mds/tasks/create_mds_filesystems.yml
roles/ceph-osd/tasks/openstack_config.yml
roles/ceph-validate/tasks/check_pools.yml [new file with mode: 0644]