---
canonical: https://safekit.evidian.com/products/high-availability-software-for-application-clustering/postgresql-high-availability-synchronous-replication-failover/safekit-quick-installation-guide-with-postgresql/
---

PostgreSQL High Availability with SafeKit: Install the postgresql.safe Module for 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/postgresql-high-availability-synchronous-replication-failover/safekit-quick-installation-guide-with-postgresql/)



[Eviden >](https://eviden.com/)  [Products >](https://safekit.evidian.com/products/) [SafeKit: All-in-One SANless High Availability & Application Clustering Software >](https://safekit.evidian.com/) [The Simplest PostgreSQL High Availability: 2-Node Synchronous Replication & Failover >](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/postgresql-high-availability-synchronous-replication-failover/) PostgreSQL High Availability with SafeKit: Install the postgresql.safe Module for Failover



# PostgreSQL High Availability with SafeKit: Install the postgresql.safe Module for Failover

## Configuring postgresql.safe for Synchronous Replication & 2-Node SANless Clustering

[🧑 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/)

## High Availability Quick Installation Guide for PostgreSQL

This guide explains how to set up a **mirror cluster** for PostgreSQL using SafeKit, ensuring automatic failover and synchronous replication without the need for shared storage.

You can use the SafeKit AI 🤖 for assistance at any time.

### 1. Overview

* **Architecture:** Uses a two-node system (Primary/Secondary).
* **Data Protection:** Implements real-time synchronous replication for **zero data loss** (RPO=0).

### 2. Installation

* **Software:** Install the SafeKit engine on both servers.
* **Module:** Download the pre-configured `postgresql.safe.safe` application module.

### 3. Configuration

* **Web Console:** Configure the specific folders containing the PostgreSQL files.
* **Monitoring:** Start monitoring and protecting the PostgreSQL application.

## Overview of the SafeKit / PostgreSQL solution

The solution is described here: **[The Simplest PostgreSQL High Availability: 2-Node Synchronous Replication & Failover](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/postgresql-high-availability-synchronous-replication-failover/)**.

## Installation of the SafeKit / PostgreSQL solution on Windows and Linux (postgresql.safe)

### Prerequisites

* You need PostgreSQL installed on 2 nodes (virtual machines or physical servers).

### Package installation on Windows

* Download and install the free version of SafeKit on 2 Windows nodes.

  Note: the free version includes all SafeKit features. At the end of the trial, you can activate permanent license keys without uninstalling the package.
* Upon completing the package installation, select **Set console credentials and firewall rules now** and configure a password for the **admin** user of the SafeKit console.

  **Set the same password on all nodes.**
* Exclude from antivirus scans **C:/safekit/** (the default installation directory) and **all replicated folders** that you are going to define.

  Antiviruses may face detection challenges with SafeKit due to its close integration with the OS, virtual IP mechanisms, real-time replication and restart of critical services.

[Download SafeKit (Windows) >](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-free-trial/)

### Module installation on Windows

* Download the postgresql.safe module. The module is free. It contains the files userconfig.xml and the restart scripts.
* Put **postgresql.safe** under **C:/safekit/Application\_Modules/generic**.

[Download postgresql.safe (Windows) >](https://safekit.evidian.com/wp-content/uploads/downloads_safekit/version-82/modules_windows/postgresql.safe)

### Package installation on Linux

* Install the free version of SafeKit on 2 Linux nodes.

  Note: the free trial includes all SafeKit features. At the end of the trial, you can activate permanent license keys without uninstalling the package.
* After the download of safekit\_xx.bin package, execute it to extract the rpm and the safekitinstall script and then execute the **safekitinstall** script
* Answer **yes** to firewall automatic configuration
* Set the password for the web console and the default user **admin**.

  **Set the same password on all nodes.**

[Download SafeKit (Linux) >](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-free-trial/)

### Module installation on Linux

* Download the postgresql.safe module.

  The module is free. It contains the files userconfig.xml and the restart scripts.
* Put **postgresql.safe** under **/opt/safekit/Application\_Modules/generic/**.

[Download postgresql.safe (Linux) >](/wp-content/uploads/downloads_safekit/version-82/modules_linux/postgresql.safe)

## Step by step configuration of the SafeKit / PostgreSQL solution

### Prerequisites

* PostgreSQL application installed on 2 nodes.
* Total replicated data limited to a few terabytes — beyond this, resynchronization time becomes significant.
* Minimum 1Gb/s interconnect between nodes (10Gb/s recommended for faster resynchronization).
* IP failover requires both nodes on the same LAN or extended LAN (L2) — routed L3 networks not supported (except with [cloud load balancers](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-user-guide-82/#Cloud)).

### 1. Launch the SafeKit console

* Launch the web console in a browser on one cluster node by connecting to `http://localhost:9010`.
* Enter `admin` as user name and the password defined during installation.

You can also run the console in a browser on a workstation external to the cluster.

![Warning](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Warning](https://safekit.evidian.com/wp-content/uploads/2022/07/warning-small.png)

The configuration of SafeKit is done on both nodes from a single browser.

![Note](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Note](https://safekit.evidian.com/wp-content/uploads/2022/07/note.png)

To secure the web console, see [11. Securing the SafeKit web service](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-user-guide-82/#https) in the User's Guide.

[![Start the SafeKit web console to configure the PostgreSQL cluster](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20647%20479'%3E%3C/svg%3E "View full size")![Start the SafeKit web console to configure the PostgreSQL cluster](https://safekit.evidian.com/wp-content/uploads/2024/03/01-login-large.png "View full size")](/wp-content/uploads/2024/03/01-login-large.png)

### 2. Configure node addresses

* Enter the node IP addresses, press the `Tab key` to check connectivity and fill node names. If either node1 or node2 has a red color, check connectivity of the browser to both nodes and check firewall on both nodes for [troubleshooting](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-user-guide-82/#Troubleshooting).
* Then, click on `Save and apply` to save the configuration.
* Check the `Success` ✅ message on both nodes.
* If the configuration `Failure` ❌ occurs on one node, open the ▼ accordion for that node and review the messages. Note that you can use the SafeKit AI 🤖 for assistance.

![Note](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Note](https://safekit.evidian.com/wp-content/uploads/2022/07/note.png)

If you want, you can add a new `LAN and nodes` ( first ➕) to create a second heartbeat and a dedicated replication network.

![Note](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Note](https://safekit.evidian.com/wp-content/uploads/2022/07/note.png)

If you click on `Advanced configuration`, the `cluster.xml` file is displayed. This file is automatically populated by the console and deployed on the nodes.

[![Enter the nodes of the PostgreSQL cluster](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20757%20690'%3E%3C/svg%3E "View full size")![Enter the nodes of the PostgreSQL cluster](https://safekit.evidian.com/wp-content/uploads/2024/03/02-cluster-edit.png "View full size")](/wp-content/uploads/2024/03/02-cluster-edit.png)

### 3. Select a module

* In `New module`, click on the `postgresql.safe` module.

![Note](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Note](https://safekit.evidian.com/wp-content/uploads/2022/07/note.png)

In the blue banner at the top, 🛜 `node1` represents the console connection node. This node relays requests to `node2` when required.

![Note](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Note](https://safekit.evidian.com/wp-content/uploads/2022/07/note.png)

The console looks for `xxx.safe` in the `Application_Modules/generic/` directory on the connection node (`node1`) if you placed a module there during installation.

[![Choose the module for PostgreSQL](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20755%20686'%3E%3C/svg%3E "View full size")![Choose the module for PostgreSQL](https://safekit.evidian.com/wp-content/uploads/2024/03/04-module-new.png "View full size")](/wp-content/uploads/2024/03/04-module-new.png)

### 4. Configure the module

* In `Module startup at boot`, choose an automatic start of the module at boot without delay.
* In `Macros` / `SERVICES`, enter the service names of your application, in the startup order, separated by commas. See this screenshot for a visual example of [Milestone XProtect services 🖼️](/wp-content/uploads/2025/05/milestone-services.png).
* In `Heartbeat networks`, you should have a single heartbeat network on which the replication is made. If you have added a private LAN at step 2, then you can configure two heartbeats with the replication flow on the private LAN.
* In `Virtual IP addresses`, enter a virtual IP address. A virtual IP address is a standard IP address in the same IP network (same subnet) as the IP addresses of both nodes.  
  Application clients must be configured with the virtual IP address (or the DNS name associated with the virtual IP address).  
  The virtual IP address is automatically switched in the event of a failure.
* In `Replicated directories`, set the paths of directories to replicate. Check that they exist on both nodes and contain the application data.  
  Data and log replication are essential for a database.  
  You can create additional replicated directories as required.  
  See this screenshot for a visual example of [Milestone XProtect SQL replication 🖼️](/wp-content/uploads/2025/05/milestone-replication.png).
* In `Checkers`, you will be able to configure checkers if needed, such as process monitoring, custom checkers, TCP, ping, or split-brain checkers.  
  For example, if a process name is displayed in `Monitored processes/services`, it will be monitored with a restart action in case of failure. Configuring a wrong process name will cause the module to stop right after its start.

![Note](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Note](https://safekit.evidian.com/wp-content/uploads/2022/07/note.png)

If you click on `Advanced configuration`, the `userconfig.xml` file is displayed. This file is automatically populated by the console and deployed on the nodes with the restart scripts.

![Note](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Note](https://safekit.evidian.com/wp-content/uploads/2022/07/note.png)

In a cloud deployment, you do not need to configure a virtual IP address in SafeKit. The virtual IP is managed at the [cloud load balancer level](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-user-guide-82/#Cloud).

![Note](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Note](https://safekit.evidian.com/wp-content/uploads/2022/07/note.png)

When you apply the SafeKit configuration, the `startup type` of services is automatically set to `Manual` in Windows services. This ensures that services do not start automatically when the system boots, but are instead started only when the module itself is started (the same applies on Linux).

[![Enter the PostgreSQL module settings](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201112%20601'%3E%3C/svg%3E "View full size")![Enter the PostgreSQL module settings](https://safekit.evidian.com/wp-content/uploads/2025/05/05-module-mirror-edit-config-3.png "View full size")](/wp-content/uploads/2025/05/05-module-mirror-edit-config-3.png)

### 5. Edit scripts (optional)

* This step is optional and can be skipped in most cases, as the restart scripts are already pre-configured to restart services defined in the previous step.
* So, click directly on `Next step`.
* `start_prim.ps1` starts all services in the order specified in the `SERVICES` list, while `stop_prim.ps1` stops all services in the reverse order.
* Additionally, `start_prim.ps1` checks the startup of each service and stops the module if any service fails to start correctly.

[![Enter the PostgreSQL module settings](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201102%20477'%3E%3C/svg%3E "View full size")![Enter the PostgreSQL module settings](https://safekit.evidian.com/wp-content/uploads/2025/05/28-module-sqlserver-edit-script-3.png "View full size")](/wp-content/uploads/2025/05/28-module-sqlserver-edit-script-3.png)

### 6. Communication encryption (optional)

* Keep encryption of communication between nodes.

[![Communication encryption of the PostgreSQL module](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201106%20373'%3E%3C/svg%3E "View full size")![Communication encryption of the PostgreSQL module](https://safekit.evidian.com/wp-content/uploads/2025/05/07-module-encryption-1.png "View full size")](/wp-content/uploads/2025/05/07-module-encryption-1.png)

### 7. Save and apply

* `Save and apply` the configuration and scripts on both nodes.

[![Save and apply the PostgreSQL module configuration](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201106%20410'%3E%3C/svg%3E "View full size")![Save and apply the PostgreSQL module configuration](https://safekit.evidian.com/wp-content/uploads/2025/05/08-module-save-1.png "View full size")](/wp-content/uploads/2025/05/08-module-save-1.png)

### 8. Verify successful configuration

* Check the `Success` ✅ message on both nodes and click on `Monitor modules`.
* If the configuration `Failure` ❌ occurs on one node, open the ▼ accordion for that node and review the messages. Note that you can use the SafeKit AI 🤖 for assistance.

![Warning](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Warning](https://safekit.evidian.com/wp-content/uploads/2022/07/warning-small.png)

On Linux, you may get an error at this step if the replicated directories are mount points. [See SK-0030 to solve the problem](https://safekit.evidian.com/wp-content/uploads/downloads_safekit/version-82/knowledge-base.pdf).

[![Check the PostgreSQL module configuration success](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201111%20434'%3E%3C/svg%3E "View full size")![Check the PostgreSQL module configuration success](https://safekit.evidian.com/wp-content/uploads/2025/05/09-module-save-check-1.png "View full size")](/wp-content/uploads/2025/05/09-module-save-check-1.png)

### 9. Start the node with up-to-date data

* If node 1 has the up-to-date replicated directories, select it and ⋯ `Force start` ▶ `As primary`.

When node 2 will be started, all data will be copied from node 1 to node 2.

![Warning](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Warning](https://safekit.evidian.com/wp-content/uploads/2022/07/warning-small.png)

If you make the wrong choice, you run the risk of synchronizing outdated data on both nodes.

![Warning](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Warning](https://safekit.evidian.com/wp-content/uploads/2022/07/warning-small.png)

It is also assumed that the PostgreSQL application is stopped on node 1 so that SafeKit installs the replication mechanisms and then starts the application in the `start_prim` script.

![Warning](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Warning](https://safekit.evidian.com/wp-content/uploads/2022/07/warning-small.png)

Use `Start` for subsequent starts: SafeKit retains the most up-to-date server. Starting `As primary` is a special start-up the first time or during exceptional operations.

[![Start as primary the PostgreSQL node with the up-to-date data](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20725%20568'%3E%3C/svg%3E "View full size")![Start as primary the PostgreSQL node with the up-to-date data](https://safekit.evidian.com/wp-content/uploads/2024/03/10-monitoring-mirror-stop-stop-prim.png "View full size")](/wp-content/uploads/2024/03/10-monitoring-mirror-stop-stop-prim.png)

### 10. Wait for the transition to ALONE (green)

* Node 1 should reach the ALONE (green) state, which means that the virtual IP is set and that the `start_prim` script has been executed on node 1.

![Warning](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Warning](https://safekit.evidian.com/wp-content/uploads/2022/07/warning-small.png)

If ALONE (green) is not reached or if the application is not started, analyze why with the [module log 🖼️](/wp-content/uploads/2024/03/24-module-log-script.png) of node 1.

* Click the 🔍 **log** icon of `node1` to open the module log and look for error messages such as a checker detecting an error and stopping the module.
* Click on `start_prim` in the log: output messages of the script are displayed on the right and errors can be detected such as a service incorrectly started.
* Use the SafeKit AI 🤖 for assistance with log messages.

![Warning](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Warning](https://safekit.evidian.com/wp-content/uploads/2022/07/warning-small.png)

If the cluster is in `WAIT (red) not uptodate, STOP (red) not uptodate` state, stop the WAIT node and [force its start as primary 🖼️](/wp-content/uploads/2024/03/10-monitoring-mirror-stop-stop-prim.png).

[![The first PostgreSQL node starts as primary and becomes ALONE](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20624%20455'%3E%3C/svg%3E "View full size")![The first PostgreSQL node starts as primary and becomes ALONE](https://safekit.evidian.com/wp-content/uploads/2024/03/12-monitoring-alone-stop.png "View full size")](/wp-content/uploads/2024/03/12-monitoring-alone-stop.png)

### 11. Start node 2

* ⋯ `Start` node 2 with its contextual menu.
* Wait for the SECOND (green) state.

![Note](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Note](https://safekit.evidian.com/wp-content/uploads/2022/07/note.png)

Node 2 stays in the SECOND (orange) state while resynchronizing the replicated directories (copy from node 1 to node 2).

This may take a while depending on the size of files to resynchronize in replicated directories and the network bandwidth.

To see the progress of the copy, see the [module log 🖼️](/wp-content/uploads/2024/03/27-module-log-reintegration.png) and the [replication resources 🖼️](/wp-content/uploads/2024/03/26-replication-resources-reintegration.png) of node 2. Use the SafeKit AI 🤖 for assistance with log messages.

[![Start the PostgreSQL node 2](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20620%20686'%3E%3C/svg%3E "View full size")![Start the PostgreSQL node 2](https://safekit.evidian.com/wp-content/uploads/2024/03/13-monitoring-alone-stop-start.png "View full size")](/wp-content/uploads/2024/03/13-monitoring-alone-stop-start.png)

### 12. Verify that the cluster is operational

* Check that the cluster is green/green with PostgreSQL services running on the PRIM node and not running on the SECOND node.

Only changes inside files are replicated in real time in this state.

![Warning](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Warning](https://safekit.evidian.com/wp-content/uploads/2022/07/warning-small.png)

Components that are clients of PostgreSQL services must be configured with the virtual IP address. The configuration can be done with a DNS name (if a DNS name has been created and associated with the virtual IP address).

[![The PostgreSQL node 2 is SECOND (green)](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20604%20498'%3E%3C/svg%3E "View full size")![The PostgreSQL node 2 is SECOND (green)](https://safekit.evidian.com/wp-content/uploads/2024/03/14-monitoring-prim-second.png "View full size")](/wp-content/uploads/2024/03/14-monitoring-prim-second.png)

### 13. Testing

* Stop the PRIM node by scrolling down its contextual menu and clicking `Stop`.
* Verify that there is a failover on the SECOND node which should become ALONE (green).
* And with Microsoft Management Console (MMC) on Windows or with command lines on Linux, check the failover of PostgreSQL services (stopped on node 1 in the `stop_prim` script and started on node 2 in the `start_prim` script).

![Warning](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Warning](https://safekit.evidian.com/wp-content/uploads/2022/07/warning-small.png)

If ALONE (green) is not reached on node2 or if the application is not started, analyze why with the [module log 🖼️](/wp-content/uploads/2024/03/38-module-log-script-second.png) of node 2.

* Click the 🔍 **log** icon of `node2` to open the module log and look for error messages such as a checker detecting an error and stopping the module.
* Click on `start_prim` in the log: output messages of the script are displayed on the right and errors can be detected such as a service incorrectly started.
* Use the SafeKit AI 🤖 for assistance with log messages.

![Warning](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Warning](https://safekit.evidian.com/wp-content/uploads/2022/07/warning-small.png)

If everything is okay, initiate a start on node1, which will resynchronize the replicated directories from node2.

If things go wrong, stop node2 and [force the start as primary 🖼️](/wp-content/uploads/2024/03/10-monitoring-mirror-stop-stop-prim.png) of node1, which will restart with its locally healthy data at the time of the stop.

![Note](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Note](https://safekit.evidian.com/wp-content/uploads/2022/07/note.png)

Find more details, along with videos, in the [SafeKit Online Training](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-on-line-training/).

[![Stop the PostgreSQL module on the PRIM server](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20607%20586'%3E%3C/svg%3E "View full size")![Stop the PostgreSQL module on the PRIM server](https://safekit.evidian.com/wp-content/uploads/2024/03/16-monitoring-prim-second-stop.png "View full size")](/wp-content/uploads/2024/03/16-monitoring-prim-second-stop.png)

### 14. Support

* For getting support, take 2 SafeKit `Snapshots` (2 .zip files), one for each node.

![Note](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3C/svg%3E)![Note](https://safekit.evidian.com/wp-content/uploads/2022/07/note.png)

[More information on the support here](https://safekit.evidian.com/products/high-availability-software-for-application-clustering/safekit-support/).

[![Take the PostgreSQL snaphots for support](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20607%20443'%3E%3C/svg%3E "View full size")![Take the PostgreSQL snaphots for support](https://safekit.evidian.com/wp-content/uploads/2024/03/30-snapshots-mirror.png "View full size")](/wp-content/uploads/2024/03/30-snapshots-mirror.png)

## 🔍 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.
