Repository navigation
[Docs] Describe routers without a CPU-only node - #4515
Open
peterschmidt85 wants to merge 2 commits into
Open
peterschmidt85 wants to merge 2 commits into
peterschmidt85 wants to merge 2 commits into
Conversation
Bihan
reviewed
Nov 24, 2026
| </div> | ||
|
|
||
| > If you don't have a dedicated CPU-only node in the fleet, set `router` on a GPU replica group and launch both the router | ||
| > and a worker in its `commands`. |
Collaborator
There was a problem hiding this comment.
This is partially correct. If the router and a worker run in the same replica group, the router must be launched with an additional --worker-urls <worker_url> argument (e.g. --worker-urls http://localhost:), because dstack does not register workers from the router's own replica group with the router. See: https://github.com/Bihan/dstack/blob/78ad042e2b5c3ef2705cd1e482273bbf36f0a461/src/dstack/_internal/server/services/runs/router_worker_sync.py#L269
Contributor
Author
There was a problem hiding this comment.
Right, thanks. The sync skips the router's own group, so the note now says that with SMG that worker is passed with --worker-urls. Dynamo workers register through etcd, so nothing changes there.
The Router section showed the router only as a replica group with CPU-only `resources`. A note now says what to do in a fleet without a dedicated CPU-only node: set `router` on a GPU replica group and launch both the router and a worker in its `commands`. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
dstack registers only the workers of other replica groups with the router, so a worker launched in the router's own group has to be passed to it with --worker-urls. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
peterschmidt85
force-pushed
the
pr_docs_router_in_one_replica
branch
from
November 24, 2026 13:41
b7884b8 to
8579fca
Compare
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 one note to the Router section of the services page, for a fleet that has no dedicated CPU-only node:
Until now the section showed the router only as a replica group with CPU-only
resources.Not tested. A service with
routerset on a GPU replica group hasn't been run. To confirm in review: the router keeps the worker that its own replica starts (passed to it with--worker-urls) oncedstackregisters the workers of the other groups.🤖 Generated with Claude Code