Skip to content
This repository has been archived by the owner on Jun 25, 2019. It is now read-only.

Implement source rate limiting #89

Closed
wants to merge 1 commit into from
Closed

Implement source rate limiting #89

wants to merge 1 commit into from

Conversation

andig
Copy link
Collaborator

@andig andig commented Dec 2, 2018

Currently, gosdm will keep polling all devices at highest possible speed. This leads to high CPU load and is of limited use for human consumption, e.g. in the web ui. Rate limiting is only applied for MQTT output.

With this PR, rate limiting is move to the device scheduler and will halt the scheduling go routine until the cool down time for the selected rate has been achieved. Rate limits are still specified in seconds, it needs to be verified if this should be milliseconds instead.

Builds on #88.

@andig
Copy link
Collaborator Author

andig commented Dec 31, 2018

Replaced by #102

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant