Repository navigation
[Docs] Describe routers without a CPU-only node - #4515
Conversation
| </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`. |
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
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>
b7884b8 to
8579fca
Compare
|
|
||
| > 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`. With SMG, pass that worker to the router with `--worker-urls`, since `dstack` registers | ||
| > only the workers of other replica groups. |
There was a problem hiding this comment.
@Bihan perhaps you could rewrite it to make more specific?
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