Repository navigation
feat: Python decorator dynamo_worker takes optional static parameter without etcd - #494
Merged
Merged
Conversation
grahamking
requested review from
GuanLuo,
PeaBrane,
alec-flowers,
biswapanda,
hhzhang16,
hutm,
ishandhanani,
julienmancuso,
kkranen,
mohammedabdulwahhab,
nnshah1,
paulhendricks,
piotrm-nvidia,
ptarasiewiczNV,
rmccorm4,
ryanolson,
sshchoi,
tanmayv25,
tedzhouhk and
tmonty12
as code owners
April 2, 2025 21:56
static parameter without etcd
grahamking
enabled auto-merge (squash)
April 2, 2025 23:16
grahamking
force-pushed
the
gk-static-endpoint
branch
from
April 3, 2025 12:38
f61ce5b to
11804c8
Compare
saturley-hall
approved these changes
Apr 3, 2025
Contributor
|
@grahamking how was the new functionality tested? |
Contributor
Author
Using the |
tanmayv25
reviewed
Apr 3, 2025
dmitry-tokarev-nv
approved these changes
Apr 3, 2025
grahamking
force-pushed
the
gk-static-endpoint
branch
from
April 3, 2025 21:41
3ebeafd to
09bf78d
Compare
tanmayv25
approved these changes
Apr 3, 2025
alec-flowers
reviewed
Apr 3, 2025
alec-flowers
reviewed
Apr 3, 2025
alec-flowers
approved these changes
Apr 4, 2025
Introduce `@dynamo_static_worker` as an alternative to `@dynamo_worker`. Static workers (`dynamo_static_worker`) have a predictable name and etcd is not required. Ee don't do any runtime discovery. This contrasts with the dynamic `dynamo_worker` endpoints we have now, which get a unique random name (based on namespace/component/endpoint), and are discovered by ingress via etcd. Change the hello_world example to use dynamo_static_worker so that it is exercised and demonstrated somewhere. For NIM.
grahamking
force-pushed
the
gk-static-endpoint
branch
from
April 4, 2025 12:49
09bf78d to
ad8f6a4
Compare
kylehh
pushed a commit
to kylehh/dynamo
that referenced
this pull request
Apr 11, 2025
…r without etcd (ai-dynamo#494) Adds `@dynamo_worker(static = True)` to create a static worker which has a predictable name and hence does not require discovery or `etcd` to be running. There can only be a single static worker per namespace / component / endpoint trio. This contrasts with the default dynamic `dynamo_worker` endpoints we have now, which get a unique random name (based on namespace/component/endpoint), and are discovered by ingress components using etcd. Also change the hello_world example to use `dynamo_worker(static = True)` so that it is exercised and demonstrated somewhere. For NIM.
This branch was previously deployed
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.
Adds
@dynamo_worker(static = True)to create a static worker which has a predictable name and hence does not require discovery oretcdto be running. There can only be a single static worker per namespace / component / endpoint trio.This contrasts with the default dynamic
dynamo_workerendpoints we have now, which get a unique random name (based on namespace/component/endpoint), and are discovered by ingress components using etcd.Also change the hello_world example to use
dynamo_worker(static = True)so that it is exercised and demonstrated somewhere.For NIM.