Database Replication & Failover:
A three-node PostgreSQL cluster managed by Patroni with etcd coordination. Automatic failover ensures that if the master node fails, one of the replicas is promoted seamlessly.
Load Balancing:
HAProxy is deployed to distribute database queries evenly across all nodes, improving performance and ensuring high availability.
Distributed Storage:
GlusterFS is configured to replicate configuration files and data across nodes, providing redundancy and facilitating quick recovery.
Networking & Security:
A series of firewall rules, NAT configurations, and IP sets secure the cluster. These settings control traffic flow and restrict unauthorized access.
Additional Components:
KeepAlived is used to implement VRRP for network resilience, and custom scripts (with Ansible automation) are employed for routine maintenance and configuration updates.