2025-03-14 21:59:59 -06:00
|
|
|
# stolonctl
|
|
|
|
|
|
|
|
|
|
> CLI for Stolon, a cloud native PostgreSQL manager for PostgreSQL high availability.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://github.com/sorintlab/stolon/blob/master/doc/commands/stolonctl.md>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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}}'`
|