MCPcopy Create free account
hub / github.com/cortexproject/cortex / getShardSize

Method getShardSize

pkg/ingester/limiter.go:339–345  ·  view source on GitHub ↗
(userID string)

Source from the content-addressed store, hash-verified

337}
338
339func (l *Limiter) getShardSize(userID string) int {
340 if !l.shuffleShardingEnabled {
341 return 0
342 }
343
344 return l.limits.IngestionTenantShardSize(userID)
345}
346
347func (l *Limiter) getNumZones() int {
348 if l.zoneAwarenessEnabled {

Callers 1

Calls 1

Tested by

no test coverage detected