nice-bear-83533
03/18/2026, 2:36 PMtall-airline-16756
03/18/2026, 2:36 PMtall-airline-16756
03/18/2026, 2:37 PMdrain_timeout, terminationGracePeriodSeconds, or similar termination settings? If self‑hosted, please share those config values.
8. Do you see any health-check failures (HTTP 503) or readiness probe failures around the time of deploy?
9. Which SDK and server/agent versions are you using?
10. Can you reproduce the issue reliably? If yes, what are the exact steps to reproduce?
Why I’m asking these:
• When an agent is updated, servers enter a draining state that stops new job assignments while allowing active jobs to complete. Drain timeouts and readiness/health probes determine when traffic is routed to new instances. If the new instance isn’t fully ready or routing hasn’t stabilized, new sessions can fail immediately. I need logs, timestamps, and config to tell whether this is normal draining/health-check timing or an unexpected readiness/routing gap.
What I can do next once you reply:
• If you provide logs/timestamps and config, I’ll look for SIGTERM/drain events, health-check responses, and routing behavior around the deploy time to determine the root cause.
• If it looks like a readiness gap on new instances, I’ll suggest concrete mitigations (for example, increasing termination/rollout grace periods or ensuring readiness checks succeed before traffic is routed).
• If it looks like something else (routing instability, or an agent not reporting ready), I’ll point to specific remedial steps you can apply.
If you prefer, start by sharing whether you’re on LiveKit Cloud or self‑hosted and one example timestamp + the relevant client/server log snippets — that’s usually enough to get a quick diagnosis.
Sources: Deploy and scale agents on LiveKit Cloud | LiveKit | Agents on LiveKit Cloud | Deploy voice AI on global infrastructure | LiveKi... | Server options | LiveKit Documentation | Server startup modes | LiveKit Documentation | Self-hosted deployments | LiveKit Documentation, with interactive elementsnice-bear-83533
03/18/2026, 2:37 PMtall-airline-16756
03/18/2026, 2:38 PMdrain_timeout in your agent config or K8s terminationGracePeriodSeconds). If none, say “default”.
8. Whether this is reproducible every deploy and, if so, the reproducible steps.
Why these details matter:
• SIGTERM/drain and health-check entries will show whether the old instance was draining and whether the new instance marked itself ready before traffic routed.
• Client disconnect messages show whether the session was rejected at connect time (routing/readiness) or disconnected after being accepted (server-side shutdown).
• Knowing instance count and rollout type shows whether traffic may briefly route to an instance that’s not fully initialized.
If you’d like a quick test you can run while gathering the above:
• Try a deploy during a low-traffic window and tail the agent logs plus the client log during the 30s window around deploy. Look for the new instance returning a 200 on / (healthy) before it receives the first session. If the new instance is not returning 200 when it receives traffic, that points to a readiness timing issue.
Next steps after you share the info:
• I’ll check logs for drain health checks and readiness timing and tell you whether this is expected behavior. If it looks like a readiness/routing gap, I’ll recommend concrete mitigations (for example increasing rollout/termination grace periods or ensuring the health endpoint returns 200 only after initialization completes).
Send the example timestamp + the relevant log snippets and client error text and I’ll analyze them.
, with interactive elements