Skip to content

Conversation

@yuchen-db
Copy link
Collaborator

@yuchen-db yuchen-db commented Sep 8, 2025

found that in rare cases tenants that never received any samples are not pruned, making scale down never happen

@yuchen-db yuchen-db requested review from hczhu-db and jnyi September 8, 2025 23:45
Comment on lines +539 to +543
if head.MaxTime() == math.MinInt64 {
tenantTSDB.mtx.RUnlock()
level.Info(logger).Log("msg", "Pruning zombie tenant (never received data)", "maxTime", head.MaxTime())
return true, nil
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you bump a counter here?

if head.MaxTime() == math.MinInt64 {
tenantTSDB.mtx.RUnlock()
level.Info(logger).Log("msg", "Pruning zombie tenant (never received data)", "maxTime", head.MaxTime())
return true, nil
Copy link
Collaborator

@jnyi jnyi Sep 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we close this tdb then since it doesn't receive any data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants