[CEPH] Disable ceph pg autoscaler on pools by reading from values
This is to disable unintentionally enabled pg autoscaler on pools by reading it from values. Change-Id: Ib919ae7786ec1d4cbe7a309d28fd6571aa6195de
This commit is contained in:
parent
754d8e93b4
commit
8adc6216bc
@ -184,6 +184,8 @@ function create_pool () {
|
||||
else
|
||||
if [[ -z "$(ceph osd versions | grep ceph\ version | grep -v nautilus)" ]] && [[ $"{ENABLE_AUTOSCALER}" == "true" ]] ; then
|
||||
ceph --cluster "${CLUSTER}" osd pool set "${POOL_NAME}" pg_autoscale_mode on
|
||||
else
|
||||
ceph --cluster "${CLUSTER}" osd pool set "${POOL_NAME}" pg_autoscale_mode off
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user