ceph-peering · shipping · also Ceph PG peering

Peering (Ceph)

Ceph peering brings the OSDs that store a placement group into agreement about the state of its objects and the metadata associated with them.

Related Observatory article: Read on hesela.com

Peering is driven by the primary, the first member of the acting set. It uses recent OSD maps to list the past intervals since the last epoch started, and it must reach at least one OSD from each of those acting sets before peering can succeed. It then gathers PG info and any missing log entries so that its PG log includes the newest write. [1] [4]

This works because no write is acknowledged to a client until every member of the acting set has persisted it. Entries that only some OSDs remember after a failure were never acknowledged, so they are treated as divergent history and discarded. [1]

Agreement does not mean all copies are current. Missing objects are copied later by recovery, in the background, while the primary already accepts writes. A typical replicated pool keeps 3 replicas (size = 3). A PG with fewer copies than the pool's min_size stays peered and cannot serve client I/O, although recovery may continue. [1] [5] [2]

Relations

related
Placement group (Ceph), Acting set (Ceph)

Advantages

  • After a node restart or other short outage, recent PG logs are enough to resynchronise replicas without listing the full PG contents. [4]

Limitations

  • Changes to a PG can be made only after successful peering, and every PG whose OSD list changes in a map update must peer again. [1, 4]

Citations

  1. Ceph Squid developer documentation: Peering, concepts (accessed 2026-10-22)
  2. Ceph Squid documentation: Placement Group States (accessed 2026-10-22)
  3. Weil, Leung, Brandt and Maltzahn. RADOS: A Scalable, Reliable Storage Service for Petabyte-scale Storage Clusters. PDSW 2007, section 3.4.1 (accessed 2026-10-22)
  4. Ceph Squid documentation: Pools, size and min_size (accessed 2026-10-22)

Further reading

  1. Storage availability and correlated failures: placement boundaries (accessed 2026-10-13)
Sources & caveats
  • ceph-peering is the Ceph Squid developer page on peering, read in full: Concepts and Description of the Peering Process.
  • ceph-pg-states was read in its list of states; ceph-pools in its introduction and in the size and min_size entries.
  • rados is the PDSW 2007 paper by Weil, Leung, Brandt and Maltzahn (University of California, Santa Cruz), read in section 3.4.1, Peering.
  • The acknowledgement rule, past intervals and divergent entries come from ceph-peering. Notify messages and log-based resynchronisation come from rados.
  • 3 replicas is the pools page's example of a typical configuration, quoted as an example rather than as a default.

JSON: /data/terms/ceph-peering.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Peering (Ceph). Hesela. 2026-10-22. https://hesela.dev/terms/ceph-peering/