Up set (Ceph)
In Ceph, the up set is the ordered OSD list assigned to a placement group by CRUSH for a particular map epoch.
It describes placement, not completed data transfer; an explicit PG temp override can make the acting set differ. [1]
The up set equals the acting set except when PG temp overrides the acting set in the OSD map, and an interval is a run of map epochs in which neither set changes for the placement group. [1] The up set is not raw CRUSH output: an explicit administrator mapping replaces it when present, down or missing OSDs are removed, and primary affinity is applied. [3]
Order carries meaning by pool type. For replication a failed device is skipped and later ones shift left, so the next holder becomes primary, but for erasure coding each position stores different data, so a failed slot is marked empty and the others keep their rank. [4] [3] A failed device stays in the hierarchy so that only its data moves, the minimum fraction w_failed / W, so one failure among 100 equally weighted devices remaps 1% of the data. [4]
Relations
Advantages
- Gives a deterministic, ordered target list per placement group and epoch, which any client or OSD holding the map can compute. [1, 4]
Limitations
- A separate primary override can make the acting primary differ from the first OSD of the up set. [3]
Citations
- Ceph Squid developer documentation: Peering, concepts
- Ceph Squid branch src/osd/OSDMap.cc: _apply_upmap, _raw_to_up_osds, _get_temp_osds and _pg_to_up_acting_osds.
- Weil, Brandt, Miller and Maltzahn. CRUSH: Controlled, Scalable, Decentralized Placement of Replicated Data. ACM/IEEE SC 2006, sections 3.2-3.3.
Further reading
Sources & caveats
- The documentation and code are the project's own and describe the Squid branch on the access date; behaviour may change.
- The CRUSH paper is by the system's original university authors and predates the explicit-mapping and primary-affinity steps, which are taken from the code only.
- The 1% figure is arithmetic on the paper's idealised bound w_failed / W and says nothing about repair time.
- No cited source measures how often the up and acting sets differ in practice.