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
Frontend performance with InfluxDB #2634
Comments
when you issue the influxdb query that hangs the browser what group by time interval do you have? InfluxDB does not have a maxDataPoints parameter but it has a group by time feature, if you use the Grafana influxdb query editor Grafana will geneterate a query with If you use 10s data for 2 years without rollups, InfluxDB is going to be crazy slow when you issue queries over large time spans. Graphite is amazingly fast for queries due to its integrated rollups, sure you have to have an SSD and 2-4 carbon agents too scale it to do millions of metrics per minute but that is pretty easy. I would suggest sticking with Graphite if you want fast queries and not having to worry about what time range you use. InfluxDB 0.9 does not have any generic way to do rollups yet, you need to specify one continuous query per measurement and rollup period |
p.s. |
Upgraded, but I still had the same problem. This was my original query, which did not aggregate anything: SELECT non_negative_derivative(value) FROM "contextswitch_value" WHERE "host" = 'vmmonitor' AND time > now() - 10m GROUP BY time(5m) fill(null) 2 changes are needed: End result: SELECT non_negative_derivative(sum(value)) FROM "contextswitch_value" WHERE "host" = 'vmmonitor' AND time > now() - 10m GROUP BY time(5m) fill(none) |
Hi!
SW-versions:
Config:
Situation:
I'm comparing the influxdb vs. graphite backends.
"graphite/carbon/whisper" is the nicest one to use with grafana, but on the other side it generates a lot of I/O, I don't like its architecture and there is a huge amount of CPU usage on the server when I issue queries for large timespans (especially if I don't use the 1minute-aggregation for ranges bigger than 2months).
I therefore started to evaluate as well influxdb as grafana's data source.
Problem:
when using influxdb and issuing queries for large timespans (starting from 7 days onwards - but in the future I'll issue queries even for the full 2 years), grafana generates a lot of load in the browser respectively the whole browser hangs (using mainly Firefox - but even if Chrome is top, performance still deteriorates with larger timespans).
Comparison:
when doing the same with graphite, the browser page still hangs for a while, but just because it's waiting for an answer from the server (no CPU usage on the client).
Assumptions & hints:
I assume that with influxdb the browser is overloaded by all the data points that it gets?
If the previous assumption is correct, I am aware of the "maxDataPoints"/"Max data points" option for a "graphite/carbon/whisper" setup => is there something similar for influxdb?
Thanks a lot for reading this - I love grafana's look and its query builder!!!!
The text was updated successfully, but these errors were encountered: