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

Low power systems lag when polling UPS #26

Open
Oliver-Bagin opened this issue Feb 19, 2023 · 3 comments
Open

Low power systems lag when polling UPS #26

Oliver-Bagin opened this issue Feb 19, 2023 · 3 comments

Comments

@Oliver-Bagin
Copy link
Contributor

I am not exactly sure what causes this issue but the Raspberry Pi lags a lot when the UPS is not connected. I suspect that this lag is due to the low compute of the Pi causing lag when trying to find the UPS. I think that we should block the software from showing if the UPS is not detected as it isn't safe to run the test stand.

@OliverBalfour
Copy link
Contributor

Seeing as I did the UPS connection logic this is probably on me. What exactly is lagging? Is the front end laggy or does the latency blow up? It's possible I set up the pi with a 0 timeout for polling UPS status when disconnected or something silly like that that starves resources iff there's no UPS connection. I don't remember this being an issue before we introduced the UPS

@Oliver-Bagin
Copy link
Contributor Author

Oliver-Bagin commented Feb 21, 2023

Not sure exactly but it seems to me the entire Pi lags. The websocket stops responding at the very least and the frontend then lags. This lasts about 5 seconds and then works for about 2 seconds before freezing again for 5 seconds.

@OliverBalfour
Copy link
Contributor

What happens if you comment out

asyncio.ensure_future(self.update_UPS_status())
?

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

2 participants