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

systemd service file: add RestartSec=10s #344

Merged
merged 1 commit into from
Aug 23, 2023
Merged

Conversation

mhasself
Copy link
Member

HostManager can crash and restart really quickly, so this rate-limiting is necessary on some systems to prevent systemd from giving up on the service.

I think this is what is needed to solve #343 . Pending better logs from the field, I don't know what else to do.

I confirmed on my system that without this rate limiter, systemd quickly gives up on trying to restart the agent (even though Restart=always). With the limit in place, it seems to happily truck along for many minutes.

HostManager can crash and restart really quickly, so this
rate-limiting is necessary on some systems to prevent systemd from
giving up on the service.
@BrianJKoopman BrianJKoopman self-requested a review August 22, 2023 13:53
Copy link
Member

@BrianJKoopman BrianJKoopman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced this'll solve #343, but sounds nice to have. I'll try to get better logs/a method for reproducing the problem soon.

@BrianJKoopman BrianJKoopman merged commit 4a981c5 into main Aug 23, 2023
5 checks passed
@BrianJKoopman BrianJKoopman deleted the hm-service-robustness branch August 23, 2023 15:37
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.

None yet

2 participants