Repository navigation
fix(serving): add /ready readiness probe route for Vertex and Cloud Run - #47
Merged
ghchinoy merged 1 commit intoNov 10, 2026
Merged
Conversation
ghchinoy
force-pushed
the
fix/serving-ready-route
branch
from
November 9, 2026 22:29
b014a80 to
731698c
Compare
ghchinoy
force-pushed
the
fix/serving-ready-route
branch
from
November 10, 2026 14:30
731698c to
4550ee2
Compare
ghchinoy
marked this pull request as ready for review
November 10, 2026 14:30
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.
Summary
Adds a truthful
/readyreadiness probe route to the serving image while preserving/health(200) for cold-start progress telemetry, and addsPOST-able readiness/health routes for external callers on Vertex dedicated/invoke/*and:rawPredictendpoints:deploy/cloudrun/server/structured_server.py,dgem.patch):GET /readyandGET /invoke/readyreturn503(with the_health_info()JSON payload) until live upstreamvLLM/healthanswers200, and503again if the upstream engine stops answering (preventing stalewarmup_state.jsonvllm_ready: truefrom masking post-start crashes/OOMs).GET /healthstays200unconditionally for cold-start telemetry.POST /ready(/invoke/ready),POST /health(/invoke/health), andPOST /predict//rawPredictwith{"ready": true}providePOST-able readiness and telemetry probes (X-DGem-Keyenforced whenDGEM_SERVER_KEYis set) because Vertex dedicated endpoints reject externalGETrequests on/invoke/*routes (404).scripts/deploy_vertex_endpoint.sh,deploy/cloudrun/service.yaml,scripts/deploy_cloudrun_vllm.sh,scripts/gpu_smoketest.sh):healthRoutenow points at"/ready"so crash-looping engines fail deployment rather than reportingSUCCESSFULLY_DEPLOYED.startupProbeuseshttpGet /ready(failureThreshold: 180, ~15m startup window).cmd/serve.go,scripts/matrix/net.py):/invokeand:rawPredicthealth/readiness probes toPOST(POST .../invoke/predict{"health": true}for backward compatibility with existing deployments, andPOST/ready/{"ready": true}for readiness checks).deploy/cloudrun/server/test_ready_route.py,test_predict_route.py,scripts/matrix/test_matrix.py,cmd/vertex_status_swr_test.go,docs/,docs-site/):GETandPOST/ready,/health, and/predict {"ready": true}(503 -> 200 -> 503transitions,X-DGem-Keyenforcement, HTTP/1.1 keep-alive body draining) and synced Vertex / Cloud Run / evaluation docs.Closes #46