Commit f8ae0ab
fix(consul-postgres-ha): pass --base-id to each Envoy to avoid hot-restart socket clash
Both Envoys (webdemo + postgres) on a worker default to base-id=0 for
their hot-restart Unix domain socket. The second one to start hits
errno=98 (EADDRINUSE) and exits in a loop. Fixed by passing
`--base-id 1` (webdemo) and `--base-id 2` (postgres). Distinct base
IDs use distinct domain socket paths.
Visible symptom before this fix: ps showed only one envoy process
running on workers (whichever started first). The other's supervise
loop spun on `unable to bind domain socket with base_id=0, id=0,
errno=98`. postgres-master upstream listener (127.10.0.20:5432) was
never bound, so Patroni replicas got "connection refused" on
pg_basebackup.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 57705ad commit f8ae0ab
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
| |||
255 | 258 | | |
256 | 259 | | |
257 | 260 | | |
258 | | - | |
| 261 | + | |
| 262 | + | |
259 | 263 | | |
260 | 264 | | |
261 | 265 | | |
| |||
0 commit comments