stolonctl
Stolon PostgreSQL HA cluster manager
TLDR
Get cluster status
SYNOPSIS
stolonctl [--cluster-name name] command [options]
DESCRIPTION
stolonctl is the command-line management interface for Stolon, a cloud-native PostgreSQL high-availability manager. It provides administrative control over Stolon clusters, including viewing cluster status, initializing new clusters, updating configuration specifications, and triggering manual failovers.
The tool communicates with Stolon's store backend (typically etcd or Consul) to read and modify cluster state. The cluster specification defines replication settings, synchronous replication policies, automatic failover behavior, and PostgreSQL configuration parameters. Changes applied through stolonctl are picked up by the Stolon components (sentinels, keepers, and proxies) running in the cluster.
Stolonctl is essential for day-to-day operations such as inspecting which keeper is the current master, forcing a failover to a different keeper, and adjusting cluster parameters without downtime. It is commonly deployed alongside Kubernetes-based Stolon installations but also works with standalone deployments.
PARAMETERS
--cluster-name NAME
Cluster name.status
Show status.init
Initialize cluster.spec
Show specification.update
Update configuration.--store-backend TYPE
Backend type.
CAVEATS
Stolon deployment required. Kubernetes or etcd. PostgreSQL specific.
HISTORY
stolonctl is the CLI for Stolon, a cloud-native PostgreSQL high-availability manager.
