Allow specifying pg_autoscale_mode when creating a new pool
pg_autoscaler is enabled by default in Octopus, but we can't disable the feature when creating a new pool.
This might lead to a situation that the created pool has different pg from the value we specify.
- Set the feature by pool. There is a window between this command and `osd create` command, pg_autoscaler might start its operation during this window:
ceph osd pool set <pool-name> pg_autoscale_mode off
- Turn off the feature globally, which might not be preferred either:
ceph config set global osd_pool_default_pg_autoscale_mode off
It would be nice if we can specify the mode during pool creation. This also helps Dashboard to have better control on new-created pools.
#6 Updated by Stephan Müller about 1 month ago
I really think this issue should be closed.
I tested with the autoscaler globally set to on. Tested the pool creation with the autoscaler setting to on and off and if set to off the autoscaler doesn't seem to change the pool after a while, like it does if left on "on".
I didn't test setting the autoscaler globally to "off" and use it in the pool form - ATM I'm not sure this would work. But if so, this would be an issue on it's own.