Commit 6219a85
Fix HAProxy duplicate server names in backend configuration
PR fly-apps#297 introduced a bug by using the same prefix "pg" for both
server-template lines, causing duplicate server names (pg1-pg10).
Changed second template to use "alt" prefix for alternative region servers:
- server-template pg: Primary region servers (pg1-pg10)
- server-template alt: Alternative region servers (alt1-alt10)
This maintains the performance optimization of checking PRIMARY_REGION
first while fixing the "another server named 'pgX' was already defined" error.
Fixes PITR restore failures where HAProxy fails to start.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 86939f9 commit 6219a85
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
0 commit comments