Repository navigation
[Serve] Route multiplexed ingress through a Serve request router - #66588
Conversation
97a9b72 to
80b844d
Compare
Signed-off-by: Seiji Eicher <[email protected]>
80b844d to
71fb807
Compare
71fb807 to
47e13e4
Compare
45a83ef to
1d1b368
Compare
Signed-off-by: Seiji Eicher <[email protected]>
Signed-off-by: Seiji Eicher <[email protected]>
1d1b368 to
83cdcf6
Compare
There was a problem hiding this comment.
Code Review
This pull request enables routing HAProxy ingress selection through the deployment's Serve router when model multiplexing is used or when a custom request router is configured, removing previous limitations and updating corresponding tests. The review feedback suggests a performance and correctness improvement in ingress_request_router.py to pass request.headers directly to session_id_from_headers instead of casting it to a dictionary, which avoids an unnecessary copy and potential case-sensitivity issues.
Signed-off-by: Seiji Eicher <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 242df34. Configure here.
Signed-off-by: Seiji Eicher <[email protected]>
Signed-off-by: Seiji Eicher <[email protected]>
Signed-off-by: Seiji Eicher <[email protected]>
Signed-off-by: Seiji Eicher <[email protected]>
Signed-off-by: Seiji Eicher <[email protected]>
Signed-off-by: Seiji Eicher <[email protected]>
harshit-anyscale
left a comment
There was a problem hiding this comment.
changes lgtm!
can we also add a test in serve-validation for the multiplexed ingress?
|
Thanks @harshit-anyscale! Created ray-project/serve_workloads#39 |

Summary
Wire a specialized
MultiplexedIngressRequestRouterinto HAProxy applications whose ingress uses@serve.multiplexed. The router passes the model ID and session metadata through the ingress deployment handle, selects a replica with the requested model loaded, and returns that replica to HAProxy.User-defined ingress routing remains explicit. Users attach their own ingress request router deployment that implements
/internal/route. A customrequest_router_configon an HAProxy ingress is rejected when no explicit ingress request router is attached because HAProxy would otherwise bypass it. An explicitly attached router always takes priority over automatic multiplexing wiring.The multiplexing router uses
max_ongoing_requests=1000so its default deployment limit does not throttle ingress replica selection.Tests
Duplicate search
No open duplicate found. #65678 and #65679 add request-router primitives but do not wire multiplexed ingress routing into HAProxy.
AI assistance
AI assistance was used. The changes require submitter review before merge.