Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
a441aaf8
Unverified
Commit
a441aaf8
authored
Mar 16, 2026
by
atchernych
Committed by
GitHub
Mar 17, 2026
Browse files
feat: Enable EPP worker discovery mode (#6592)
Signed-off-by:
Anna Tchernych
<
atchernych@nvidia.com
>
parent
b77f9765
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
tests/router/test_router_e2e_with_mockers.py
tests/router/test_router_e2e_with_mockers.py
+12
-5
No files found.
tests/router/test_router_e2e_with_mockers.py
View file @
a441aaf8
...
@@ -403,12 +403,18 @@ class MockerProcess:
...
@@ -403,12 +403,18 @@ class MockerProcess:
f
"(known_ids=
{
known_ids
}
)"
f
"(known_ids=
{
known_ids
}
)"
)
)
# Register each dp_rank endpoint with the standalone indexer
# Register each dp_rank endpoint with the standalone indexer.
# The mocker binds on base_port + dp_rank (contiguous), so we must
# use the same formula here rather than indexing into the allocated
# port list, which may contain gaps when intervening ports are busy.
zmq_addresses
=
{}
zmq_addresses
=
{}
register_url
=
f
"
{
self
.
standalone_indexer_url
}
/register"
register_url
=
f
"
{
self
.
standalone_indexer_url
}
/register"
replay_base
=
(
self
.
_zmq_replay_ports
[
i
*
dp_size
]
if
self
.
_zmq_replay_ports
else
None
)
async
with
aiohttp
.
ClientSession
()
as
session
:
async
with
aiohttp
.
ClientSession
()
as
session
:
for
dp_rank
in
range
(
dp_size
):
for
dp_rank
in
range
(
dp_size
):
port
=
self
.
_zmq_kv_events_ports
[
i
*
dp_size
+
dp_rank
]
port
=
base_port
+
dp_rank
endpoint
=
f
"tcp://127.0.0.1:
{
port
}
"
endpoint
=
f
"tcp://127.0.0.1:
{
port
}
"
zmq_addresses
[
dp_rank
]
=
endpoint
zmq_addresses
[
dp_rank
]
=
endpoint
...
@@ -421,9 +427,10 @@ class MockerProcess:
...
@@ -421,9 +427,10 @@ class MockerProcess:
"block_size"
,
BLOCK_SIZE
"block_size"
,
BLOCK_SIZE
),
),
}
}
if
self
.
_zmq_replay_ports
:
if
replay_base
is
not
None
:
replay_port
=
self
.
_zmq_replay_ports
[
i
*
dp_size
+
dp_rank
]
payload
[
payload
[
"replay_endpoint"
]
=
f
"tcp://127.0.0.1:
{
replay_port
}
"
"replay_endpoint"
]
=
f
"tcp://127.0.0.1:
{
replay_base
+
dp_rank
}
"
async
with
session
.
post
(
register_url
,
json
=
payload
)
as
resp
:
async
with
session
.
post
(
register_url
,
json
=
payload
)
as
resp
:
if
resp
.
status
!=
201
:
if
resp
.
status
!=
201
:
body
=
await
resp
.
text
()
body
=
await
resp
.
text
()
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment