-
Notifications
You must be signed in to change notification settings - Fork 63
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
Stats dashboard network capacity new day bug #721
Comments
Hi @baktun14, I sent a change regarding this, but have second thoughts about it. I observed the data returned for number of providers after midnight and found an interesting pattern. First it was 0, as you mentioned, then 7, then 36, finally the 72 one would expect (the same value as the previous day). 72 was to be seen around after 15 minutes after midnight. |
@jzsfkzm Correct, it wouldn't solve the issue, and we don't want to touch the grace period var because it's used everywhere to determine the active status of providers. I think it can be done by changing the sql query directly or I guess instead of removing entries with |
I just changed the logic so for 15 minutes after midnight we ignore last stat item if that item is for the current day. |
When a new day starts (0:00 UTC), there's a short period of time (~15m) where the stats show -100% for all the network capacity. It auto-fixes itself after that period when the provider snapshots are taken.
The reason for this is we do a query on day and join on the provider snapshots and when the new day starts, there's no provider snapshots that is flagged as
isLastSuccessOfDay
yet. Link to the query in questionThis causes confusion for anyone looking at the dashboard in that period of time.
isLastSuccessOfDay
provider snapshot when it's a new day and there's no provider snapshot yet.The text was updated successfully, but these errors were encountered: