πŸš€

High Availability Database Cluster

Production-ready MySQL/MariaDB cluster with automatic failover, load balancing, and disaster recovery.

Core Project

## πŸ”§ Tech Stack

MariaDB ClusterProxySQLKeepalivedHAProxyPrometheusGrafanaAnsibleLinux Containers

## πŸ“ˆ Workflow

infrastructure

Cluster Provisioning

Deploy MariaDB cluster nodes

load_balancer

ProxySQL Setup

Configure read/write splitting and failover

ha

Keepalived VIP

Virtual IP for high availability

monitoring

Health Monitoring

Monitor cluster health and performance

backup

Automated Backups

Daily incremental and weekly full backups

## ✨ Features

  • β€’3-node MariaDB Galera cluster
  • β€’Automatic failover with ProxySQL
  • β€’Read/write load balancing
  • β€’Keepalived virtual IP management
  • β€’Real-time health monitoring
  • β€’Automated backup and recovery
  • β€’SSL encryption for all connections
  • β€’Performance monitoring with Grafana
  • β€’Disaster recovery procedures
  • β€’Zero-downtime maintenance

## 🎯 Results

  • βœ“99.99% uptime achieved
  • βœ“Zero data loss in 24 months of operation
  • βœ“Handles 50,000+ concurrent connections
  • βœ“10TB+ database size managed
  • βœ“Automatic recovery from node failures
  • βœ“R$ 1.2M in cost savings vs cloud alternatives

## 🧩 Use Case

Critical business applications require 24/7 availability. This cluster ensures that even if one database server fails, the system continues operating without interruption.

## πŸ”— Related Projects