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

Method getShardSizeForUser

pkg/compactor/compactor.go:1166–1168  ·  view source on GitHub ↗
(userID string)

Source from the content-addressed store, hash-verified

1164}
1165
1166func (c *Compactor) getShardSizeForUser(userID string) int {
1167 return util.DynamicShardSize(c.limits.CompactorTenantShardSize(userID), c.ring.InstancesCount())
1168}
1169
1170func (c *Compactor) ownUser(userID string, isCleanUp bool) (bool, error) {
1171 if !c.allowedTenants.IsAllowed(userID) {

Callers 2

ownUserMethod · 0.95

Calls 3

DynamicShardSizeFunction · 0.92
InstancesCountMethod · 0.65

Tested by 1