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

Reduce startup delays due to healthcheck #4

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Conversation

Pesa
Copy link
Member

@Pesa Pesa commented Oct 25, 2024

Use a 30s start_period for nfd and mongodb. During the start period, health checks are run every 5s (the default start_interval) which provides faster reaction to restarts.

With this improved mechanism, we can also increase the regular health check interval for nfd to 1 minute to further reduce the overhead.

Please note that this is completely untested.

Use a 30s start_period for nfd and mongodb. During the start period,
health checks are run every 5s (the default start_interval) which
provides faster reaction to restarts.

With this improved mechanism, we can also increase the regular health
check interval for nfd to 1 minute to further reduce the overhead.
@Pesa
Copy link
Member Author

Pesa commented Oct 25, 2024

  • I didn't bother increasing the interval for the mongodb healthcheck as I assume it has low overhead (lower than nfdc status at least).
  • I didn't touch the master healthcheck as I don't know the logic. Let me know if that should be changed as well.

@Pesa
Copy link
Member Author

Pesa commented Nov 11, 2024

Any comments?

@pulsejet
Copy link
Contributor

LGTM, thanks.

The master healthcheck is somewhat of a hack, to wait for the init script to finish creating the "initialized" file.

@pulsejet pulsejet merged commit 749ef24 into main Nov 11, 2024
2 checks passed
@pulsejet pulsejet deleted the healthcheck-interval branch November 11, 2024 19:17
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.

2 participants