-
Notifications
You must be signed in to change notification settings - Fork 12
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
Autorefresh limits #40
Comments
Updates. For the last several days, one of our customers has been absolutely hammering the Kentik back end through the Grafana plugin. The issue is actually pretty crazy. They are hitting us with what looks like 45 dashboards, most of which are 1 month's worth of data, some may be shorter. But they have refresh intervals set at either 30s or 1 min - hard to tell for sure. We just see this regular hammer hitting every minute in regular repeated batches at :00, :15, :45 seconds. Each time, the month-long queries spawn around 2.5 million subqueries against our back end. They are the only ones hitting so bleeping hard, but clearly anyone using the plug in could do the same, so what we propose is this: limit auto-refresh on a sliding scale.
This would need to be implemented on the Grafana side. This would give our platform some breathing room as adoption ramps, until such time as incremental querying can be implemented within Grafana. |
There's no way to change auto-refresh behaviour in grafana now. But I can implement that through a incremental queries feature. I'll add proxy (with cache) layer for the queries in plugin. This layer will store data from previous requests. And also I can add these limits to the part which invokes api queries. For example:
Then I can expand this pattern to incremental update - add incremental query to step 3. |
Awesome strategy - please proceed! |
@jimfrey try to test incremental-data-update branch. I've added simple data caching and auto refresh limits. |
@jimfrey I'm working on incremental queries and want to discuss a question. |
I think, for the incremental queries we should know aggregation slice size (for the given time range). How can I get info about it? |
Tests completed - looks like the incremental pull is working as requested. Thanks! I'd suggest we close this issue, and pick up your questions above about aggregation slice size on a separate thread. If you agree, feel free to close. |
@jimfrey It still isn't an incremental pull, just requests caching. We need more time for true incremental queries, but hope, these changes help to reduce load to your servers. |
This is currently under internal discussion. It's an important feature for Kentik, but will require some non insignificant work to implement incremental/chunked/staggered (these are deliberately hazy words, for now) query capabilities in data sources. Part of our discussion is whether this functionality applies to other data sources (eg. Splunk, InfluxDB), and how to best abstract it out while still meeting Kentiks needs. |
11 months have passed since this request. Can we get an update? Thanks. |
@mattttt do we have any estimates for this? |
Kentik is experiencing heavy load on our back end due to Grafana users that are setting up auto-refreshing dashboards. Two approaches to deal with this:
The text was updated successfully, but these errors were encountered: