Repository navigation
fix(k8s): let gateway rollouts and database restarts finish open calls - #5342
Merged
dan-petty merged 2 commits intoNov 13, 2026
Merged
Conversation
Three defaults of the gateway and its database cut open model calls or stopped the start of the gateway. - The gateway pod sets terminationGracePeriodSeconds 600. On SIGTERM, uvicorn waits for each open call, and LiteLLM sets no timeout_graceful_shutdown, so the default of 30 s cut long calls. - The Cluster llm-gateway-db sets smartShutdownTimeout 15. The idle sessions of the old gateway pod kept the default smart shutdown of 180 s open, and the new gateway pod stopped after its migration check. - The startup, liveness and readiness probes of the gateway set timeoutSeconds 5. One slow request holds the one uvicorn worker for some seconds, and the default of 1 s made probes fail. allow_requests_on_db_unavailable stays unset. Three checks of the k8s row hold the values, and k8s/README.md tells how the gateway and its database stop. Closes #5301
Owner
Author
Test results
Render difference
A server-side dry run of What restarts at the merge
Steps for a person after the merge
|
dan-petty
marked this pull request as ready for review
November 13, 2026 03:06
dan-petty
deleted the
fix/5301-let-gateway-rollouts-and-database-restarts
branch
November 13, 2026 03:09
dan-petty
pushed a commit
that referenced
this pull request
Nov 13, 2026
🤖 I have created a release *beep* *boop* --- ## [0.125.5](v0.125.4...v0.125.5) (2026-11-13) ### Bug Fixes * **k8s:** let gateway rollouts and database restarts finish open calls ([#5342](#5342)) ([1f928c1](1f928c1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
Three defaults of the LiteLLM gateway and its database cut open model calls or stopped the start of the gateway.
terminationGracePeriodSeconds: 600. On SIGTERM, uvicorn waits for each open call, and LiteLLM sets notimeout_graceful_shutdown, so the default of 30 s cut long calls at a rollout.llm-gateway-dbsetssmartShutdownTimeout: 15. The idle sessions of the old gateway pod kept the default smart shutdown of 180 s open, and the new gateway pod stopped after its migration check.timeoutSeconds: 5. One slow request holds the one uvicorn worker for some seconds, and the default of 1 s made probes fail.allow_requests_on_db_unavailablestays unset. Three checks of thek8srow hold the values, andk8s/README.mdtells how the gateway and its database stop.Closes #5301
Change:
openspec/changes/archive/2026-11-13-5301-let-gateway-rollouts-and-database-restarts/