Skip to content

Conversation

@dangra
Copy link
Member

@dangra dangra commented Nov 5, 2025

…egion failover

@dangra dangra merged commit a8f268d into master Nov 5, 2025
7 checks passed
@dangra dangra deleted the x-region branch November 5, 2025 05:28
jcrapuchettes added a commit to RedBalloon-work/postgres-flex that referenced this pull request Nov 17, 2025
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants