fix(deployment): Switch webui health checks from TCP to HTTP to detect OOM-thrashing Node.js (fixes #2172).#2186
Merged
Conversation
…t OOM-thrashing Node.js (fixes y-scope#2172).
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughSwitched webui health probes from TCP socket checks to HTTP GET checks in both Helm and Docker Compose deployments; updated Helm chart version. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
junhaoliao
added a commit
to junhaoliao/clp
that referenced
this pull request
May 17, 2026
…t OOM-thrashing Node.js (fixes y-scope#2172). (y-scope#2186)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The webui container's health checks (Docker Compose and Helm) only test TCP port connectivity (
< /dev/tcp/webui/4000/tcpSocket), which continues to pass even when the Node.js process is OOM-thrashing and unable to serve HTTP requests. This leaves the container in a permanently degraded state that is never detected or restarted.This PR switches both configurations to use HTTP-based health checks (
curl -fin Compose,httpGetin Helm) against the webui root path (/), consistent with how the api-server, mcp-server, and log-ingestor services are already health-checked. Sincecurlis already recently installedin the
clp-packageimage, no image changes are required.Checklist
breaking change.
Validation performed
Scenario 1: Verify curl is available in the clp-package image
Task: Confirm that
curlis already installed in the container image so the Compose healthcheckcan use it without image changes.
Command:
Output:
Scenario 2: Start CLP and verify webui becomes healthy with HTTP health check
Task: Deploy the CLP package with the updated Compose file and confirm the webui container
reaches
healthystatus using the new HTTP-based health check.Command:
cd build/clp-package ./sbin/start-clp.shOutput:
Explanation: The webui container passes the new HTTP health check and reaches
healthystatus.Scenario 3: Inspect webui container health check details
Task: Verify the health check is actually using HTTP (curl) and returning a successful response.
Command:
Output:
{ "Status": "healthy", "FailingStreak": 0, "Log": [ { "Start": "2026-04-04T05:27:03.263562725-04:00", "End": "2026-04-04T05:27:03.298101702-04:00", "ExitCode": 0, "Output": "...<!doctype html>\n<html lang=\"en\">\n<head>\n <title>YScope CLP</title>..." } ] }Explanation: The health check log shows
curlsuccessfully retrieved the HTML page from/with exit code 0, confirming the HTTP-level check works correctly.
Scenario 4: Verify HTTP endpoint responds with 200
Task: Confirm the webui root path returns HTTP 200, which is the response code
curl -frequires to pass.
Command:
curl -f --max-time 2 http://localhost:4000/ -o /dev/null -w "HTTP %{http_code}\n"Output:
Scenario 5: End-to-end compression test
Task: Verify the overall CLP package still functions correctly with the updated health check.
Command:
Output:
Explanation: Compression succeeds end-to-end, confirming no regression from the health check
change.
Summary by CodeRabbit