MCPcopy
hub / github.com/grafana/dskit / zoneAwareResultTracker

Struct zoneAwareResultTracker

ring/replication_set_tracker.go:244–254  ·  view source on GitHub ↗

zoneAwareResultTracker tracks the results per zone. All instances in a zone must succeed in order for the zone to succeed.

Source from the content-addressed store, hash-verified

242// zoneAwareResultTracker tracks the results per zone.
243// All instances in a zone must succeed in order for the zone to succeed.
244type zoneAwareResultTracker struct {
245 waitingByZone map[string]int
246 failuresByZone map[string]int
247 minSuccessfulZones int
248 maxUnavailableZones int
249 zoneRelease map[string]chan struct{}
250 zoneShouldStart map[string]*atomic.Bool
251 pendingZones []string
252 zoneSorter ZoneSorter
253 logger log.Logger
254}
255
256type ZoneSorter func(zones []string) []string
257

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected