crush-placement · shipping · also Controlled Replication Under Scalable Hashing, CRUSH placement

CRUSH

CRUSH is a deterministic, pseudorandom placement algorithm that maps an identifier to storage targets using a weighted cluster hierarchy and placement rules.

Related Observatory article: Read on hesela.com

Clients derive targets from a map and rule without a per-object directory. A rule selects distinct items of the requested type. The 2006 design retries collisions, failed devices and overloaded targets; failed devices remain in the hierarchy so only their data moves. [1]

Rules can separate replicas or encoded shards across hosts, racks or shared power. CRUSH provides placement, not an erasure code, consensus or an availability guarantee. [2]

Straw2 is local to a single bucket. With other inputs fixed, winner changes involve the reweighted item, possibly a subtree. This is not a whole-hierarchy guarantee that each move touches the reweighted leaf. The original paper's section 3.3 describes the separate ancestor-weight effect; its straw algorithm predates straw2. [1] [2]

ceph osd crush reweight changes a CRUSH capacity weight; ceph osd reweight uses a 0-to-1 override without changing ancestor bucket weights. These interventions differ. [5]

In v19.2.0, straw2 can use position-dependent weights and substitute hash IDs. The returned item still comes from the bucket's item array; an alternate hash ID is not a replacement OSD destination. Keep these inputs fixed in weight-only comparisons. [4]

Relations

related
RUSH, Failure domain, Placement group (Ceph), Erasure coding, Mean time to data loss (MTTDL)

Advantages

  • For the same input, rule and map, clients compute the same targets; the paper reports mapping times in the tens of microseconds in its tests. [1]
  • The paper reports constant-time uniform-bucket selection and logarithmic-time tree-bucket selection; uniform-bucket changes reshuffle data. In its 1,000-device benchmark, marking half failed increased mapping time by 71%. [1]

Limitations

  • In the paper's capacity-addition model, the ideal moved fraction is added weight divided by final total weight; doubling capacity moves half the data. Hierarchy and bucket choices can add movement. Ceph also limits retries, with legacy choose_total_tries 19 and 50 suggested for typical clusters. [1, 2]
  • Placement across modeled domains reduces correlated-loss exposure, but the paper leaves the size of that gain unquantified without real failure data. [1]
  • Bucket-local movement minimization is not a cluster-wide migration bound; a placement result does not establish completed migration or repair. [1, 2]

Citations

  1. Weil, Brandt, Miller and Maltzahn, CRUSH: Controlled, Scalable, Decentralized Placement of Replicated Data, SC 2006, sections 3 to 4.3 (accessed 2026-11-07)
  2. Ceph Squid documentation: CRUSH Maps, hierarchy and placement rules (accessed 2026-11-07)
  3. Ceph v19.2.0 mapper.c: get_choose_arg_weights, get_choose_arg_ids and bucket_straw2_choose (accessed 2026-11-07)
  4. Ceph Squid Control Commands: CRUSH weights and OSD override reweight (accessed 2026-11-07)

Further reading

  1. Storage availability and correlated failures: placement boundaries (accessed 2026-10-13)
Sources & caveats
  • crush-paper re-read 2026-10-23, sections 3.2, 3.3, 4.2 and 4.3, for rule steps, the three retry causes, movement bounds, bucket costs and the 71% failed-device figure.
  • ceph-crush re-read 2026-10-23 for hierarchy factors, straw2 and the choose_total_tries tunable.
  • The mean-time-to-data-loss entry links here because the paper names its future need for real failure data before quantitative models can estimate the effect of placement on mean time to data loss.
  • A companion analysis on correlated failures is listed but not used in prose.
  • 2026-11-07: reconciled the hierarchy supplement with later production prose and relations; reviewed SC2006 section 3.3, Squid weight/override documentation and v19.2.0 choose arguments. No Ceph execution or new fleet measurement.

JSON: /data/terms/crush-placement.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. CRUSH. Hesela. 2026-11-07. https://hesela.dev/terms/crush-placement/