-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Question: Upper limit for tags #3471
Comments
From the docs
|
The 100k number is very rough. If you stay below that you should be fine. With tag cardinality in the millions schema and query design become more important, as it becomes easier to create poor performance situations. We will document this more extensively as performance testing matures. |
An extension to the question: is there a limit to the length of a tag? |
Not really. There used to be a 64k limit but that was removed with the TSM engine. I suspect 4GB would be the limit now, but anything above a few thousand KB seems like a bad idea, just for throughput concerns. Remember, the full uncompressed tag set lives in memory as the index. No better way to chew up RAM than with 10KB tag names and values. |
Thanks @beckettsean |
Sorry to add to this issue, but by tag cardinality does that include both tag keys and tag values or just one or the other? |
@desa thanks for the info, I have been testing using influxdb to track logs and using tags for the log metadata. Extremely promising and glad to hear that this possible problem will be removed in the future. |
eek. we just ran into this. given that retention policies can't go less than an hour we are eating all available ram (16g) within the hour with (fairly) unique tag sets of source / destination IP/port plus volume counters (cisco netflow logging). aggregating doesn't help coz just the initial data is killing us, let alone our desire to archive aggregated data. we've got a stress-test python script that simulates our load in case it's interesting. -i |
Data newb here. This has been a useful issue to read, but can someone explain cardinality in terms of InfluxDB tags? |
the latest versions of influx address this with disk-based indexing.. https://docs.influxdata.com/influxdb/v1.5/concepts/tsi-details/ |
I have a small question. Is there an upper limit to how many tags we can add in InfluxDB?
The text was updated successfully, but these errors were encountered: