Netflix / vector

Vector is an on-host performance monitoring framework which exposes hand picked high resolution metrics to every engineer’s browser.
http://getvector.io/
Apache License 2.0
3.58k stars 253 forks source link

metric collection is paused if window/tab is not in focus #11

Open spiermar opened 9 years ago

spiermar commented 9 years ago

In some browsers, chart rendering stops while the window/tab is not in focus. Because of that, we had to stop metric collection in order to avoid problems with processing the backlog once the window/tab is back in focus. Window calculation is also not optimal, since it's using the number of data points instead of timestamps to be calculated. We will fix that shortly.

matschaffer commented 9 years ago

At least on OS X this seems to happen on Chrome, Safari and Firefox. Are you aware of any browsers that continue rendering while the window/tab isn't being displayed?

matschaffer commented 9 years ago

Some cursory googling seems to indicate that updates might need to be moved to a web worker in order to avoid visibility-based buffering: http://stackoverflow.com/a/12522580/69002

spiermar commented 9 years ago

I have this on my list for the next release. There are a few "possible" workarounds and I'm chatting with a few people that might be able to help this week. Are you guys using Vector @matschaffer ?

matschaffer commented 9 years ago

Sure are! It's not baked into our base image yet, but it's on my list of things to add.

In the mean time I've been adding it to machines as I go.

Since we don't cycle instances very often it tends to be there when I need it :)