Redis Sentinel HA Cluster — Automated Failover with HAProxy

Built a production-tested, highly available Redis caching layer using Sentinel for automatic failover and HAProxy for transparent master routing. Open-sourced the setup and documentation.

Context

Production applications needed a Redis caching layer that could survive node failures without manual intervention or application-side changes. The solution had to be simple, reliable, and deployable on standard Linux infrastructure.

What I Did

  • Designed a 3-node Redis cluster — 1 master, 2 replicas — with automatic promotion on failure
  • Configured 3 Sentinel instances with quorum-based failover (quorum of 2)
  • Set up HAProxy with TCP health checks to route connections to the current master transparently
  • Documented the full setup and open-sourced it on GitHub

Results

MetricDetail
FailoverZero-downtime — automatic master promotion
App changesNone — clients connect through HAProxy transparently
Open sourceGitHub repo

Stack

Redis · Redis Sentinel · HAProxy · CentOS · Linux

Automated Remote MySQL Backups with Percona Xtrabackup

Built a lightweight backup automation script for streaming MySQL backups to a remote vault using Percona Xtrabackup. Deployed across multiple production environments at Network Redux.

Context

Production MySQL databases needed reliable, automated backups pushed to a remote vault — without locking tables or impacting application performance. The solution had to be simple enough to deploy via cron and robust enough for production use.

What I Did

  • Built a bash script using Percona Xtrabackup for hot, non-blocking MySQL backups
  • Implemented SSH-based streaming to push compressed backups to a remote vault
  • Configured cron-based scheduling — every 4 hours by default
  • Open-sourced the script and documentation on GitHub

Results

MetricDetail
DowntimeZero — hot backups, no table locks
AutomationUnattended, 4-hour cron schedule
Production useDeployed across multiple environments
Open sourceGitHub repo

Stack

MySQL · Percona Xtrabackup · Bash · SSH · Cron · Linux