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

don't redraw graph on every refresh #10

Open
blackmad opened this issue Apr 24, 2012 · 3 comments
Open

don't redraw graph on every refresh #10

blackmad opened this issue Apr 24, 2012 · 3 comments

Comments

@blackmad
Copy link

Super excited to play with graphene. I'm wondering if you've thought about only requesting data from graphite since the last draw of the graph and streaming it in? My understanding is that d3 can deal with adding data points to an existing graph.

@jondot
Copy link
Owner

jondot commented Apr 24, 2012

Hi David,
I'm happy to hear you find Graphene interesting!.

You're correct; it is completely possible to do data incrementally. My assumption at the time was that there is already a 'generic' style Graphite dashboard running, so requesting "15min ago" would hit the query cache quite nicely, therefore not introducing new queries for Graphite to handle.

I was thinking, what you're suggesting might be a necessary optimization when someone feels it is problematic at the current state - do you?

@nhooey
Copy link

nhooey commented Feb 27, 2013

In my experience, querying a loaded Graphite instance for "7 days ago" takes a very long time to refresh, because Graphite presumably doesn't efficiently cache parts of relative duration requests, if at all. Querying graphite for "1 minute ago" is much faster.

Therefore it would be much better to have Graphene do an incremental query for the last delta time it needs to update.

@mihau
Copy link

mihau commented Sep 24, 2013

That would be very beneficial. It works fine for moderate amount of graphs even displaying some long periods, but when the same dashboard is used by many people then the traffic it generates is quite immense.

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

No branches or pull requests

4 participants