Autoscaler
Cheat sheet · https://pcornel.dk/topic.php?topic=4055
Answer
The autoscaler reasons about each pool’s share of storage and replication/EC overhead. Changes in PG count can trigger splitting/merging and data movement, so recommendations should be evaluated against pool purpose and operational timing.
Remember
- Autoscaler ≠ CRUSH balancer.
- Autoscale on ≠ no PG movement.
- Recommended PG count ≠ application performance guarantee.
- PG count ≠ object count.
First checks
ceph osd pool autoscale-status— targetsceph osd pool set <pool> pg_autoscale_mode on— enableceph osd pool set <pool> target_size_ratio 0.3— hint expected size
Verify in this order
pool usage/targets → recommended pg_num → adjustment
Where it usually breaks
First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.
Ceph → Autoscaler Ceph map
| Ceph boundary | What to verify | Proof limit |
|---|---|---|
| Control / placement | MON/map/auth, pool, PG and CRUSH context for the exact workload | Cluster visibility or one healthy daemon does not prove the data path |
| Data / redundancy | Acting OSD set, device/network state, capacity and replica/EC availability | Up/in or active state alone does not prove clean redundancy or integrity |
| Failure boundary | An autoscaler recommendation proves its current sizing model result, not that the workload or maintenance window can tolerate the resulting movement. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: autoscale state is intentional, recommendations are explainable, PG counts are stable/appropriate and changes converge without health issues. | Close only after original client operation plus redundancy/read-back verification |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4055