]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/pg_autoscaler/module.py
import ceph quincy 17.2.6
[ceph.git] / ceph / src / pybind / mgr / pg_autoscaler / module.py
index 57d27655114483a8d7abf9056415cac4315a63b9..d4758c75ab4462449134a5844d7afb71210960bb 100644 (file)
@@ -605,7 +605,8 @@ class PgAutoscaler(MgrModule):
             if (final_pg_target > p['pg_num_target'] * threshold or
                     final_pg_target < p['pg_num_target'] / threshold) and \
                     final_ratio >= 0.0 and \
-                    final_ratio <= 1.0:
+                    final_ratio <= 1.0 and \
+                    p['pg_autoscale_mode'] == 'on':
                 adjust = True
 
             assert pool_pg_target is not None