docs: Add HAProxy architecture analysis for EDB PostgreSQL routing#32
Merged
Conversation
Add comprehensive architectural decision record (ADR) for replacing pgBouncer with HAProxy for AAP database connection routing due to AAP/pgBouncer compatibility issues. Changes: - Add haproxy-pgbouncer-architectural-analysis.md: 500+ line ADR covering architecture comparison, design validation, implementation guidance, health check scripts, and trade-off analysis - Update aap-containerized-enterprise-dr-architecture.md: Revise HAProxy configuration, network topology, and inventory files to reflect HAProxy database router pattern - Update .gitignore: Add .pub pattern Key architectural decision: - HAProxy routes AAP containers to PostgreSQL VIP (EFM-managed) - External health check validates writable node via pg_is_in_recovery() - Clean separation: EFM handles DB failover, HAProxy handles routing - Trade-off: Requires +67% max_connections (no pooling) but simpler ops RTO/RPO impact: Failover detection ~25s (well within 5min target) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add comprehensive architectural decision record (ADR) for replacing pgBouncer with HAProxy for AAP database connection routing.
Problem
Solution
New Architecture Pattern:
Clean separation of concerns:
Changes
New Documentation
docs/haproxy-pgbouncer-architectural-analysis.md(500+ lines)pg_is_in_recovery()validation)Updated Documentation
docs/aap-containerized-enterprise-dr-architecture.mdOther
.gitignore: Add.pubpatternKey Architectural Trade-offs
Critical Implementation Requirements
PostgreSQL Resource Increase:
max_connections: 1500 → 2500shared_buffers: 8GB → 12GBHAProxy External Health Check:
pg_is_in_recovery() = false(writable node)Monitoring:
Impact on RTO/RPO
Test Plan
Related Issues
Addresses AAP/pgBouncer compatibility constraints while maintaining EDB PostgreSQL high availability requirements.
🤖 Generated with Claude Code