Repository navigation
[llm] Move ModelExpress default ports out of Ray's worker port range - #67921
Merged
kouroshHakha merged 1 commit intoNov 7, 2026
Merged
kouroshHakha merged 1 commit into
kouroshHakha merged 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the default Model Express (MX) metadata and worker gRPC port bases to 21555 and 22555, respectively, to prevent conflicts with Ray's default worker port range. While the assertions in test_mx_server_envs were updated to reflect these changes, the reviewer correctly pointed out that another test in the same file, test_setup_sets_client_env, still asserts the old default ports and needs to be updated to avoid test failures.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit 328983b. Configure here.
The MX metadata and worker gRPC ports defaulted to 15555 and 16555 plus each worker's GPU index, inside Ray's default worker port range (10002-19999). Any Ray worker process on the node may already listen there, so a replica's MX worker can fail to bind and stop serving as a P2P source. Default to 21555 and 22555 instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Kourosh Hakhamaneshi <[email protected]>
kouroshHakha
force-pushed
the
kourosh/mx-ports-outside-worker-range
branch
from
November 7, 2026 00:34
328983b to
dc6298a
Compare
jeffreywang88
approved these changes
Nov 7, 2026
kouroshHakha
enabled auto-merge (squash)
November 7, 2026 00:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
ModelExpress's metadata and worker gRPC ports default to 15555 and 16555 (plus each worker's GPU index). Both sit inside Ray's default worker port range, 10002–19999, where any Ray worker process may already be listening.
What we hit: two DeepSeek-V4.1-Flash TP4 replicas on one node. One TP rank failed with
Failed to bind to address [::]:16556;ssshowed an idle Ray worker (ray::IDLE) holding the port. That rank never started its MX gRPC server, so the replica could not act as a P2P source, and its publisher retried every second for the full 30-minute timeout.Fix: default to 21555 and 22555 — above Ray's worker range and below the Linux ephemeral range (32768+). The
RAY_MX_*_PORT_BASEoverrides are unchanged.Related issues
Follow-up to #67316.
Additional information
AI assistance was used.
🤖 Generated with Claude Code