Repository navigation
feat(runtime): tolerate response plane mismatches; TLS stays on tcp; Velo 0.22.1 - #17885
Conversation
✅ Dynamo PR CI passed — run 43342865660 (attempt 1) on
|
7e1fc9f to
c1297ad
Compare
c1297ad to
31f3666
Compare
|
/ok to test 31f3666 |
|
No actionable comments were generated in the recent review. WalkthroughPython configuration now leaves the response plane unset by default. The Rust runtime resolves the effective plane, falls back from Velo to TCP when TCP TLS settings are present, and directs worker responses over the frontend-advertised plane. The Python binding exposes the effective response plane. ChangesResponse Plane Selection and Delivery
Estimated code review effort: 3 (Moderate) | ~30 minutes Severity of issue fixed: Medium Merge Risk:
|
… unset Velo has no TLS, so a Velo runtime refuses to start while DYN_TCP_TLS_* is set. Once Velo becomes the default response plane, every TLS deployment that never set DYN_RESPONSE_PLANE would fail at startup. Resolve the default in one place in Rust: an explicit value wins; when it is unset, a Velo default gives way to tcp while any DYN_TCP_TLS_* setting is present. The default stays tcp in this change, so behaviour is unchanged until the default flips. Python launchers pinned "tcp" explicitly and wrote it back to the environment, so Rust never saw an unset value. They now default to None and leave the choice to Rust. Triton, which relied on the create_runtime default, now honours DYN_RESPONSE_PLANE. Part of #16809. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: jthomson04 <[email protected]>
…_PLANE The test's delenv recorded nothing when the variable was unset, so the "velo" that validate() exported survived teardown. Later tests in the same process then started Velo, and the cancellation tests failed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: jthomson04 <[email protected]>
Velo has no TLS. A runtime that selected Velo refused to start while any DYN_TCP_TLS_* setting was present, and the earlier commit only fell back to tcp when the plane was unset and the default was Velo. Fall back in every case instead: a Velo selection, from DYN_RESPONSE_PLANE, a flag or an explicit DistributedConfig, runs on tcp while TLS is configured, with one warning naming the settings. The refusal stays in the Velo service for a worker with TLS settings that a frontend asks for Velo. Part of #16809. Co-Authored-By: Claude Fable 5.2 <[email protected]> Signed-off-by: jthomson04 <[email protected]>
Velo 0.22 picks stream anchor ids at random (ai-dynamo/velo#159), so a peer can no longer attach to another request's response stream by guessing its handle. 0.22.1 adds fixes for rendezvous slot freeing, peer registration and UCX teardown. 0.22 adds two opt-in AutoFlush conditions, on_complete and at_bytes. Both stay off, so response batching is unchanged. 0.22.1 deprecates AnchorManager access and Velo::graceful_shutdown; the anchor is now created through Velo, and the test calls Velo::shutdown. Part of #16809. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: jthomson04 <[email protected]>
A worker failed any request whose response plane differed from its own, and the frontend quarantined it for that. With different defaults on each side, as in a rolling upgrade to a Velo default, every request between an old and a new pod would fail. The worker already builds the publisher for the plane the frontend advertises, so it now answers on that plane and logs one warning per process instead of failing the request. Part of #16809. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: jthomson04 <[email protected]>
With --response-plane unset, dynamo_args.response_plane is None, so the drain checks that compare it with "tcp" would turn manual drain off. DistributedRuntime now exposes the plane it resolved (default and TLS fallback applied), and the SGLang worker records it after creating the runtime. Part of #16809. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: jthomson04 <[email protected]>
Part of #16809. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: jthomson04 <[email protected]>
31f3666 to
c620218
Compare
|
/ok to test c620218 |
Overview
Prepares for making Velo the default response plane in 1.9 (#16809). The default stays tcp; this PR changes what happens when frontend and worker disagree, and when Velo meets TLS. It lands in 1.8 so a 1.8 → 1.9 rolling upgrade works with no config change.
DYN_TCP_TLS_*setting was present; it now runs on tcp and logs one warning. The operator injects those settings into every DGD container when platform TLS is on, so TLS deployments keep working under a Velo default.--response-plane,WorkerConfig,create_runtime(Triton included) and the TRT-LLM snapshot path default toNoneinstead of"tcp", so the Rust default applies. A later flip is then one line.on_completeandat_bytesflush conditions stay off, so batching is unchanged.Key Changes
push_handler.rs: the mismatch check becomes a one-time warning;generate_and_publishtakes the plane in use for its error messages.network.rs,distributed.rs:ResponsePlaneMode::tcp_under_tls()turns a Velo selection into tcp while TLS is configured, forDYN_RESPONSE_PLANEand for an explicitDistributedConfig.response_plane.velo_response.rs: the startup refusal stays for one case, a worker with TLS settings that a frontend asks for Velo. Two calls move off APIs that 0.22.1 deprecates.dynamo_args.response_planewith"tcp", which theNonedefault would break.DistributedRuntime.response_planenow exposes the plane the runtime resolved, and the worker records it.deprecations.mdx.Validation
velo, no TLSvelo(flag, env or explicit config), TLS setDYN_RESPONSE_PLANE=velocreate_runtimepinned"tcp")velo_worker_answers_a_tcp_frontendsends a tcp request to a Velo-configured ingress and checks the chunk arrives over tcp. It fails on main with the mismatch error.velo_gives_way_to_tcp_while_tls_is_setanddistributed_runtime_uses_tcp_for_velo_under_tlscover the TLS fallback.cargo test -p dynamo-runtime --lib, theworker_removal_cancellation,response_stream_establish_timeoutandingress_duplicatesintegration tests, clippy fordynamo-runtime(with and withoutvelo-ucx) and the Python bindings, and 195 Python config, worker, SGLang drain and TRT-LLM snapshot tests.Known limits: a worker serving Velo without Velo configured doesn't add the Velo metrics to its registry. A tcp worker with SGLang drain enabled that a Velo frontend reaches counts a request done when its publisher returns; Velo still delivers the last batch during shutdown.
Issues and Ongoing Work
Pull Request Checklist
/pr-checklistskill.🤖 Generated with Claude Code