Skip to content

add healthcheck orchestration logic#4427

Merged
AkihiroSuda merged 1 commit into
containerd:mainfrom
coderbirju:automate_health_checks_feat
Sep 22, 2025
Merged

add healthcheck orchestration logic#4427
AkihiroSuda merged 1 commit into
containerd:mainfrom
coderbirju:automate_health_checks_feat

Conversation

@coderbirju
Copy link
Copy Markdown
Contributor

@coderbirju coderbirju commented Jul 28, 2025

PR to add orchestration logic to nerdctl healthchecks

This PR uses systemd timers to orchestrate healthcheks in nerdctl without the need for a daemon process. Feature currently scoped for rootful linux systems.

@coderbirju coderbirju force-pushed the automate_health_checks_feat branch 15 times, most recently from a4676a1 to bba6059 Compare August 8, 2025 20:24
@coderbirju coderbirju force-pushed the automate_health_checks_feat branch from bba6059 to 97643eb Compare August 11, 2025 00:23
@coderbirju coderbirju force-pushed the automate_health_checks_feat branch 3 times, most recently from f4fc171 to f12e708 Compare August 27, 2025 18:49
@coderbirju coderbirju marked this pull request as ready for review August 27, 2025 19:03
@coderbirju
Copy link
Copy Markdown
Contributor Author

@swagatbora90 @Shubhranshu153 @AkihiroSuda PTAL when you get a chance, open to improvements

@AkihiroSuda AkihiroSuda added this to the v2.1.4 milestone Aug 28, 2025
Comment thread pkg/healthcheck/healthcheck_manager_linux.go Outdated
Comment thread pkg/containerutil/containerutil.go Outdated
Comment thread pkg/containerutil/containerutil.go Outdated
Comment thread go.mod Outdated
Comment thread cmd/nerdctl/container/container_health_check_linux_test.go Outdated
Comment thread cmd/nerdctl/container/container_health_check_linux_test.go
Comment thread cmd/nerdctl/container/container_health_check_linux_test.go Outdated
Comment thread cmd/nerdctl/container/container_health_check_linux_test.go Outdated
Comment thread cmd/nerdctl/container/container_health_check_linux_test.go
Comment thread cmd/nerdctl/container/container_health_check_linux_test.go Outdated
@AkihiroSuda AkihiroSuda modified the milestones: v2.1.4, v2.1.5 (?) Sep 4, 2025
@coderbirju
Copy link
Copy Markdown
Contributor Author

coderbirju commented Sep 4, 2025

Hi @AkihiroSuda yes we can move this for v2.1.5, I want to get in some more robust testing before we merge this

@coderbirju coderbirju force-pushed the automate_health_checks_feat branch 2 times, most recently from 87f6fa0 to 3480422 Compare September 4, 2025 08:26
@coderbirju
Copy link
Copy Markdown
Contributor Author

Just a few more minor tests to be added, then this PR should be ready to merge, will try and get those in the next couple of days

@coderbirju coderbirju force-pushed the automate_health_checks_feat branch 3 times, most recently from f3e94d4 to 9b4b4b7 Compare September 10, 2025 15:04
@coderbirju coderbirju changed the title add healthcheck orchestration logic [WIP] add healthcheck orchestration logic Sep 10, 2025
@coderbirju
Copy link
Copy Markdown
Contributor Author

There are some issues running systemd inside the Rootless test environment, fails with

level=warning msg="systemd DBUS connect error during force cleanup: exec: \"dbus-launch\": executable file not found in $PATH" time="2025-09-10T14:53:03Z" level=warning msg="force cleanup encountered errors but continuing:  systemd DBUS connect error: exec: \"dbus-launch\": executable file not found in $PATH"

For now I have skipped the tests in rootless mode and added documentation for the same, I will add a seprate follow-up PR to fix these issues but i'd like to get this reviewed and merged.

Current failures seem to be unrelated to healthchecks

PTAL @AkihiroSuda @swagatbora90 @Shubhranshu153

Comment thread pkg/ocihook/ocihook.go Outdated
Comment thread docs/healthchecks.md Outdated
Comment thread docs/healthchecks.md
Copy link
Copy Markdown
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

@swagatbora90 swagatbora90 left a comment

Choose a reason for hiding this comment

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

Minor nits. LGTM.

Comment thread pkg/healthcheck/healthcheck_manager_linux.go Outdated
Comment thread pkg/healthcheck/healthcheck_manager_linux.go Outdated
@coderbirju coderbirju force-pushed the automate_health_checks_feat branch 2 times, most recently from c2a14b0 to ee67008 Compare September 19, 2025 02:13
Signed-off-by: Arjun Raja Yogidas <arjunry@amazon.com>
@coderbirju coderbirju force-pushed the automate_health_checks_feat branch from ee67008 to 7216405 Compare September 19, 2025 03:18
Copy link
Copy Markdown
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda merged commit 3f9e104 into containerd:main Sep 22, 2025
79 of 89 checks passed
@AkihiroSuda AkihiroSuda mentioned this pull request Sep 22, 2025
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.

5 participants