Home  Postgress   Postgresql ...

PostgreSQL Cluster

A PostgreSQL Cluster refers to the entire collection of database servers (the Primary and all its Standbys) that work together to provide high availability and replication.

It's a way of grouping the machines that all share the same data.


What the "Cluster" Includes

Think of the cluster as the complete "team" responsible for handling your database workload:

  1. The Primary/Publisher: The one server that currently handles all the write traffic.
  2. The Standby(s)/Subscriber(s): The one or more servers that hold copies of the data, ready to take over or handle read traffic.
  3. The Configuration: All the shared settings, network rules, and the continuous WAL archiving that keeps the servers connected and synchronized.
  4. The HA Manager (e.g., Patroni): The separate program that constantly monitors the team and performs the automatic failover (promotion) if the Primary server fails.

Essentially, when a developer talks about the "database cluster," they aren't talking about just one server; they're talking about the system of two or more synchronized servers that act as a single, resilient unit.

Cluster vs. Single Server

Published on: Oct 01, 2025, 02:32 AM  
 

Comments

Add your comment