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

watchdog: improve the behavior how watchdog is handled #727

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ahmetfindi
Copy link
Contributor

  • dlt_daemon_process_user_messages
  • dlt_daemon_send_ringbuffer_to_client
  • dlt_daemon_client_send_all_multiple
  • dlt_daemon_process_systemd_timer
  • dlt_daemon_handle_event
  • dlt_daemon_socket_sendreliable

These methods can take longer than the systemd watchdog timeout allowed, depending on the number of clients, which leads that the systemd watchdog kills dlt-daemon. Add a timeout to these methods so that they may only run for as long as the watchdog timer is set. In addition, set the default WatchdogTimeout to an appropriate value in case the env variable is not set.

The program was tested solely for our own use cases, which might differ from yours.
Licensed under Mozilla Public License Version 2.0

Ahmet Findikci [email protected], Mercedes-Benz Tech Innovation GmbH, imprint

* dlt_daemon_process_user_messages
* dlt_daemon_send_ringbuffer_to_client
* dlt_daemon_client_send_all_multiple
* dlt_daemon_process_systemd_timer
* dlt_daemon_handle_event
* dlt_daemon_socket_sendreliable

These methods can take longer than the systemd watchdog timeout allowed, depending on the number of clients, which leads that the systemd watchdog kills dlt-daemon.
Add a timeout to these methods so that they may only run for as long as the watchdog timer is set.
In addition, set the default WatchdogTimeout to an appropriate value in case the env variable is not set.

Signed-off-by: Ahmet Findikci <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant