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

Method ShuffleShardWithLookback

ring/ring.go:123–123  ·  view source on GitHub ↗

ShuffleShardWithLookback is like ShuffleShard() but the returned subring includes all instances that have been part of the identifier's shard since "now - lookbackPeriod".

(identifier string, size int, lookbackPeriod time.Duration, now time.Time)

Source from the content-addressed store, hash-verified

121 // ShuffleShardWithLookback is like ShuffleShard() but the returned subring includes
122 // all instances that have been part of the identifier's shard since "now - lookbackPeriod".
123 ShuffleShardWithLookback(identifier string, size int, lookbackPeriod time.Duration, now time.Time) ReadRing
124
125 // HasInstance returns whether the ring contains an instance matching the provided instanceID.
126 HasInstance(instanceID string) bool

Implementers 2

Ringring/ring.go
RingMockring/util_test.go

Calls

no outgoing calls