Commit 7f0d9e1
fix(consul-postgres-ha): drop spurious 's' suffix from gateway URLs to plain-HTTP backends
The dstack gateway uses two different URL conventions:
<app-id>-<port>.<gw> gateway terminates TLS, forwards plain HTTP
<app-id>-<port>s.<gw> gateway TLS pass-through, backend speaks TLS
Consul's HTTP API binds plain HTTP on 127.0.0.1, so the consul_ui
output and rollout.sh's CONSUL_BASE need the no-'s' form. The 's'
form silently fails permanently — early errors look like 'gateway
not yet routing,' which trivially mistakes a config bug for a
provisioning delay (this is what made us think the gateway took 6+
minutes to come up; it never would have, with the wrong suffix).
Also adds a 'dstack gateway URL convention' note to README.md so
future readers don't fall into the same trap.
Empirically confirmed via a minimal reproducer (separate worktree):
trivial nginx CVMs reach 200 in 84-112s end-to-end with the correct
suffix; the wrong suffix never reaches 200.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d76f2dd commit 7f0d9e1
3 files changed
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
62 | 77 | | |
63 | 78 | | |
64 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
274 | 279 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
0 commit comments