Skip to content

Start dynamic worker ports above Ray's worker range - #2501

Merged
fzyzcjy merged 1 commit into
mainfrom
tom/refactor-miles/op13-173
Sep 4, 2026
Merged

fzyzcjy merged 1 commit into
mainfrom
tom/refactor-miles/op13-173

Conversation

@fzyzcjy

@fzyzcjy fzyzcjy commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-173 branch from 63ab0dd to d459c1b Compare August 13, 2026 03:25
@fzyzcjy fzyzcjy changed the title Keep dynamic worker ports outside the Ray worker range Start dynamic worker ports above Ray's worker range Aug 13, 2026
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-173 branch from d459c1b to 6b76e91 Compare August 13, 2026 06:00
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-65 branch from c3e0578 to c7ddf9f Compare August 13, 2026 06:00
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-173 branch from 6b76e91 to 9782182 Compare August 13, 2026 06:39
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-65 branch 2 times, most recently from 96d339b to 899b244 Compare August 14, 2026 04:46
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-173 branch from 9782182 to 6ae57e1 Compare August 14, 2026 04:46

logger = logging.getLogger(__name__)

_DYNAMIC_PORT_START = 20000

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Avoid assuming the default Ray worker-port ceiling

MILES_SCRIPT_EXTERNAL_RAY=1 accepts existing clusters whose worker range can overlap 20000+; the Ray Slurm example uses 20002-29999. Both Ray and this allocator probe before the eventual bind, so concurrent startup can select the same port and fail a rollout cell. Please make the Miles range configurable and validate it is disjoint from the external Ray min/max/list, or otherwise reserve non-overlapping ranges. #2473 only bounds/wraps the scan, so this remains unresolved at #2176 and checked tip #2649.

@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-173 branch from 6ae57e1 to 5a2a022 Compare August 29, 2026 12:38
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-65 branch from 899b244 to 65180f3 Compare August 29, 2026 12:38
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-173 branch 2 times, most recently from f9c56b2 to 175a96a Compare September 1, 2026 10:03
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-65 branch from 5a87733 to 33c2eee Compare September 1, 2026 10:03
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-173 branch from 175a96a to 69e41f2 Compare September 1, 2026 10:35
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-65 branch 2 times, most recently from 9d411fa to c540d44 Compare September 1, 2026 14:33
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-173 branch from 69e41f2 to 1b05d26 Compare September 1, 2026 14:33
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-65 branch from c540d44 to 515bdf2 Compare September 3, 2026 06:02
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-173 branch 2 times, most recently from 0d676a8 to 4021d13 Compare September 3, 2026 06:21
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-173 branch from 4021d13 to 401aa18 Compare September 3, 2026 06:33
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-65 branch from 075ec97 to 1d1312b Compare September 3, 2026 06:33
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-173 branch 5 times, most recently from b989169 to b48a70e Compare September 4, 2026 03:28
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-65 branch from 86e3ac3 to c426c6a Compare September 4, 2026 05:49
Base automatically changed from tom/refactor-miles/op13-65 to main September 4, 2026 05:49
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-173 branch from b48a70e to dba7769 Compare September 4, 2026 05:49
@fzyzcjy
fzyzcjy merged commit 7cf8a8e into main Sep 4, 2026
1 of 9 checks passed
@fzyzcjy
fzyzcjy deleted the tom/refactor-miles/op13-173 branch September 4, 2026 05:49
@fzyzcjy
fzyzcjy restored the tom/refactor-miles/op13-173 branch September 4, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants