Skip to content

Introduction

A virtual appliance can be used to deploy a PostgreSQL cluster.
This PostgreSQL cluster is typically operated with CyberElements Bastion platforms with cluster architecture to ensure end-to-end redundancy.

Note

Please note that the operation and updating of virtual appliances provided by Systancia are the responsibility of the Customer as defined in the product lifecycle.

The virtual appliance includes all the components needed to deploy a PostgreSQL cluster, as well as a utility to facilitate its installation. It can be downloaded from the Systancia Marketplace (requires creation of a customer account): Systancia Marketplace

The PostgreSQL cluster is based on three PostgreSQL nodes and the use of a virtual IP address.
The use of three nodes ensures service resilience even if one node is lost (two active nodes being the minimum). This works using the following components:

Together, they allow automated management of virtual IP and replication.

This PostgreSQL cluster does not have a node that is always designated as LEADER; the LEADER alternates depending on the circumstances encountered by the cluster. If the LEADER were to fail, a new LEADER would be elected by absolute majority and the virtual IP would switch to the latter. Note that it takes approximately 20 seconds to reliably identify the loss of the LEADER and switch the virtual IP to the new LEADER.
The LEADER node is the only one with read/write access to the PostgreSQL database; the REPLICA nodes are read-only.

The typical architecture of a CyberElements Bastion cluster based on a PostgreSQL cluster is as follows:

Cluster platform on a PostgreSQL cluster Two Mediation Controllers, MASTER and SLAVE, sit in the DMZ or the cloud. Each of the two Edge Gateways, in the LAN, opens a TLS tunnel to the SSL Router of each Mediation Controller (RIP_MC_SSL_MASTER and RIP_MC_SSL_SLAVE) and reaches the PostgreSQL cluster through its virtual IP address VIP_PSQL on TCP 5432. The three PostgreSQL nodes communicate on TCP 2379, 2380, 5432 and 8008. DMZ OR CLOUD VIP_MC LAN POSTGRESQL CLUSTER · VIP_PSQL Mediation Controller MASTER Mediation Controller SLAVE Edge Gateway 1 Edge Gateway 2 PostgreSQL node 1 PostgreSQL node 2 PostgreSQL node 3 Interconnection TCP 5432 TCP 5432 TCP 2379 · 2380 5432 · 8008 TCP 443 TCP 443 TLS tunnel to the Mediation Controller Infrastructure services

To install a PostgreSQL cluster with CyberElements virtual appliances, please follow the steps below: