Ensure Uptime Kuma is available 24/7, with automatic failover if the main VM fails, using shared database and virtual IP.
VM | Role | Status |
---|---|---|
VM1 | MASTER | Runs container, holds VIP, writes to shared DB |
VM2 | BACKUP | Container stopped, monitors VIP, takes over on failover |
If MASTER fails, VIP moves to BACKUP. Backup starts container. When MASTER returns, it preempts BACKUP and resumes service.