Skip to main content

Module peer_availability

Module peer_availability 

Source
Expand description

Guardians’ views of each other’s availability.

The public PEER_AVAILABILITY_ENDPOINT serves them. Each guardian reports when it last saw each peer take part in consensus and, per window, how much of the window it observed itself (coverage_bps) and the fraction of that time each peer took part. A single report is one guardian’s opinion; clients combine the reports with merge_peer_availability.

After a peer reset, peer_coverage_bps replaces shared coverage for that peer. Clients must support this field to interpret reset observations correctly. Older clients still read reports, but treat fresh scores as backed by the shared observation history. Upgrade clients when using resets.

Structs§

MergedPeerAvailability
The combined view of several guardians, see merge_peer_availability.
PeerAvailability
One guardian’s view of its peers’ availability.
ResetPeerAvailabilityRequest
Admin request to clear one peer’s observations on this guardian and start fresh ones. Every request clears again, including a repeated one.
WindowAvailability
One guardian’s view of its peers’ availability over one window.

Constants§

PEER_AVAILABILITY_WINDOWS_SECS
Time constants of the availability windows in seconds: one week and 30 days. Recent outages show in last_seen_secs instead.

Functions§

merge_peer_availability
Combines the reports of several guardians into one view.