-
Notifications
You must be signed in to change notification settings - Fork 816
Add global limit to the max series per user and metric #1760
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
Add global limit to the max series per user and metric #1760
Conversation
28e8ea0
to
368588a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some comments!
ef95857
to
53404e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! LGTM.
d289680
to
049b2bd
Compare
e9cae33
to
d0ac12c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- `-ingester.max-global-series-per-user` - `-ingester.max-global-series-per-metric` Signed-off-by: Marco Pracucci <[email protected]>
Signed-off-by: Marco Pracucci <[email protected]>
Signed-off-by: Marco Pracucci <[email protected]>
Signed-off-by: Marco Pracucci <[email protected]>
…o create a new ring client for the ingesters Signed-off-by: Marco Pracucci <[email protected]>
Signed-off-by: Marco Pracucci <[email protected]>
Signed-off-by: Marco Pracucci <[email protected]>
…eded Signed-off-by: Marco Pracucci <[email protected]>
…unters and the ring desc is nil Signed-off-by: Marco Pracucci <[email protected]>
…s lifecycler updateCounters() Signed-off-by: Marco Pracucci <[email protected]>
Signed-off-by: Marco Pracucci <[email protected]>
…make it more generic Signed-off-by: Marco Pracucci <[email protected]>
Signed-off-by: Marco Pracucci <[email protected]>
d0ac12c
to
c0ef755
Compare
Following up to this design doc, in this PR I propose to introduce a global limit on the maximum number of series per user and metric.
The global limit has been implemented as a local (per-ingester) limit configured based on the number of ingesters in the cluster + replication factor.
Notes:
-distributor.shard-by-all-labels
config option as well, otherwise it doesn't know it. Not super nice, but I haven't find a better way to do it (better ideas?)The ingester now depends on the read ring, to count the number of ingesters across the cluster0