]> 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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 6 Mar 2020 15:10:03 +0000 (16:10 +0100)
commit98783a17b32d5f746c3d1ac04986242eb01ae318
tree703555e309783b7ecd1a7768404ebe63fa0b33fb
parentae06d684b8ae5e21f6c7969ba3fa3b18e0ee5032
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>
(cherry picked from commit 47adc2bb08b18845c34d90bd0dafb43298e6bee5)
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]