Skip to content

Conversation

@atchernych
Copy link
Contributor

@atchernych atchernych commented Aug 5, 2025

Overview:

More reasonable values to avoid customer confusion (https://nvbugspro.nvidia.com/bug/5425651)

Details:

Where should the reviewer start?

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • closes GitHub issue: #xxx

Summary by CodeRabbit

  • Chores
    • Updated health check configurations across multiple backend services to perform liveness checks more frequently and detect failures more quickly. These changes improve responsiveness in identifying and recovering from service issues. No changes were made to readiness probes or other user-facing features.

@atchernych atchernych requested a review from biswapanda August 5, 2025 01:39
@atchernych atchernych changed the title bug: Adjust frontEnd thrasholds fix: Adjust frontEnd thrasholds Aug 5, 2025
@github-actions github-actions bot added the fix label Aug 5, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 5, 2025

Walkthrough

Liveness probe configurations for various backend deployment YAML files were adjusted to increase the frequency and decrease the delay, timeout, and failure threshold for health checks. These changes affect multiple services across both sglang and vllm backends, targeting faster detection of unhealthy containers without altering readiness probes or exported entities.

Changes

Cohort / File(s) Change Summary
sglang liveness probe tuning
components/backends/sglang/deploy/agg.yaml, components/backends/sglang/deploy/agg_router.yaml, components/backends/sglang/deploy/disagg.yaml
Reduced initialDelaySeconds, periodSeconds, timeoutSeconds, and failureThreshold for the Frontend liveness probe to make health checks more frequent and responsive. No changes to readiness probes or exported entities.
vllm Frontend liveness probe tuning
components/backends/vllm/deploy/agg_router.yaml, components/backends/vllm/deploy/disagg.yaml, components/backends/vllm/deploy/disagg_planner.yaml, components/backends/vllm/deploy/disagg_router.yaml
Adjusted Frontend liveness probe parameters: lowered delays, intervals, timeouts, and failure thresholds for quicker and more frequent health checks. No changes to readiness probes or exported entities.
vllm agg deployment health probes
components/backends/vllm/deploy/agg.yaml
Updated liveness and readiness probes for Frontend and VllmDecodeWorker: reduced delays, intervals, timeouts, and changed failure thresholds. Added or adjusted initialDelaySeconds and timeoutSeconds for startupProbe. No changes to exported entities.

Sequence Diagram(s)

sequenceDiagram
    participant Kubelet
    participant Frontend
    participant VllmDecodeWorker

    Note over Kubelet: Liveness probe (more frequent, faster timeout)
    Kubelet->>Frontend: HTTP GET /healthz (every 5s, timeout 5s)
    Frontend-->>Kubelet: 200 OK or error

    Note over Kubelet: For VllmDecodeWorker (agg.yaml)
    Kubelet->>VllmDecodeWorker: HTTP GET /healthz (period 10s, timeout 5s)
    VllmDecodeWorker-->>Kubelet: 200 OK or error

    Note over Kubelet: Fewer failures tolerated before restart
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐇
Quick as a bunny, probes now hop,
Checking health without a stop.
Delays are trimmed, thresholds tight,
Containers checked both day and night.
YAMLs tuned with nimble care—
The backend’s health is in the air!
🥕

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

♻️ Duplicate comments (4)
components/backends/vllm/deploy/disagg_planner.yaml (1)

25-28: Same liveness / readiness mismatch as noted in sglang-agg – please align initialDelaySeconds or use a dedicated live endpoint.
See previous comment for details.

components/backends/vllm/deploy/disagg_router.yaml (1)

18-21: Same liveness / readiness mismatch as noted in sglang-agg – adjust delay or endpoint.

components/backends/sglang/deploy/agg_router.yaml (1)

15-18: Same liveness / readiness mismatch as noted in sglang-agg – adjust delay or endpoint.

components/backends/vllm/deploy/disagg.yaml (1)

18-21: Same liveness / readiness mismatch as noted in sglang-agg – adjust delay or endpoint.

🧹 Nitpick comments (1)
components/backends/vllm/deploy/agg.yaml (1)

25-28: Readiness probe frequency equal to liveness – re-evaluate necessity

Running the expensive curl | jq command every 5 s per replica adds overhead and log noise without tangible benefit.
Typical patterns keep readiness at ≥10 s once the pod is ready.

-        periodSeconds: 5
-        failureThreshold: 3
+        periodSeconds: 15
+        failureThreshold: 5
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 30f3352 and cdddd0f.

📒 Files selected for processing (8)
  • components/backends/sglang/deploy/agg.yaml (1 hunks)
  • components/backends/sglang/deploy/agg_router.yaml (1 hunks)
  • components/backends/sglang/deploy/disagg.yaml (1 hunks)
  • components/backends/vllm/deploy/agg.yaml (3 hunks)
  • components/backends/vllm/deploy/agg_router.yaml (1 hunks)
  • components/backends/vllm/deploy/disagg.yaml (1 hunks)
  • components/backends/vllm/deploy/disagg_planner.yaml (1 hunks)
  • components/backends/vllm/deploy/disagg_router.yaml (1 hunks)
🧰 Additional context used
🧠 Learnings (5)
📓 Common learnings
Learnt from: nnshah1
PR: ai-dynamo/dynamo#2124
File: components/backends/vllm/deploy/disagg.yaml:54-60
Timestamp: 2025-07-25T22:34:11.384Z
Learning: In vLLM worker deployments, startup probes (with longer periods and higher failure thresholds like periodSeconds: 10, failureThreshold: 60) are used to handle the slow model loading startup phase, while liveness probes are intentionally kept aggressive (periodSeconds: 5, failureThreshold: 1) for quick failure detection once the worker is operational. This pattern separates startup concerns from operational health monitoring in GPU-heavy workloads.
Learnt from: biswapanda
PR: ai-dynamo/dynamo#1890
File: examples/vllm/deploy/agg.yaml:63-70
Timestamp: 2025-07-14T23:01:16.218Z
Learning: In vLLM worker deployments, grep-based log checks for "VllmWorker.*has been initialized" are appropriate for readiness probes to verify worker startup, but should not be used for liveness probes which need to detect ongoing worker health.
📚 Learning: in vllm worker deployments, startup probes (with longer periods and higher failure thresholds like p...
Learnt from: nnshah1
PR: ai-dynamo/dynamo#2124
File: components/backends/vllm/deploy/disagg.yaml:54-60
Timestamp: 2025-07-25T22:34:11.384Z
Learning: In vLLM worker deployments, startup probes (with longer periods and higher failure thresholds like periodSeconds: 10, failureThreshold: 60) are used to handle the slow model loading startup phase, while liveness probes are intentionally kept aggressive (periodSeconds: 5, failureThreshold: 1) for quick failure detection once the worker is operational. This pattern separates startup concerns from operational health monitoring in GPU-heavy workloads.

Applied to files:

  • components/backends/sglang/deploy/agg_router.yaml
  • components/backends/vllm/deploy/disagg_planner.yaml
  • components/backends/vllm/deploy/disagg.yaml
  • components/backends/sglang/deploy/agg.yaml
  • components/backends/sglang/deploy/disagg.yaml
  • components/backends/vllm/deploy/disagg_router.yaml
  • components/backends/vllm/deploy/agg_router.yaml
  • components/backends/vllm/deploy/agg.yaml
📚 Learning: in components/backends/sglang/deploy/agg_router.yaml, the clear_namespace command is intentionally d...
Learnt from: biswapanda
PR: ai-dynamo/dynamo#2137
File: components/backends/sglang/deploy/agg_router.yaml:0-0
Timestamp: 2025-07-28T17:00:07.968Z
Learning: In components/backends/sglang/deploy/agg_router.yaml, the clear_namespace command is intentionally designed to block the router from starting if it fails (using &&). This is a deliberate design decision where namespace clearing is a critical prerequisite and the router should not start with an uncleared namespace.

Applied to files:

  • components/backends/sglang/deploy/agg_router.yaml
  • components/backends/vllm/deploy/disagg_router.yaml
  • components/backends/vllm/deploy/agg_router.yaml
📚 Learning: in vllm worker deployments, grep-based log checks for "vllmworker.*has been initialized" are appropr...
Learnt from: biswapanda
PR: ai-dynamo/dynamo#1890
File: examples/vllm/deploy/agg.yaml:63-70
Timestamp: 2025-07-14T23:01:16.218Z
Learning: In vLLM worker deployments, grep-based log checks for "VllmWorker.*has been initialized" are appropriate for readiness probes to verify worker startup, but should not be used for liveness probes which need to detect ongoing worker health.

Applied to files:

  • components/backends/vllm/deploy/disagg_planner.yaml
  • components/backends/vllm/deploy/disagg.yaml
  • components/backends/vllm/deploy/disagg_router.yaml
  • components/backends/vllm/deploy/agg_router.yaml
  • components/backends/vllm/deploy/agg.yaml
📚 Learning: the stopsignal field under lifecycle in dynamocomponentdeployment crds is autogenerated due to kuber...
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#2012
File: deploy/cloud/helm/crds/templates/nvidia.com_dynamocomponentdeployments.yaml:1178-1180
Timestamp: 2025-07-18T16:05:05.534Z
Learning: The stopSignal field under lifecycle in DynamoComponentDeployment CRDs is autogenerated due to Kubernetes library upgrades (k8s.io/api and k8s.io/apimachinery from v0.32.3 to v0.33.1), not a manual design decision by the user.

Applied to files:

  • components/backends/sglang/deploy/disagg.yaml
  • components/backends/vllm/deploy/agg.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Build and Test - vllm
  • GitHub Check: pre-merge-rust (.)
🔇 Additional comments (3)
components/backends/sglang/deploy/disagg.yaml (1)

15-18: Possible premature restarts of the Frontend container

The new probe kills the pod after three 5-second failures (≈15 s). In GPU-heavy clusters the container often competes for CPU at boot; we’ve previously left 60 s before the first probe to avoid churn.

Please verify average start-up time in staging and, if necessary, protect with a startupProbe or raise failureThreshold back to ≥5.

components/backends/vllm/deploy/agg.yaml (2)

62-65: Timeout lowered to 5 s – ensure /health can answer under GPU load

The readiness endpoint occasionally runs model warm-up logic; confirm sub-5 s response under max-batch test or keep the former 30 s timeout.


91-94: Startup probe tweak LGTM

Adding initialDelaySeconds and reducing timeout is consistent with other deployments and keeps the probe lightweight.

@atchernych atchernych enabled auto-merge (squash) August 5, 2025 02:26
@ishandhanani ishandhanani changed the title fix: Adjust frontEnd thrasholds fix: Adjust frontEnd thresholds Aug 5, 2025
Copy link
Contributor

@biswapanda biswapanda left a comment

Choose a reason for hiding this comment

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

Lgtm

@atchernych atchernych merged commit 78ffe3d into main Aug 5, 2025
14 of 16 checks passed
@atchernych atchernych deleted the 5425651-ready branch August 5, 2025 03:47
biswapanda pushed a commit that referenced this pull request Aug 5, 2025
jain-ria pushed a commit that referenced this pull request Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants