← Back to Home

Network Redundancy

Goal

Ensure Uptime Kuma is available 24/7, with automatic failover if the main VM goes down, using a shared database and a virtual IP.

Architecture

Images

Architecture diagram
High-level architecture

Active / Passive Setup

VMRoleStatus
VM1MASTERRuns container, holds VIP, writes to shared DB
VM2BACKUPContainer stopped, monitors VIP, ready to take over

Only one instance writes to SQLite at a time to prevent corruption.

Failover recovery time is ~5 seconds. MASTER is configured with preemption to automatically reclaim VIP and resume container operation when it comes back online.

Failover Workflow

Images

Failover workflow
Automatic failover process

Components

Benefits