-
Notifications
You must be signed in to change notification settings - Fork 180
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
Metrics tab extremely unstable #142
Comments
Can you please let us know what was the previous commit or version that you were running on? |
Sure, I’ll try to bisect it when I have some time.
… On 27 May 2020, at 17:25, José Valim ***@***.***> wrote:
Can you please let us know what was the previous commit or version that you were running on?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Unfortunately, I couldn't get older versions to run any more. Live view kept crashing unable to start Channel. How can I run my app with live dashboard in dev mode? It would help tracking down the issue if I was able to see unminified JS. |
You would need to use LV 0.13.0 with an older version. But I believe @mcrumm has already identifier the root cause. :) |
Hi @lukaszsamson! It appears that, when we switched to millisecond timestamps, a move that was intended to improve chart stability by reducing duplicate values, it caused a major hit to performance over time, as we're now drawing significantly more points/lines. First, I'll note that static chart performance is not impacted, even with very large datasets. Our current problem is that we are redrawing the charts far too often. Chart interactions (hover, drag, etc.) exacerbate the problem, as they also redraw, and with enough interactions while events are in-flight, animations stack up, and eventually we crash the channel (maybe because we missed a heartbeat? i'm not 100% sure on that part, yet.) I have what may ultimately be only a half-measure in #135, to set a max number of events per chart, but rate of input appears to be the bigger problem. I wonder if we need a way to "turn off the firehose", so to speak, when a user is interacting with the charts. Further, I wonder if we should batch events on the client and only redraw with new events every N seconds. I'm open to suggestions! :) |
some thoughts: you guys may want 2 modes. one where it's limited by event count (configurable by user) rather than time. this mode retains all the data up to the defined limit and you can zoom in for full details. this would be good for debugging scenarios, and does not completely neuter the fire-hose scenario. the other mode can be an accumulator with a predefined bucket size (set by the user, maybe 5s default) and a max total bucket count (set by user, maybe 24h worth). this mode basically ingests everything, accumulates the timestamp/in/min/max/out per 5s bucket and then feeds it into the final data array that has a length of 24h in 5s buckets. this mode would not zoomable to higher resolutions than the buckets size. the rendering for this mode can look something like OHLC bars: leeoniya/uPlot#241 (comment) |
@lukaszsamson Can you check against d028a86? The latest uPlot should resolve the remaining JS errors. |
I just checked against bdb5918 and the JS errors are still there
Can you provide source maps or not minified JS so I can debug it? |
I'm no longer seeing those crashes on master@21d61a464434606e19c39464ffcc71c690f5f358 |
Environment
Elixir 1.10.3 (compiled with Erlang/OTP 23)
Actual behavior
I have a few metrics defined that each output ~200 data points/s
On Chrome
The metric boxes flicker a lot or stop displaying any data.
A lot o JS errors are reported in the console. The UI from time to time navigates to index page by itself.
On Firefox
Metrics look good but the browser UI becomes unresponsive. It looks like live dashboard is starving the UI thread.
I couldn't get the console to load.
On Safari
UI totally unresponsive, metrics not showing
Example errors logged in chrome:
It seems the stability deteriorated in the last week as I did'n notice such problems on previous versions.
Expected behavior
No crashes, no UI hangs
The text was updated successfully, but these errors were encountered: