#15273·dynamo

[BUG]: Worker crash-loop on large models — canary health-check 3s timeout kills fully-loaded workers (v1.5.0)

Author: walkossCreated Sep 25, 2026Updated Sep 30, 2026
Labelsbugdynamo-runtimedynamo-llmdeployment::k8sQA BugDynamo 1.5.0fault-tolerance

[BUG]: Worker crash-loop on large models — canary health-check 3s timeout kills fully-loaded workers (v1.5.0)

Describe the Bug

Since v1.5.0, the operator enables canary health checks on every worker (DYN_HEALTH_CHECK_ENABLED=true for runtime ≥ 1.5.0, gated by the CanaryHealthChecks runtime feature). The runtime then requires a canary generate request to complete within 3 seconds (DEFAULT_HEALTH_CHECK_REQUEST_TIMEOUT_SECS = 3, lib/runtime/src/config.rs:31) before the /live endpoint returns 200.

For large models (27B+ parameters, fp8 quantization, long context windows), the first generate after engine startup takes far longer than 3 seconds — CUDA graphs are cold, KV cache was just allocated, and no warmup batches have run. The canary times out, the endpoint stays NotReady, /live returns 503, and the liveness probe (5s period × 3 failures = 15s budget) kills the fully-loaded worker. The container restarts, reloads the model from scratch (10-15 minutes), the canary fails again, and the process repeats — an infinite crash loop.

Steps to Reproduce

  1. Deploy a DGD with a large model (e.g. 27B fp8, 262k context) on vLLM as the runtime, using a v1.5.0+ operator and runtime image
  2. The model loads (weights download, CUDA graph capture) — this takes several minutes
  3. The first canary health check fires (canary_wait_time_secs=10 after "no activity detected")
  4. The first generate on the cold engine exceeds the 3-second timeout
  5. /live stays at 503; once the startup probe eventually passes and liveness takes over, the worker is killed within 15 seconds
  6. Container restarts → model reloads → canary fails again → crash loop

Representative log sequence from a crashing worker:

# runtime starts
dynamo runtime configuration: ... starting_health_status=NotReady,
  health_check_enabled=true, canary_wait_time_secs=10, health_check_request_timeout_secs=3

# engine finishes loading (minutes later)
(EngineCore pid=456) Capturing CUDA graphs: 100%|██████████| 11/11 [00:00<00:00]

# canary fires and times out
WARN dynamo_runtime::health_check: Health check timeout for generate

# liveness kills the fully loaded worker
Container main failed liveness probe, will be restarted

# graceful shutdown of a fully-loaded engine
[shutdown] MPClient: stopping engine manager
[shutdown] Process manager: force killing remaining process EngineCore pid 457

Expected Behavior

The canary health check should not kill workers that have successfully loaded their model. Options:

  1. Raise the default timeout — DEFAULT_HEALTH_CHECK_REQUEST_TIMEOUT_SECS from 3s to 30-60s (a first generate on a cold large model can take 10-60+ seconds)
  2. Let the operator respect a user-set timeout — the operator force-appends DYN_HEALTH_CHECK_ENABLED=true (unconditional env append, so any user-set value for that key is overridden), but it does not set DYN_HEALTH_CHECK_REQUEST_TIMEOUT. Users can work around via that env var — but only if they know it exists after already crashlooping
  3. Delay the canary until the engine signals readiness — rather than firing a synthetic generate against a cold engine, wait for the engine to report that it has completed warmup / is ready to serve
  4. Make the liveness probe not treat a canary timeout as process-dead — the worker is alive and loaded; only its health payload is "not ready." Liveness (process alive) and readiness (canary passed) should be distinct

Actual Behavior

  • Workers running large models crash-loop: they load the model, the canary generate exceeds 3s, liveness kills them, they reload, repeat indefinitely
  • Workers running small models (where the first generate fits in 3s) work fine — making this model-size-dependent and hard to reproduce on small test models
  • The startup probe has a generous 2-hour budget (720 × 10s) that correctly accounts for slow model loading, but the canary's 3s timeout and the liveness probe's 15s budget contradict it

Environment

  • ai-dynamo v1.5.0 (upstream release, no local patches touching health checks, operator, or probes)
  • Kubernetes, DGD with vLLM backend
  • Model: 27B parameters, fp8 quantization, 262144-token context
  • The operator's rendered probes for the worker:
    • Startup: /live, period 10s, timeout 5s, failureThreshold 720 (2h)
    • Liveness: /live, period 5s, timeout 4s, failureThreshold 3 (15s)
  • Runtime config as logged by the worker:
    starting_health_status=NotReady, health_check_enabled=true,
    canary_wait_time_secs=10, health_check_request_timeout_secs=3

Additional Context

Relevant source locations (v1.5.0):

Location What it does
deploy/operator/internal/features/runtime/gates.go:15-18 CanaryHealthChecks gate, MinRuntimeVersion: 1.5.0
deploy/operator/internal/dynamo/component_worker.go:51-61 Operator renders liveness probe (5s × 3 = 15s)
deploy/operator/internal/dynamo/component_worker.go:78-88 Operator renders startup probe (10s × 720 = 2h)
deploy/operator/internal/dynamo/component_worker.go:90-101 Operator unconditionally appends DYN_HEALTH_CHECK_ENABLED=true
lib/runtime/src/config.rs:29-31 DEFAULT_CANARY_WAIT_TIME_SECS = 10, DEFAULT_HEALTH_CHECK_REQUEST_TIMEOUT_SECS = 3
lib/runtime/src/health_check.rs:195 "Health check task started" + canary generate loop
lib/runtime/src/health_check.rs:285 "Health check timeout for generate" — the WARN that precedes the kill

Why this matters for large-model users: NVIDIA's own v1.5.0 recipes include Qwen3.8-2.4T-A95B, DeepSeek-V4, GLM-5.3-Flash on B200/GB200 — all large models that would exceed a 3s cold-start canary. The 3s default effectively makes v1.5.0 canary health checks incompatible with the models the platform is designed to serve.

The interplay diagram:

[Model loads: 5-15 min]
  /live = 503 (endpoint NotReady, canary hasn't fired yet)
  Startup probe: failing but 2h budget → holds ✅

[Engine ready, canary fires at +10s]
  First generate on cold engine → takes 10-60s
  Times out at 3s ❌ → /live still 503
  Startup probe: still within 2h budget → holds ✅

[Eventually /live goes 200 briefly → startup probe PASSES]
  Liveness probe takes over (15s budget)
  Next canary also takes >3s → /live flips to 503
  Liveness kills the fully loaded worker in 15s ❌

[Container restarts → model reloads → cycle repeats]
  → INFINITE CRASH LOOP

Workaround (for anyone hitting this now): set DYN_HEALTH_CHECK_REQUEST_TIMEOUT=60 (or higher) in the worker pod's env. The operator does not set this variable, so the user's value takes effect. This gives the canary enough budget to complete on a cold large-model engine.