7-Second Failover. Zero Data Loss. Any Infrastructure.
SeaPilot HA is an embedded consensus engine for MariaDB and MySQL that delivers five-nines availability without proxy dependencies, infrastructure vendor lock-in, or operational complexity.
Your Database Failover is Too Slow
High Latency Failovers
Average RDS Multi-AZ failover time ranges from 60 to 120 seconds. Every second of outage costs lost transactions, broken user sessions, and cascading microservice failures.
Operational Complexity
Orchestrator, MaxScale, VTOrc — separate infrastructure components to deploy, patch, monitor, and keep alive. Who monitors the monitors when they crash?
Cloud Provider Lock-in
Aurora only runs on AWS. Galera requires strict network configurations. Cloud-managed databases lock your architecture into a single provider.
* Measured on a 3-node MariaDB 11.8 cluster running on Kind. Continuous writes at 5 req/s during failover. Full test reproducible from our public repository.
How It Works
Three steps. Seven seconds. Zero human intervention.
Raft Heartbeat Timeout
Raft heartbeat fails (1s interval, 3s timeout). Peer nodes instantly flag primary unresponsiveness.
| timeout
Consensus Majority Vote
Consensus vote finishes in milliseconds across majority quorum nodes.
[node-1] = new leader
Primary Promotion
New primary accepts writes immediately, update labels, and clears read_only flags.
SET read_only = 0 | IO=Yes SQL=Yes
⚡ No external monitor. No proxy in the data path. No DNS propagation delay.
The agents detect, decide, and act — all within the same 7 seconds.
Architecture Overview
Key Features
Embedded Raft Consensus
Leader election and failover decisions happen inside the agent. No external coordinator to deploy or maintain. Tolerates N/2 node failures effortlessly.
Zero-RPO Failover
GTID-based replication ensures every committed transaction reaches the new primary. Measured zero data loss under continuous write load.
Auto-Rebuild
Ex-primary nodes automatically rejoin as replicas. Three recovery paths: GTID rejoin, stream rebuild from donor, or backup restore from S3.
Partition Safety
Isolated primaries detect quorum loss and demote to read-only within the configured grace period. Prevents split-brain writes.
Backup Integration
MariaBackup and XtraBackup for physical full backups, binlog archiving to S3/MinIO. Scheduled backups, point-in-time recovery, and automatic restore on rebuild.
Multi-Platform
Kubernetes, Docker, bare metal, any cloud. ProxySQL, HAProxy, K8s labels, VIP, or DNS-based routing. Built for MariaDB and MySQL.
Production-Grade Reliability & Security
Security
- 🔒 Mutual TLS for Raft inter-node communication
- 🔒 Bearer token authentication for HTTP API
- 🔒 Exempt paths for health probes and metrics (K8s compatible)
- 🔒 All credentials injected via environment variables / K8s Secrets
Observability
- 📊 Prometheus metrics on every node (/metrics)
- 📊 Pre-built Grafana dashboard (20 panels)
- 📊 OpenAPI 3.1 specification for all 22 API endpoints
- 📊 Structured JSON logging with configurable levels
Operations
- ⚙️ Helm chart with full value parameterization
- ⚙️ Graceful shutdown (SIGTERM handling, HTTP drain, Raft leave)
- ⚙️ Maintenance CLI for manual failover, rejoin, and status
- ⚙️ Rolling upgrades without downtime
Reliability
- 🛡️ Five-nines failover resilience (45 events/year within budget)
- 🛡️ Automatic detection of replication divergence with rebuild trigger
- 🛡️ Configurable cooldowns to prevent recovery storms
- 🛡️ Primary Lease Renew (PLR) as secondary failure detection
Deploy Anywhere
Kubernetes
Helm chart with StatefulSet, Operator for label management, MariaBackup sidecar, MinIO for dev/test. Production-ready with PDB, RBAC, and NetworkPolicy.
Docker / Docker Compose
For development and small deployments. SeaPilot wrapper manages PID 1, MariaDB lifecycle, and signal forwarding seamlessly.
Bare Metal / VM
systemd unit files, VIP-based routing, IPMI/BMC hard fencing. Full platform driver for non-containerized enterprise environments.
Experience 7-Second Failover on Your Cluster
Schedule a live technical benchmark demo or request access to the SeaPilot repository.