Pcornel
Storage · Ceph

Autoscaler

Cheat sheet · https://pcornel.dk/topic.php?topic=4055

Back to the Topic

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 — targets
  • ceph osd pool set <pool> pg_autoscale_mode on — enable
  • ceph 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 boundaryWhat to verifyProof limit
Control / placementMON/map/auth, pool, PG and CRUSH context for the exact workloadCluster visibility or one healthy daemon does not prove the data path
Data / redundancyActing OSD set, device/network state, capacity and replica/EC availabilityUp/in or active state alone does not prove clean redundancy or integrity
Failure boundaryAn 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?