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

Implement systemd notify #144

Closed
JanKoppe opened this issue Nov 17, 2017 · 0 comments
Closed

Implement systemd notify #144

JanKoppe opened this issue Nov 17, 2017 · 0 comments
Milestone

Comments

@JanKoppe
Copy link
Contributor

https://pypi.python.org/pypi/sdnotify

I would like to see pyCA communicate with systemd via notifications, so that we can leverage the systemd watchdog. Sometimes, some processes will hang themselves, which is unacceptable in a production environment.

If pyCA would use sdnotify, we could change the service type to notify and set a Watchdog that is about twice of the default check intervall and send a notification on every control loop iteration. A stuck worker would then be forcefully restarted by systemd, ensuring that the basic functionionality will work.

Of course this is much harder to do on the capture worker - I would leave this out for now.

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

No branches or pull requests

1 participant