diff --git a/pages/common/stolonctl.md b/pages/common/stolonctl.md new file mode 100644 index 0000000000..24a639e7a5 --- /dev/null +++ b/pages/common/stolonctl.md @@ -0,0 +1,19 @@ +# Stolon + +> A cloud native PostgreSQL manager for PostgreSQL high availability. + +- 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}}'`