Skip to content

Commit

Permalink
Merge pull request #47925 from rzarzynski/wip-56648-quincy
Browse files Browse the repository at this point in the history
quincy: pybind/mgr/autoscaler: Donot show NEW PG_NUM value if autoscaler is not on

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Prashant D <pdhange@redhat.com>
  • Loading branch information
yuriw committed Dec 5, 2022
2 parents b44bd19 + e40b5dc commit db5da35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pybind/mgr/pg_autoscaler/module.py
Expand Up @@ -605,7 +605,8 @@ def _get_pool_pg_targets(
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
Expand Down

0 comments on commit db5da35

Please sign in to comment.