mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
Merge PR #32592 into master
* refs/pull/32592/head: mgr/pg_autoscaler: calculate pool_pg_target using pool size Reviewed-by: Sage Weil <sage@redhat.com> Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
276945f324
@ -303,7 +303,7 @@ class PgAutoscaler(MgrModule):
|
||||
final_ratio = max(capacity_ratio, target_ratio)
|
||||
|
||||
# So what proportion of pg allowance should we be using?
|
||||
pool_pg_target = (final_ratio * root_map[root_id].pg_target) / raw_used_rate * bias
|
||||
pool_pg_target = (final_ratio * root_map[root_id].pg_target) / p['size'] * bias
|
||||
|
||||
final_pg_target = max(p['options'].get('pg_num_min', PG_NUM_MIN),
|
||||
nearest_power_of_two(pool_pg_target))
|
||||
|
Loading…
Reference in New Issue
Block a user