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

Keep track and log the number of daemon starts and restarts #53

Open
hangeza opened this issue Aug 17, 2021 · 0 comments
Open

Keep track and log the number of daemon starts and restarts #53

hangeza opened this issue Aug 17, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@hangeza
Copy link
Contributor

hangeza commented Aug 17, 2021

The daemon start/stop/restart is controlled by the systems systemctl service which automatically restarts the daemon e.g. when this crashes. In order to get an understanding of the reliability of the daemon, it would be useful to track the number of (unintentional by the user) restarts in the detector log to eventually come up with a quantity characterizing the stability of the daemon, such as mean time between failures (MTBF).

To do so, a daemon restart has to be detected externally to the daemon or by the daemon itself through a static restart counter (eg. saved to file) which will be written to the log (MQTT and otherwise) e.g. during the daily log cycle.

This feature would improve the quality and stability of the daemon greatly, since currently there is no quantity whatsoever to estimate the MTBF rate and therefore no countermeasures can be taken for potentially undefined behavior of the daemon.

@hangeza hangeza added the enhancement New feature or request label Aug 17, 2021
@dtreffenstaedt dtreffenstaedt added this to the v2.1.0 milestone Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants