mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 13:25:42 +00:00
For applications with heavy data usage, accumulating data bytes over 5 minutes and then calculating rate using a much shorter window (like 2 - 5 seconds) makes it looks like there is a massive rate spike. While this change is not a fix, this should soften the impact. Need a better way to handle different parts of the system operating at different frequencies. Can use rate in the reporting window, but that will miss the spikes. Maybe that is okay. For example, if the reporting window is 5 minutes and there was a 100 Mbps spike for about 10 seconds of it, it would get smoothed out.