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

Cardinality Limits #6679

Closed
jwilder opened this issue May 19, 2016 · 2 comments
Closed

Cardinality Limits #6679

jwilder opened this issue May 19, 2016 · 2 comments
Assignees
Milestone

Comments

@jwilder
Copy link
Contributor

jwilder commented May 19, 2016

Feature Request

Proposal:

The server should have configuration limits for operators to prevent high cardinality tags and number of series.

Current behavior:

A writing process can easily write tag value that creates a high cardinality series causing increased memory usage and more risk of OOMing the process. Many times the operator of the system is not the same as the user writing to the system. This means that the operator cannot prevent an errant process from overloading the system easily.

Desired behavior:

One (or two) config options to limit tag and series cardinality at write time.

  • Max Tag Cardinality - Maximum number of distinct values a given tag can have. This would apply per-shard.
  • Max Series Cardinality - Maximum number of distinct series. This would apply per-shard.

When these limits are hit, writes that would increase this number would be rejected and an error logged in the system indicating the problem.

@jwilder jwilder added this to the 1.0.0 milestone May 19, 2016
@jwilder jwilder modified the milestones: 1.0.0 beta, 1.0.0 May 26, 2016
@nhaugo nhaugo modified the milestones: 1.1.0, 1.0.0 Jul 7, 2016
@jwilder jwilder modified the milestones: 1.0.0, 1.1.0 Jul 19, 2016
@dgnorton
Copy link
Contributor

@jwilder suggestions for sane default values on the config settings? Seems like it would vary based on system. Would it make more sense to fail writes based on memory usage?

@jwilder jwilder assigned dgnorton and unassigned jwilder Jul 21, 2016
dgnorton added a commit that referenced this issue Aug 5, 2016
@jwilder
Copy link
Contributor Author

jwilder commented Aug 9, 2016

Fixed via #7095

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

No branches or pull requests

3 participants