Actions
Bug #73418
closed
KS
EZ
[PG_AUTOSCALER] mgr: autoscaler doesn't distribute the PGs evenly when target size ratio is set
Bug #73418:
[PG_AUTOSCALER] mgr: autoscaler doesn't distribute the PGs evenly when target size ratio is set
Due date:
% Done:
0%
Source:
Backport:
tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v21.0.0-1763-gb95bdca832
Released In:
v21.2.0~363
Upkeep Timestamp:
2026-10-24T01:49:53+00:00
Description
# ceph df --- RAW STORAGE --- CLASS SIZE AVAIL USED RAW USED %RAW USED hdd 156 GiB 155 GiB 787 MiB 787 MiB 0.49 TOTAL 156 GiB 155 GiB 787 MiB 787 MiB 0.49 --- POOLS --- POOL ID PGS STORED OBJECTS USED %USED MAX AVAIL .mgr 1 1 598 KiB 2 1.8 MiB 0 49 GiB data1 2 32 0 B 0 0 B 0 49 GiB data2 3 32 0 B 0 0 B 0 49 GiB data3 4 32 0 B 0 0 B 0 49 GiB meta3 5 32 3.6 KiB 22 96 KiB 0 49 GiB # ceph osd pool autoscale-status POOL SIZE TARGET SIZE RATE RAW CAPACITY RATIO TARGET RATIO EFFECTIVE RATIO BIAS PG_NUM NEW PG_NUM AUTOSCALE BULK .mgr 602.6k 3.0 155.9G 0.0000 1.0 1 on False data1 0 3.0 155.9G 0.0000 1.0 32 on False data2 0 3.0 155.9G 0.0000 1.0 32 on False data3 0 3.0 155.9G 0.0000 1.0 32 on False meta3 32768 3.0 155.9G 0.0000 4.0 32 on False # ceph config dump | en1 WHO MASK LEVEL OPTION VALUE global advanced cluster_network 192.168.1.0/27 global advanced mon_max_pg_per_osd 400 global advanced mon_target_pg_per_osd 300 global advanced public_network 10.74.208.0/21 mon advanced auth_allow_insecure_global_id_reclaim false mgr advanced mgr/cephadm/migration_current 7 mgr advanced mgr/dashboard/ALERTMANAGER_API_HOST http://mgmt-0.icemanny01.lab.psi.pnq2.redhat.com:9093 mgr advanced mgr/dashboard/GRAFANA_API_SSL_VERIFY false mgr advanced mgr/dashboard/GRAFANA_API_URL https://mgmt-0.icemanny01.lab.psi.pnq2.redhat.com:3000 mgr advanced mgr/dashboard/PMETHEUS_API_HOST http://mgmt-0.icemanny01.lab.psi.pnq2.redhat.com:9095 mgr advanced mgr/dashboard/ssl_server_port 8443 mgr advanced mgr/orchestrator/orchestrator cephadm osd basic osd_memory_target 2147483648 osd advanced osd_memory_target_autotune true mds.mdsfsname basic mds_join_fs mdsfsname # ceph osd pool set data1 target_size_ratio 0.34; ceph osd pool set data2 target_size_ratio 0.34; ceph osd pool set data3 target_size_ratio 0.34 set pool 2 target_size_ratio to 0.34 set pool 3 target_size_ratio to 0.34 set pool 4 target_size_ratio to 0.34 # ceph osd pool autoscale-status | en1 POOL SIZE TARGET SIZE RATE RAW CAPACITY RATIO TARGET RATIO EFFECTIVE RATIO BIAS PG_NUM NEW PG_NUM AUTOSCALE BULK .mgr 602.6k 3.0 155.9G 0.0000 1.0 1 on False data1 0 3.0 155.9G 0.3333 0.3400 0.3333 1.0 512 on False data2 0 3.0 155.9G 0.3333 0.3400 0.3333 1.0 256 on False data3 0 3.0 155.9G 0.3333 0.3400 0.3333 1.0 128 on False meta3 32768 3.0 155.9G 0.0000 4.0 32 on False # ceph df --- RAW STORAGE --- CLASS SIZE AVAIL USED RAW USED %RAW USED hdd 156 GiB 32 GiB 124 GiB 124 GiB 79.21 TOTAL 156 GiB 32 GiB 124 GiB 124 GiB 79.21 --- POOLS --- POOL ID PGS STORED OBJECTS USED %USED MAX AVAIL .mgr 1 1 598 KiB 2 1.8 MiB 0.02 2.6 GiB data1 2 512 0 B 0 0 B 0 2.6 GiB data2 3 256 0 B 0 0 B 0 2.6 GiB data3 4 512 41 GiB 10.42k 122 GiB 93.90 2.6 GiB meta3 5 32 12 MiB 24 35 MiB 0.43 2.6 GiB # ceph osd pool autoscale-status | en1 POOL SIZE TARGET SIZE RATE RAW CAPACITY RATIO TARGET RATIO EFFECTIVE RATIO BIAS PG_NUM NEW PG_NUM AUTOSCALE BULK .mgr 602.6k 3.0 155.9G 0.0000 1.0 1 on False data1 0 3.0 155.9G 0.3333 0.3400 0.3333 1.0 512 on False data2 0 3.0 155.9G 0.3333 0.3400 0.3333 1.0 256 on False data3 41600M 3.0 155.9G 0.7815 0.3400 0.3333 1.0 512 on False meta3 11991k 3.0 155.9G 0.0002 4.0 32 on False # expr 12 \* 300 \/ 3 1200
As we can see from the output that although the TARGET RATIO is for pool data1 2 and 3, the PG_NUM differs. It is expected to distribute evenly.
KS Updated by Kamoltat (Junior) Sirivadhna about 1 year ago
- Description updated (diff)
KS Updated by Kamoltat (Junior) Sirivadhna 9 months ago
- Status changed from New to In Progress
- Assignee changed from Kamoltat (Junior) Sirivadhna to Eric Zhang
- Pull request ID set to 67551
UB Updated by Upkeep Bot 6 months ago
- Status changed from In Progress to Resolved
- Merge Commit set to b95bdca832b369046ae31fa15231125ead752d32
- Fixed In set to v21.0.0-1763-gb95bdca832
- Upkeep Timestamp set to 2026-05-26T22:06:18+00:00
EZ Updated by Eric Zhang 4 months ago
- Status changed from Resolved to Pending Backport
- Backport set to tentacle
UB Updated by Upkeep Bot 4 months ago
- Copied to Backport #78893: tentacle: [PG_AUTOSCALER] mgr: autoscaler doesn't distribute the PGs evenly when target size ratio is set added
UB Updated by Upkeep Bot 4 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Resolved
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-05-26T22:06:18+00:00 to 2026-08-27T18:32:50+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~363
- Upkeep Timestamp changed from 2026-08-27T18:32:50+00:00 to 2026-10-24T01:49:53+00:00
Actions