Files
tldr/pages.zh/common/stolonctl.md

20 lines
819 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# stolonctl
> Stolon的命令行工具一个用于PostgreSQL高可用性的云原生PostgreSQL管理器。
> 更多信息:<https://github.com/sorintlab/stolon>。
- 获取集群状态:
`stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} status`
- 获取集群数据:
`stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} clusterdata`
- 获取集群规范:
`stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} spec`
- 使用JSON格式的补丁更新集群规范
`stolonctl --cluster-name {{cluster_name}} --store-backend {{store_backend}} --store-endpoints {{store_endpoints}} update --patch '{{cluster_spec}}'`