HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

stolonctl — CLI for Stolon, a cloud native PostgreSQL manager for PostgreSQL high availability. More information

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandstolonctlcloudnativeclistolonfor

Problem

How to use the stolonctl command: CLI for Stolon, a cloud native PostgreSQL manager for PostgreSQL high availability. More information: <https://github.com/sorintlab/stolon/blob/master/doc/commands/stolonctl.md>.

Solution

stolonctl — CLI for Stolon, a cloud native PostgreSQL manager for PostgreSQL high availability. More information: <https://github.com/sorintlab/stolon/blob/master/doc/commands/stolonctl.md>.

Get cluster status:
stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} status


Get cluster data:
stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} clusterdata


Get cluster specification:
stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} spec


Update cluster specification with a patch in JSON format:
stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} update --patch '{{cluster_spec}}'

Code Snippets

Get cluster status

stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} status

Get cluster data

stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} clusterdata

Get cluster specification

stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} spec

Update cluster specification with a patch in JSON format

stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} update --patch '{{cluster_spec}}'

Context

tldr-pages: common/stolonctl

Revisions (0)

No revisions yet.