Commit f3de2e5
Restore model probe for service routers (#4322)
Since #4270, a router replica of a service with `model` and no
`probes` was probed with `GET /health` instead of the chat completions
request. The latter deadlocked: the router only answers it once
workers are registered, and the worker sync skipped routers that were
not ready. #4313 dropped the readiness check from the sync, so this
deadlock is gone.
`/health` passes before the router has any workers. In a rolling
deployment, the replacement router was considered ready, and the old
one was scaled down, before the replacement could serve requests. Now
that #4320 syncs workers with every running router, the replacement
passes the chat completions probe once it has workers.
Workers behind a router still get no default probe, as they may not
serve HTTP at all (gRPC workers).
With a Dynamo router, a router rolling deployment now waits for the
replacement indefinitely instead of scaling down the old router, as
workers stay attached to the old router's etcd/NATS. Such deployments
were broken before as well and are to be fixed separately.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 6e36024 commit f3de2e5
3 files changed
Lines changed: 17 additions & 33 deletions
File tree
- src
- dstack/_internal
- core/models
- server/services/jobs/configurators
- tests/_internal/server/services/jobs/configurators
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
| |||
Lines changed: 11 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
513 | 512 | | |
514 | 513 | | |
515 | 514 | | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
527 | 526 | | |
528 | 527 | | |
529 | 528 | | |
| |||
598 | 597 | | |
599 | 598 | | |
600 | 599 | | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | 600 | | |
615 | 601 | | |
616 | 602 | | |
| |||
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
132 | | - | |
133 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
| |||
0 commit comments