Databases 3 min read

Introducing Stolon: Cloud‑Native High‑Availability for PostgreSQL

Stolon is an open‑source, cloud‑native manager that provides high‑availability for PostgreSQL by leveraging streaming replication, supporting any topology, integrating with Kubernetes, and using etcd, Consul, or the Kubernetes API for leader election and cluster storage.

Hacker Afternoon Tea
Hacker Afternoon Tea
Hacker Afternoon Tea
Introducing Stolon: Cloud‑Native High‑Availability for PostgreSQL

Stolon is an open‑source, cloud‑native manager that enables high‑availability PostgreSQL deployments across containers, Kubernetes clusters, public IaaS, and legacy infrastructures.

Key Features

Uses PostgreSQL streaming replication.

Works with any topology; prefers consistency over availability while striving for maximum uptime.

Kubernetes integration provides automated PostgreSQL HA.

Supports etcd, Consul, or the Kubernetes API server as the distributed store for leader election and cluster state.

Offers asynchronous (default) and synchronous replication modes.

Cluster can be set up within minutes.

Simplified cluster management.

Integrates with preferred backup/restore tools for point‑in‑time recovery.

Provides a standby cluster for multi‑site replication and near‑zero‑downtime migrations.

Automatic service discovery and dynamic reconfiguration handle changes to PostgreSQL and Stolon process addresses.

Supports rapid instance resynchronization with pg_rewind against the current master.

Architecture

Stolon consists of three main components:

Keeper : runs a PostgreSQL instance and converges it to the cluster view calculated by the sentinel.

Sentinel : monitors keepers and proxies, discovers failures, and computes the optimal cluster view.

Proxy : serves as the client entry point, routing connections to the current PostgreSQL master and terminating connections to the former master.

Stolon architecture diagram
Stolon architecture diagram
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

cloud nativeHigh AvailabilitykubernetesConsulPostgreSQLetcdStolon
Hacker Afternoon Tea
Written by

Hacker Afternoon Tea

You might find something interesting here ^_^

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.