Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce max series limit in the distributor when usage-tracker is enabled #10129

Merged
merged 6 commits into from
Dec 4, 2024

Conversation

pracucci
Copy link
Collaborator

@pracucci pracucci commented Dec 4, 2024

What this PR does

Enforce max series limit in the distributor when usage-tracker is enabled. I left few TODOs that I don't plan to address in the prototype, but would be required if we'll move forward productionising it.

Which issue(s) this PR fixes or relates to

N/A

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

…bled

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci requested a review from a team as a code owner December 4, 2024 13:54
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci merged commit 4bc4bd3 into usage-tracker Dec 4, 2024
29 checks passed
@pracucci pracucci deleted the use-usage-tracker-client-in-distrubutor branch December 4, 2024 15:56
Comment on lines +1228 to +1233
if len(rejectedHashes) > 0 {
// Build a map of rejected hashes so that it's easier to lookup.
rejectedHashesMap := make(map[uint64]struct{}, len(rejectedHashes))
for _, hash := range rejectedHashes {
rejectedHashesMap[hash] = struct{}{}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets see if this causes issues, we might want to return rejected indexes instead.

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.

2 participants