---
canonical: https://safekit.evidian.com/products/high-availability-software-for-application-clustering/kubernetes-k3s-the-simplest-high-availability-cluster-with-synchronous-replication-and-failover-between-two-redundant-servers/
---

Kubernetes K3s High Availability: 2-Node Synchronous Replication & Failover - SafeKit HA



[![Evidian Logo](/wp-content/uploads/2026/01/eviden-logo-black-265-54.png)](https://eviden.com)


* [SafeKit](/products/high-availability-software-for-application-clustering/)
  + - * SafeKit

        ---
      * [Home SafeKit](https://safekit.evidian.com/)
      * [Elevator pitch](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/high-availability-software-ha-cluster-windows-linux/)
      * [Customer use cases](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/#safekit-use-cases)
    - * Use cases

        ---
      * [Best/Worst Use Cases](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/best-worst-use-cases-high-availability/)
      * [OEM use case for a software publisher](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/application-clustering-software/)
      * [Distributed Enterprise use case](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/business-continuity-software/)
      * [Remote sites and disaster recovery use case](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/business-continuity-and-disaster-recovery-software/)
    - * High Availability in Physical Security Market

        ---
      * [Physical Security Software](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/physical-security-software-redundancy/)
      * [Video Management Software (VMS)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/video-management-software-vms-redundancy/)
      * [Electronic Access Control Software (EACS)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/electronic-access-control-software-eacs-redundancy/)
      * [Building Management System Software (BMS)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/building-management-system-software-bms-redundancy/)
      * [SCADA Software](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/scada-software-redundancy-high-availability/)
* [Solutions](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/cluster-configuration/)
  + - * New application (real-time replication and failover)

        ---
      * [Windows (mirror.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/windows-high-availability-software-synchronous-replication-failover/)
      * [Linux (mirror.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/linux-high-availability-software-synchronous-replication-failover/)
      * New application (network load balancing and failover)

        ---
      * [Windows (farm.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/windows-load-balancing-failover/)
      * [Linux (farm.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/linux-load-balancing-failover/)
    - * Full VM or container real-time replication and failover

        ---
      * [Hyper-V (hyperv.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/hyper-v-replication-automatic-failover-load-balancing/)
      * [KVM (kvm.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/linux-kvm-high-availability-replication-automatic-failover-load-balancing/)
      * [Docker (mirror.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/docker-container-high-availability-cluster-synchronous-replication-failover/)
      * [Podman (mirror.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/podman-the-simplest-high-availability-cluster-between-two-redundant-servers/)
      * [Kubernetes (k3s.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/kubernetes-k3s-the-simplest-high-availability-cluster-with-synchronous-replication-and-failover-between-two-redundant-servers/)
    - * Database (real-time replication and failover)

        ---
      * [Microsoft SQL Server (sqlserver.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/sql-server-high-availability-synchronous-replication-failover/)
      * [PostgreSQL (postgresql.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/postgresql-high-availability-synchronous-replication-failover/)
      * [Oracle (oracle.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/oracle-high-availability-synchronous-replication-failover/)
      * [MySQL (mysql.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/mysql-high-availability-synchronous-replication-failover/)
      * [MariaDB (mysql.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/mariadb-simplest-high-availability-cluster-synchronous-replication-failover-redundant-servers/)
      * [Firebird (firebird.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/firebird-high-availability-synchronous-replication-failover/)
      * Web (network load balancing and failover)

        ---
      * [Apache (apache\_farm.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/apache-load-balancing-failover-2/)
      * [Microsoft IIS (iis\_farm.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/iis-load-balancing-failover/)
      * [NGINX (farm.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/nginx-the-simplest-load-balancing-cluster-with-failover/)
    - * Amazon AWS

        ---
      * [AWS (mirror.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/aws-high-availability-cluster-synchronous-replication-failover/)
      * [AWS (farm.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/aws-load-balancing-cluster-failover/)
      * Google GCP

        ---
      * [GCP (mirror.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/gcp-high-availability-cluster-synchronous-replication-failover/)
      * [GCP (farm.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/gcp-load-balancing-cluster-failover/)
      * Microsoft Azure

        ---
      * [Azure (mirror.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/azure-high-availability-cluster-synchronous-replication-failover/)
      * [Azure (farm.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/azure-load-balancing-cluster-failover/)
      * Other clouds

        ---
      * [All cloud solutions](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/cluster-in-cloud-computing-generic-solution-amazon-aws-microsoft-azure-google-gcp-other-clouds/)
      * [Cloud (mirror.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/cloud-high-availability-cluster-synchronous-replication-failover/)
      * [Cloud (farm.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/cloud-load-balancing-cluster-failover/)
    - * Physical security (real-time replication and failover)

        ---
      * [Milestone XProtect (milestone.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/milestone-xprotect-corporate-high-availability-synchronous-replication-failover/)
      * [Nedap (nedap.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/nedap-high-availability-synchronous-replication-failover/)
      * [Genetec SQL Server (sqlserver.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/genetec-sql-server-the-simplest-high-availability-cluster-with-synchronous-replication-and-failover-between-two-redundant-servers/)
      * [Bosch AMS (hyperv.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/bosch-ams-the-simplest-high-availability-cluster-between-two-redundant-servers-without-shared-disk/)
      * [Bosch BIS (hyperv.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/bosch-bis-the-simplest-high-availability-cluster-between-two-redundant-servers-without-shared-disk/)
      * [Bosch BVMS (hyperv.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/bosch-bvms-the-simplest-high-availability-cluster-between-two-redundant-servers-without-shared-disk/)
      * [Hanwha Vision (hyperv.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/hanwha-vision-cluster-without-shared-storage-on-a-san/)
      * [Hanwha Wisenet (hyperv.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/hanwha-wisenet-wave-the-simplest-high-availability-cluster-between-two-redundant-servers-without-shared-disk/)
    - * Siemens (real-time replication and failover)

        ---
      * [Siemens Siveillance suite (hyperv.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/siemens-siveillance-redundancy-high-availability-cluster-active-active/)
      * [Siemens Desigo CC (hyperv.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/siemens-desigo-cc-redundancy-high-availability-cluster-active-active/)
      * [Siemens Siveillance VMS (SiveillanceVMS.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/siemens-siveillance-vms-the-simplest-high-availability-cluster-between-two-redundant-servers/)
      * [Siemens SiPass (hyperv.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/siemens-sipass-redundancy-high-availability-cluster-active-active/)
      * [Siemens SIPORT (hyperv.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/siemens-siport-redundancy-high-availability-cluster-active-active/)
      * [Siemens SIMATIC PCS 7 (hyperv.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/siemens-simatic-pcs-7-redundancy-high-availability-cluster-active-active/)
      * [Siemens SIMATIC WinCC (hyperv.safe)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/siemens-simatic-wincc-redundancy-high-availability-cluster-active-active/)
* [Architectures](#)
  + - * Basic architectures

        ---
      * [Overview](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/high-availability-architectures/)
      * [Mirror Cluster](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/file-replication-byte-level-with-failover-mirror-cluster/)
      * [Farm Cluster](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/network-load-balancing-cluster/)
      * [SafeKit Console](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-smart-console-your-high-availability-cluster-in-your-pocket/)
    - * Advanced architectures

        ---
      * [Farm+Mirror Cluster](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/clustering-software-load-balancing-mirroring/)
      * [Active Active Cluster with Replicaton](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/active-active-cluster-real-time-replication/)
      * [N-1 Cluster](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/n-1-redundancy/)
    - * Hypervisor architectures

        ---
      * [Hyper-V Cluster](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/hyper-v-replication-automatic-failover-load-balancing/)
      * [KVM Cluster](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/linux-kvm-high-availability-replication-automatic-failover-load-balancing/)
    - * Container architectures

        ---
      * [Docker Cluster](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/docker-container-high-availability-cluster-synchronous-replication-failover/)
      * [Podman Cluster](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/podman-the-simplest-high-availability-cluster-between-two-redundant-servers/)
* [Best practises](#)
  + - * High availability best practises

        ---
      * [High Availability Architectures & Software Clustering Best Practices](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/high-availability-architectures-and-best-practices/)
      * [Shared Nothing vs. Shared Disk Architecture: Choosing the Best HA Cluster](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/shared-nothing-architecture-vs-shared-disk-architecture/)
      * [Software clusering vs hardware clustering](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/clustering-software-vs-hardware-clustering/)
      * [VM HA vs. Application HA: Choose Your Redundancy Level with SafeKit](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/vm-ha-vs-application-ha/)
      * [High Availability and Disaster Recovery (HADR)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/high-availability-disaster-recovery-hadr/)
      * [HA Cluster vs. Fault Tolerant System: Choosing the Right Redundancy Strategy](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/high-availability-cluster-vs-fault-tolerant-system/)
      * [How to Implement Redundant Servers with Simple HA Software](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/how-to-implement-redundant-servers-with-a-simple-software-windows-linux/)
    - * Replication best practises

        ---
      * [Data Replication Techniques for High Availability: A Complete Comparison](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/data-replication-techniques/)
      * [Synchronous vs. Asynchronous Replication: How SafeKit Ensures Zero Data Loss?](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/synchronous-replication-vs-asynchronous-replication/)
      * [Byte-Level File Replication vs. Block-Level Disk Replication for HA](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/byte-level-file-replication-vs-block-level-disk-replication/)
      * [Alternative to SQL Server Always On: HA for Express and Standard Editions](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/alternative-always-on-sql-server-express-standard-editions/)
    - * Clustering best practises

        ---
      * [How a Virtual IP Address (VIP) Works in High Availability Clustering?](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/how-a-virtual-ip-address-works/)
      * [Handling Power Outages and Network Isolation in a HA Cluster](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/power-outage-and-network-isolation-in-a-cluster/)
      * [Heartbeat, failover and quorum in a cluster](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/heartbeat-failover-quorum-windows-linux-aix-cluster/)
      * [SAN vs. NAS Shared Storage for Failover Clustering: A Detailed Comparison](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/san-vs-nas-shared-storage-for-a-failover-cluster/)
      * [What are RPO and RTO? Definitions, Examples, and HA Strategies](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/what-is-rpo-and-rto-with-examples/)
      * [Microsoft NLB vs SafeKit network load balancing](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/microsoft-nlb-vmware-multicast-unicast-alternative/)
* [Resources](#)
  + - * Free trial

        ---
      * [SafeKit free trial](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-free-trial/)
      * [One-month license key](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/high-availability-and-load-balancing-cluster-key/)
      * [Demonstrations](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/high-availability-solutions-ha-solutions-videos/)
      * [Support](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-support/)
      * [Free Training & Certification](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-on-line-training/)
    - * Technical documentations

        ---
      * [SafeKit quick installation guides](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-quick-installation-guides/)
      * [SafeKit user's guide](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-user-guide-82/)
      * [SafeKit release notes](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-release-notes-8-2/)
      * [SafeKit SRB](https://safekit.evidian.com/wp-content/uploads/downloads_safekit/version-82/82softwarereleasebulletin.pdf)
      * [Knowledge Base](https://safekit.evidian.com/wp-content/uploads/downloads_safekit/version-82/knowledge-base.pdf)
    - * Product information

        ---
      * [Flyer](https://safekit.evidian.com/wp-content/uploads/documents/high-availability-overview.pdf)
      * [White Paper - Product](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/high-availability-white-paper/)
      * [White Paper - High Availability Guide](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/high-availability-guide/)
      * [Technical Reference for RFI and RFP](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/high-availability-technical-reference-for-rfi-and-rfp-preparation/)
* [Support](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-support/)
* [Price](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/get-a-quote-safekit-en/)
* [Contact](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/contact-us-for-safekit/)
* [![English](https://safekit.evidian.com/wp-content/uploads/flags/us.png)](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/kubernetes-k3s-the-simplest-high-availability-cluster-with-synchronous-replication-and-failover-between-two-redundant-servers/)



[Eviden >](https://eviden.com/)  [Products >](https://safekit.evidian.com/products/) [SafeKit: All-in-One SANless High Availability & Application Clustering Software >](https://safekit.evidian.com/) Kubernetes K3s High Availability: 2-Node Synchronous Replication & Failover



# Kubernetes K3s High Availability: 2-Node Synchronous Replication & Failover

## Simplifying K3s HA: Why Choose SafeKit Over MetalLB and Longhorn?

While the standard open-source stack (MetalLB + Longhorn) for K3s is powerful for large data centers, it introduces excessive complexity for 2-node on-premises sites. **SafeKit** simplifies the K3s environment by replacing standalone networking and storage tools with a single, consolidated HA engine.

### Why Use SafeKit for 2-Node K3s High Availability (HA)?

* **True 2-Node High Availability:** SafeKit provides full redundancy with only **2 nodes**, eliminating the 3-node requirement for *etcd* quorum.
* **Zero Data Loss (RPO=0):** Replaces high-overhead block storage with **Synchronous Byte-level replication** for local SSD performance.
* **Flexible File-Level Protection:** SafeKit performs host-based replication at the file level, which is completely transparent for the application. It protects not just databases, but all associated folders and data. You can replicate existing folders exactly where they are installed, even on the **system disk**.
* **Integrated Virtual IP (VIP):** Natively manages the cluster IP at the kernel level, removing the need for separate **MetalLB** configurations.
* **Automatic Failover & Failback:** Triggers an immediate transition to the secondary node upon failure; once the primary node is healthy, SafeKit executes **automatic data resynchronization** without manual intervention.
* **Ultra-Low Overhead:** SafeKit operates without the heavy management overhead of storage pods (CSI/Longhorn) and networking pods (CNI/MetalLB) required by standard stacks, freeing up critical RAM and CPU for your applications.
* **IT Generalist Friendly:** Replaces complex **infrastructure YAML** for networking and storage with a **simple web GUI** and automated deployment scripts, leaving you to focus only on your applications.

![SafeKit architecture diagram for 2-node K3s high availability featuring integrated Virtual IP, real-time replication, and automatic failover.](https://safekit.evidian.com/wp-content/uploads/2026/02/safekit-mirror-k3s-1024.jpg "Shared-nothing high availability (HA) for 2-node K3s clusters")

**Shared-nothing high availability (HA) for 2-node K3s clusters**

[⚡ Quick Kubernetes HA cluster installation guide >](/products/high-availability-software-for-application-clustering/kubernetes-k3s-the-simplest-high-availability-cluster-with-synchronous-replication-and-failover-between-two-redundant-servers/safekit-quick-installation-guide-with-kunenetes/)

[🧑 Contact us](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/contact-us-for-safekit/)

[🎁 SafeKit free trial](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-free-trial/)

[🏅 Free certification](https://training.my.evidian.com/mod/page/view.php?id=712)

[💰 Perpetual license cost](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/get-a-quote-safekit-en/)

## Table of Contents

* [How the SafeKit software simply implements a Kubernetes K3s high availability cluster?](#safekit-mirror-k3s-cluster)
* [How the SafeKit mirror cluster works with Kubernetes K3S?](#safekit-mirror-cluster)
* [SafeKit High Availability Limitations](#safekit-ha-limitations)
* [Comparison: SafeKit vs. Standard K3s Stack (MetalLB & Longhorn)](#safekit-k3s-ha-comparison)
* [Video Guide: Configuring a SafeKit Mirror HA cluster](#videoguide-safekit-mirror-cluster)
* [🔍 SafeKit High Availability Navigation Hub](#hub)

## How the SafeKit software simply implements a Kubernetes K3s high availability cluster?

### How do I implement high availability for a 2-node Kubernetes K3s cluster?

You can implement high availability (HA) for a 2-node Kubernetes K3s cluster using the **SafeKit k3s.safe mirror module**. This solution allows you to deploy a redundant environment without the need for external NFS storage, a dedicated external configuration database, or specialized Kubernetes expertise.

### Why use K3s for Edge and IoT computing?

[K3s](https://k3s.io/) is the preferred Kubernetes engine for **IoT and Edge computing** because it is a lightweight, certified distribution designed for resource-constrained environments. It simplifies the operational overhead of standard Kubernetes while maintaining full compatibility.

### What are the key features of the k3s.safe mirror module?

The k3s.safe module provides a comprehensive HA stack for K3s by implementing:

* **Dual Active Nodes:** Runs 2 active K3s masters/agents simultaneously to host pods.
* **Database Replication:** Real-time replication of the MariaDB configuration database between nodes.
* **Persistent Storage:** Replication of persistent volumes via an integrated NFS client dynamic provisioner (nfs-client).
* **Network Continuity:** Includes a Virtual IP address for seamless client access.
* **Automated Recovery:** Full support for automatic failover and failback.

### Beyond K3s, which applications and environments can SafeKit protect?

SafeKit is a versatile high-availability solution **for both Windows and Linux** that extends far beyond K3s mirror cluster. It enables **synchronous real-time replication** and automatic failover for a wide range of critical workloads, including:

* **Virtual & Physical Environments:** Complete Hyper-V or KVM virtual machines.
* **Container Orchestration:** Docker, Podman environments.
* **Data & Services:** Individual file directories, services, and various databases.
* **Cloud Infrastructure:** High availability for Cloud applications.

SafeKit also provides **Farm Clusters** with native **Network Load Balancing and Failover** for stateless applications like **Web Servers**.

[Explore the full list of supported HA solutions here.](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/cluster-configuration/)

### How SafeKit Achieves K3s High Availability?

Architecture and Redundancy Logic for a 2-Node K3s Cluster using SafeKit

| 2-Node K3s Cluster | SafeKit PRIM (Primary Node) | SafeKit SECOND (Secondary Node) |
| --- | --- | --- |
| Workload Execution | K3s master and agent services are active, managing cluster orchestration and running pods. | K3s master and agent services remain active, providing parallel processing and high availability. |
| NFS Storage & PVs | * Hosts Virtual IP and NFS Port * Manages active exported NFS shares * Stores K3s Persistent Volumes (PVs) | **Synchronous Mirroring:** SafeKit replicates all persistent volumes in real-time to ensure zero data loss. |
| Configuration Database | * Hosts Virtual IP and MariaDB Port * Manages active K3s configuration database | **Database Replication:** The MariaDB database is mirrored synchronously, preserving cluster state for failover. |

**Automatic Failover Mechanism:** In the event of a Primary node failure, SafeKit automatically migrates the Virtual IPs and storage services to the Secondary node, ensuring uninterrupted service for the K3s cluster.

## How the SafeKit mirror cluster works with Kubernetes K3S?

### Step 1: Byte-Level File Replication in a Mirror Cluster

This stage illustrates the high-availability architecture between **Server 1 (PRIM)** and **Server 2 (SECOND)**. Both servers run K3s master and agent components as defined in the [architecture table](#safekit-k3s-architecture-table).

![File replication at byte level in a Kubernetes K3s mirror cluster](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20169'%3E%3C/svg%3E)![File replication at byte level in a Kubernetes K3s mirror cluster](https://safekit.evidian.com/wp-content/uploads/2023/02/safekit-prim-second-300.png)

Currently, the **Virtual IP (VIP)**, **NFS persistent storage**, and **MariaDB** are active on Server 1 (PRIM) only. The K3s master components on both nodes synchronize with each other by accessing the cluster state via the Virtual IP and the MariaDB port. SafeKit implements [synchronous replication](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/synchronous-replication-vs-asynchronous-replication/) of MariaDB and persistent NFS files, ensuring **zero data loss (RPO = 0)** in the event of a failure.

The K3s masters distribute the workload across both nodes (or more) by communicating directly with the K3s agents. External clients connect to the  
[cluster's Virtual IP address](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/how-a-virtual-ip-address-works/#mirror) on the PRIM node. Using standard Kubernetes mechanisms, the K3s master relays traffic to pods distributed across the nodes. Similarly, pods access their **persistent volumes (PVs)** on the PRIM server via the Virtual IP and NFS port.

### Step 2: Automatic Failover and Service Continuity

When **Server 1 (PRIM)** fails, **Server 2 (SECOND)** automatically takes over the cluster operations to ensure continuity.

![Failover in a Kubernetes K3S mirror cluster](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20169'%3E%3C/svg%3E)![Failover in a Kubernetes K3S mirror cluster](https://safekit.evidian.com/wp-content/uploads/2023/02/safekit-stop-alone-300.png)

SafeKit detects the failure and immediately migrates the cluster's **Virtual IP address** to Server 2. It then promotes the local **MariaDB** and **NFS services** to an active state. Because of the synchronous replication performed in Step 1, all MariaDB databases and NFS Persistent Volume (PV) files are already up-to-date on Server 2, ensuring zero data loss.

With the cluster state preserved, the **K3s Master** on Server 2 continues execution. It detects the loss of the Server 1 agent and automatically reschedules the affected pods onto the remaining active K3s agents. The total failover time (RTO) is the sum of the fault-detection interval (default: 30 seconds) and the time required for K3s components to initialize on the secondary node.

While Server 1 is offline, MariaDB and NFS services continue to run on Server 2, writing changes only locally.

### Step 3: Failback and Automatic Reintegration

**Failback** occurs when Server 1 is restarted after the initial issue has been resolved. SafeKit automatically resynchronizes the MariaDB and NFS files, updating only the data modified on Server 2 during the downtime. This reintegration process is **non-disruptive**; K3s master and agent components continue to run on Server 2 without interruption.

![Automatic resynchronization and failback in a K3s mirror cluster](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20169'%3E%3C/svg%3E)![Automatic resynchronization and failback in a K3s mirror cluster](https://safekit.evidian.com/wp-content/uploads/2023/02/safekit-resynchro-alone-300.png)

SafeKit optimizes recovery time based on how the server was stopped:

* **Clean Shutdown:** If SafeKit was stopped intentionally on Server 1, only the specific modified zones within the files are resynchronized using **modification tracking bitmaps**. This ensures an ultra-fast reintegration.
* **System Crash (e.g., Power Failure):** If Server 1 suffered an unclean shutdown, the modification bitmaps are bypassed for safety. SafeKit instead resynchronizes all files with a modification timestamp more recent than the last established synchronization point, ensuring **total data integrity**.

### Step 4: Restoring High Availability and Load Distribution

Following reintegration, the cluster returns to **full mirror mode**, mirroring the state described in Step 1. The system is once again in a highly available state: **MariaDB** and **NFS services** remain active on Server 2, while SafeKit performs real-time replication of all file updates back to Server 1.

![Return to normal operation in a Kubernetes K3s mirror cluster](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20169'%3E%3C/svg%3E)![Return to normal operation in a Kubernetes K3s mirror cluster](https://safekit.evidian.com/wp-content/uploads/2023/02/safekit-second-prim-300.png)

The **K3s Master** and **K3s Agent** are automatically restarted on Server 1. The Kubernetes scheduler now recognizes Server 1 as a healthy node and can begin rescheduling pods to distribute the workload across both servers.

If the administrator prefers the MariaDB and NFS services to run on Server 1 (restoring the original PRIM role), a **switchover** can be triggered manually via the web console at a convenient time or automated through the configuration settings.

### How to configure a SafeKit Mirror Cluster?

![SafeKit Web Console: High Availability configuration dashboard showing heartbeat networks, virtual IP setup, and real-time directory replication for a mirror cluster.](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20763%20497'%3E%3C/svg%3E)![SafeKit Web Console: High Availability configuration dashboard showing heartbeat networks, virtual IP setup, and real-time directory replication for a mirror cluster.](https://safekit.evidian.com/wp-content/uploads/2026/01/safekit-mirror-cluster-config.png)

The **SafeKit web console** provides an intuitive interface to orchestrate high availability for your critical applications. In just a few steps, you can configure a **SafeKit mirror cluster** to ensure business continuity:

* **Application Failover (Macros Tab):** Define the specific application services to be automatically restarted in the event of a failure.
* **Heartbeat network(s):** Dedicated communication path(s) used by cluster nodes to continuously monitor each other's health and availability and synchronize failover decisions.
* **Virtual IP Management:** Set up the Virtual IP (VIP) for transparent client reconnection after a failover.
* **Real-Time Replication:** Select the critical directories for host-based, synchronous byte-level replication.
* **Checkers:** Monitor the application's health and trigger automatic recovery if a process failure is detected.

The SafeKit cluster includes a dedicated split-brain checker to resolve network isolation issues without the need for a third witness machine or an additional heartbeat network. Learn more about [heartbeat, failover and quorum in a cluster](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/heartbeat-failover-quorum-windows-linux-aix-cluster/).

### How to monitor a SafeKit mirror cluster?

![SafeKit Web Console: Real-time monitoring of a 2-node mirror cluster showing PRIM and SECOND states with active data replication.](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20478%20376'%3E%3C/svg%3E)![SafeKit Web Console: Real-time monitoring of a 2-node mirror cluster showing PRIM and SECOND states with active data replication.](https://safekit.evidian.com/wp-content/uploads/2026/01/safekit-mirror-cluster-monitor.png)

The **SafeKit management console** offers a unified view of your high availability infrastructure. It allows administrators to monitor the **operational state** of the cluster and track data synchronization in real-time.

For a 2-node mirror cluster, the console clearly displays the roles of each server:

* **PRIM (Primary):** The active node currently running the application and managing the Virtual IP. It performs writes to the local storage and real-time replication to the secondary node.
* **SECOND (Secondary):** The standby node receiving synchronous byte-level updates. It is ready to take over instantly if the Primary fails.
* **ALONE State:** Visually alerts you when the cluster is running on a single node (e.g., during maintenance or after a failure), indicating that redundancy is temporarily lost.
* **Resynchronization Progress:** When a failed node recovers, its status turns orange during background data reintegration, ensuring no downtime during the "return to normal" phase.

Beyond simple status icons, the interface provides **one-click failover orchestration**, allowing you to manually reassign the primary role for planned maintenance while ensuring continuous availability for user activity.

## SafeKit High Availability Limitations

### Why a replication of a few Tera-bytes?

Resynchronization time after a failure ([step 3](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/file-replication-byte-level-with-failover-mirror-cluster/#mirrorcluster))

* 1 Gb/s network ≈ 3 Hours for 1 Tera-bytes.
* 10 Gb/s network ≈ 1 Hour for 1 Tera-bytes or less depending on disk write performances.

#### Alternative

* For a large volume of data, use [external shared storage](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/san-vs-nas-shared-storage-for-a-failover-cluster/).
* More expensive, more complex.

### Why a replication < 1,000,000 files?

* Resynchronization time performance after a failure ([step 3](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/file-replication-byte-level-with-failover-mirror-cluster/#mirrorcluster)).
* Time to check each file between both nodes.

#### Alternative

* Put the many files to replicate in a virtual hard disk / virtual machine.
* Only the files representing the virtual hard disk / virtual machine will be replicated and resynchronized in this case.

### Why a failover ≤ 32 replicated VMs?

* Each VM runs in an independent mirror module.
* Maximum of 32 mirror modules running on the same cluster.

#### Alternative

* Use an external shared storage and another VM clustering solution.
* More expensive, more complex.

### Why a LAN/VLAN network between remote sites?

* Automatic failover of the [virtual IP address](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/how-a-virtual-ip-address-works/) with 2 nodes in the same subnet.
* Good bandwidth for resynchronization ([step 3](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/file-replication-byte-level-with-failover-mirror-cluster/#mirrorcluster)) and good latency for [synchronous replication](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/synchronous-replication-vs-asynchronous-replication/) (typically a round-trip of less than 2ms).

#### Alternative

* Use a [load balancer for the virtual IP address](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/how-a-virtual-ip-address-works/) if the 2 nodes are in 2 subnets (supported by SafeKit, especially in the cloud).
* Use backup solutions with asynchronous replication for high latency network.

## Comparison: SafeKit vs. Standard K3s Stack (MetalLB & Longhorn)

Comparison: SafeKit vs. Standard Open-Source (MetalLB + Longhorn)

| Capability | SafeKit (K3s.safe) | MetalLB + Longhorn (Standard K8s) |
| --- | --- | --- |
| Architecture | **All-in-One:** Integrated networking, replication, and failover in a single package. | **DIY (Do It Yourself) Stack:** Multiple independent packages required (CNI, CSI, LoadBalancer). |
| Hardware Efficiency | **Pure 2-Node HA:** Full redundancy without a 3rd "witness" or arbiter node. | **3-Node Minimum:** Typically requires odd numbers for Etcd quorum and storage safety. |
| Networking (VIP) | **Native:** Virtual IP managed at the OS level; transparent to K3s. | **Complex:** Requires MetalLB installation with L2 or BGP configuration using dedicated speaker pods which consume CPU/RAM on each node. |
| Storage Requirements | **Byte-Level Synchronous:** Real-time file replication of existing directories; works on standard system disks; byte-level file replication with minimal CPU/Network overhead. | **Block-Level:** Distributed block storage (Longhorn) using dedicated storage pods; higher resource consumption. |
| Failover Intelligence | **Independent Stability:** SafeKit operates outside the container runtime. It monitors the OS and hardware directly, ensuring failover even if the Kubernetes control plane or container engine hangs. | **Circular Dependency:** Failover logic is hosted *inside* the pods it is meant to protect. If the host OS or K3s engine hangs, the management pods (MetalLB/Longhorn) also freeze, often requiring manual triage to break the "lock." |
| Administration | **Simplified:** Manageable via a single web console; no Kubernetes expert required. | **Specialized:** Requires deep knowledge of YAML, Helm, and K8s internal controllers. |

### Conclusion

While a standard DIY stack (MetalLB + Longhorn) offers modularity for Kubernetes experts, it creates a **circular dependency** where the storage and networking tools are vulnerable to the same node failures they are designed to manage. **SafeKit** breaks this loop by operating as an independent infrastructure layer; it provides a more robust, hardware-agnostic 2-node HA solution that remains operational even if the Kubernetes engine or host OS hangs. This ensures automated recovery and data integrity without the heavy resource overhead, mandatory three-node quorum, or configuration complexity required by traditional distributed block storage and networking overlays.

## Video Guide: Configuring a SafeKit HA mirror cluster

### [SafeKit Video: Application-Level Clustering (8:47)](https://www.youtube.com/embed/mGwEguDnnH0?rel=0&autoplay=1&cc_load_policy=1&hl=en&cc_lang_pref=en)

While this video demonstrates SafeKit's high availability for Microsoft SQL Server, it provides an excellent overview of how the solution secures K3s environments. SafeKit functions identically for any other database or business-critical application.

### Video Highlights

1. [2 nodes with SQL Server](https://www.youtube.com/embed/mGwEguDnnH0?rel=0&autoplay=1&start=0&end=32&cc_load_policy=1&hl=en&cc_lang_pref=en) (0:32)
2. [Configure the cluster and the mirror.safe module](https://www.youtube.com/embed/mGwEguDnnH0?rel=0&autoplay=1&start=32&end=270&cc_load_policy=1&hl=en&cc_lang_pref=en) (3:58)
3. [Start and test SQL replication, migration, failover on crash](https://www.youtube.com/embed/mGwEguDnnH0?rel=0&autoplay=1&start=270&cc_load_policy=1&hl=en&cc_lang_pref=en) (4:17)

## 🔍 SafeKit High Availability Navigation Hub

Explore SafeKit: Features, technical videos, documentation, and free trial

| Resource Type | Description | Direct Link |
| --- | --- | --- |
| **Key Features** | Why Choose SafeKit for Simple and Cost-Effective High Availability? | [See Why Choose SafeKit for High Availability](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/#why-choose-safekit-for-ha "Discover SafeKit features for simple and cost-effective high availability") |
| **Use Cases** | Explore How SafeKit Ensures the High Availability of Critical Infrastructure | [See All Use Cases](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/#safekit-use-cases "Explore SafeKit high availability use cases") |
| **Deployment Model** | All-in-One SANless HA: Shared-Nothing Software Clustering | [See SafeKit All-in-One SANless HA](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/#all-in-one-sanless-ha "Learn about all-in-one SANless high availability with shared-nothing software clustering") |
| **HA Strategies** | SafeKit: Infrastructure (VM) vs. Application-Level High Availability | [See SafeKit HA & Redundancy: VM vs. Application Level](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/#safekit-ha-redundancy-choices "Compare VM-level redundancy with SafeKit application-level high availability strategies") |
| **Technical Specifications** | Technical Limitations for SafeKit Clustering | [See SafeKit High Availability Limitations](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/#safekit-ha-limitations "Technical requirements and limitations for SafeKit application clustering") |
| **Proof of Concept** | SafeKit: High Availability Configuration & Failover Demos | [See SafeKit Failover Tutorials](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/#safekit-failover-tutorials "Step-by-step videos on SafeKit high availability, from installation to automated failover") |
| **Architecture** | How the SafeKit Mirror Cluster works (Real-Time Replication & Failover) | [See SafeKit Mirror Cluster: Real-Time Replication & Failover](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/#safekit-mirror-cluster "See technical architecture and failover mechanism of SafeKit Mirror Cluster") |
| **Architecture** | How the SafeKit Farm Cluster works (Network Load Balancing & Failover) | [See SafeKit Farm Cluster: Network Load Balancing & Failover](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/#safekit-farm-cluster "Technical overview of SafeKit Farm Cluster architecture with network load balancing") |
| **Competitive Advantages** | Comparison: SafeKit vs. Traditional High Availability (HA) Clusters | [See SafeKit vs. Traditional HA Cluster Comparison](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/#safekit-ha-comparison "Detailed comparison of SafeKit software vs traditional hardware-based HA clusters") |
| **Technical Resources** | SafeKit High Availability: Documentation, Downloads & Trial | [See SafeKit HA Free Trial & Technical Documentation](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/#safekit-ha-technical-resources "Access SafeKit free trial, technical documentation, and high availability white papers") |
| **Pre-configured Solutions** | SafeKit Application Module Library: Ready-to-Use HA Solutions | [See SafeKit High Availability Application Modules](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/#safekit-ha-application-modules "Browse the library of pre-configured SafeKit modules for automated application failover") |

[🧑 Contact us](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/contact-us-for-safekit/)

[🎁 SafeKit free trial](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-free-trial/)

[🏅 Free certification](https://training.my.evidian.com/mod/page/view.php?id=712)

[💰 Perpetual license cost](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/get-a-quote-safekit-en/)



* © Eviden, all rights reserved
* |[Eviden privacy](https://eviden.com/privacy-policy)
* |[Eviden terms and conditions](https://eviden.com/terms-and-conditions)
* |[Eviden](https://eviden.com)

[![eviden-logo](https://safekit.evidian.com/wp-content/uploads/2026/01/eviden-logo-black-265-54.png)](https://eviden.com/)





We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies. However you may visit Cookie Settings to provide a controlled consent.
