Skip to content

[Docs] Describe routers without a CPU-only node - #4515

Open
peterschmidt85 wants to merge 2 commits into
masterfrom
pr_docs_router_in_one_replica
Open

peterschmidt85 wants to merge 2 commits into
masterfrom
pr_docs_router_in_one_replica

Conversation

@peterschmidt85

@peterschmidt85 peterschmidt85 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Adds one note to the Router section of the services page, for a fleet that has no dedicated CPU-only node:

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.

Until now the section showed the router only as a replica group with CPU-only resources.

Not tested. A service with router set 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) once dstack registers the workers of the other groups.

🤖 Generated with Claude Code

@peterschmidt85
peterschmidt85 requested a review from Bihan November 24, 2026 12:08
Comment thread mkdocs/docs/concepts/services.md Outdated
</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`.

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.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

Andrey Cheptsov and others added 2 commits November 24, 2026 14:40
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
peterschmidt85 force-pushed the pr_docs_router_in_one_replica branch from b7884b8 to 8579fca Compare November 24, 2026 13:41
@peterschmidt85
peterschmidt85 requested a review from Bihan November 24, 2026 20:28
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