{
  "slug": "ceph-up-set",
  "term": "Up set (Ceph)",
  "aliases": [
    "Ceph up set"
  ],
  "definition": "In Ceph, the up set is the ordered OSD list assigned to a placement group by CRUSH for a particular map epoch.",
  "note": "It describes placement, not completed data transfer; an explicit PG temp override can make the acting set differ. [ceph-peering]\n\nThe 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. [ceph-peering] 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. [osdmap]\n\nOrder 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. [crush] [osdmap] 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. [crush]",
  "related": [
    "placement-group",
    "ceph-acting-set"
  ],
  "citations": [
    {
      "id": "ceph-peering",
      "title": "Ceph Squid developer documentation: Peering, concepts",
      "url": "https://docs.ceph.com/en/squid/dev/peering/",
      "accessed": "2026-10-13"
    },
    {
      "id": "hesela-availability",
      "title": "Storage availability and correlated failures: placement boundaries",
      "url": "https://hesela.com/analyses/storage-availability-correlated-failures/",
      "accessed": "2026-10-13"
    },
    {
      "id": "osdmap",
      "title": "Ceph Squid branch src/osd/OSDMap.cc: _apply_upmap, _raw_to_up_osds, _get_temp_osds and _pg_to_up_acting_osds.",
      "url": "https://github.com/ceph/ceph/blob/squid/src/osd/OSDMap.cc",
      "accessed": "2026-10-16"
    },
    {
      "id": "crush",
      "title": "Weil, Brandt, Miller and Maltzahn. CRUSH: Controlled, Scalable, Decentralized Placement of Replicated Data. ACM/IEEE SC 2006, sections 3.2-3.3.",
      "url": "https://ceph.com/assets/pdfs/weil-crush-sc06.pdf",
      "accessed": "2026-10-16"
    }
  ],
  "status": "shipping",
  "advantages": [
    {
      "text": "Gives a deterministic, ordered target list per placement group and epoch, which any client or OSD holding the map can compute.",
      "citationIds": [
        "ceph-peering",
        "crush"
      ]
    }
  ],
  "limitations": [
    {
      "text": "A separate primary override can make the acting primary differ from the first OSD of the up set.",
      "citationIds": [
        "osdmap"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-22",
  "provenance": [
    "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."
  ]
}
