Documentation
¶
Overview ¶
Package puller provides protocol-orchestrating functionality over the pullsync protocol. It pulls chunks from other nodes and reacts to changes in network configuration.
Index ¶
Constants ¶
const ( // DefaultHistRateWindow must stay shorter than the reserve worker wakeup // (reserveWakeUpDuration in pkg/node), so a full window of syncing has // passed before the radius is decreased again. DefaultHistRateWindow = time.Minute * 10 IntervalPrefix = "sync_interval" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Puller ¶
type Puller struct {
// contains filtered or unexported fields
}
func (*Puller) IsReserveSynced ¶
IsReserveSynced returns true if no bin at or above depth is historically syncing. A depth beyond the tracked bins is never reported as synced.
func (*Puller) Metrics ¶
func (p *Puller) Metrics() []prometheus.Collector
func (*Puller) SyncRateWithinRadius ¶
SyncRateWithinRadius returns the historical sync rate of the bins within the storage radius.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package intervalstore provides a persistence layer for intervals relating to a peer.
|
Package intervalstore provides a persistence layer for intervals relating to a peer. |