v1.1
- 关于PTK
- 快速上手
- 安装PTK
- 使用手册
- 配置文件字段说明
- 配置文件示例
- 命令介绍
- ptk
- ptk completion
- ptk register
- ptk collect
- ptk rec-guc
- ptk cache
- ptk gen-ptkc
- ptk manage
- ptk demo
- ptk meta
- ptk version
- ptk self
- ptk gen-om-xml
- ptk env
- ptk gen-static-config
- ptk cluster
- ptk cluster uninstall-cm
- ptk cluster install-cm
- ptk cluster gen-cert-files
- ptk cluster load-cm-vip
- ptk cluster del-kerberos-auth
- ptk cluster add-kerberos-auth
- ptk cluster uninstall-kerberos-server
- ptk cluster install-kerberos-server
- ptk cluster is-in-upgrade
- ptk cluster upgrade-rollback
- ptk cluster upgrade-commit
- ptk cluster upgrade
- ptk cluster demote
- ptk cluster promote
- ptk cluster refresh
- ptk cluster shell
- ptk cluster modify-comment
- ptk cluster show-config
- ptk cluster set-guc
- ptk cluster show-guc
- ptk cluster set-hba
- ptk cluster show-hba
- ptk cluster scale-out
- ptk cluster scale-in
- ptk cluster uninstall-mogha
- ptk cluster install-mogha
- ptk cluster list-plugins
- ptk cluster install-plugin
- ptk cluster inspect
- ptk cluster failover
- ptk cluster switchover
- ptk cluster build
- ptk cluster status
- ptk cluster restart
- ptk cluster stop
- ptk cluster start
- ptk uninstall
- ptk ls
- ptk install
- ptk exec
- ptk template
- ptk encrypt
- ptk checkos
- ptk download
- ptk candidate
- 故障排查
- 常见问题
- 发布记录
- GPTK - 图形化部署工具
- 社区
- 附录:YAML语法
ptk cluster
管理集群
语法
ptk cluster [flags]
选项
-n, --name string
- 说明: 集群名称
- 数据类型: string
- 默认值: ""
从父命令继承的选项
--disable-color
- 说明: 禁用彩色日志
- 数据类型: bool
- 默认值: false
--disable-debug-log
- 说明: 不生成调试日志文件
- 数据类型: bool
- 默认值: false
--disable-progressbar
- 说明: 全局不显示进度条
- 数据类型: bool
- 默认值: false
-h, --help
- 说明: 打印帮助信息
- 数据类型: bool
- 默认值: false
--log-file string
- 说明: 指定运行日志文件路径
- 数据类型: string
- 默认值: ""
--log-format string
- 说明: 指定运行日志的输出格式, 可选项: [text, json]
- 数据类型: string
- 默认值: "text"
--log-level string
- 说明: 指定运行日志级别, 可选项: [debug, info, warning, error, panic]
- 数据类型: string
- 默认值: "info"
--silence
- 说明: 不打印日志到标准输出
- 数据类型: bool
- 默认值: false
--skip-fix-ssh
- 说明: 无需通过交互修复 ssh 连接
- 数据类型: bool
- 默认值: false
开始支持的版本
v0.1
另请参阅
- ptk - Provisioning Toolkit for MogDB
- ptk cluster add-kerberos-auth - Add kerberos auth
- ptk cluster build - Rebuild db data
- ptk cluster del-kerberos-auth - Delete kerberos auth
- ptk cluster demote - Demote a datanode from primary to standby or from standby to cascade_standby
- ptk cluster failover - Promote a standby server to primary.
- ptk cluster gen-cert-files - Generate ssl certification file
- ptk cluster inspect - Return low-level information on cluster
- ptk cluster install-cm - Install CM component
- ptk cluster install-kerberos-server - Install kerberos server
- ptk cluster install-mogha - Install MogHA for MogDB
- ptk cluster install-plugin - Install plugins for MogDB
- ptk cluster is-in-upgrade - Whether cluster is in the process of upgrade
- ptk cluster list-plugins - List plugins in cluster
- ptk cluster load-cm-vip - Manage cm vip (only support MogDB v5.0.4+)
- ptk cluster modify-comment - Modify comment of specified cluster
- ptk cluster promote - Promote a datanode from standby to primary or from cascade_standby to standby
- ptk cluster refresh - Refresh cluster configs
- ptk cluster restart - Restart db instance or cluster
- ptk cluster scale-in - Scale in a MogDB cluster
- ptk cluster scale-out - Scale out a MogDB cluster
- ptk cluster set-guc - Set and reload database parameters
- ptk cluster set-hba - Set and reload pg_hba.conf content of database
- ptk cluster shell - Execute shell command or script
- ptk cluster show-config - Print cluster config yaml
- ptk cluster show-guc - Print database parameters
- ptk cluster show-hba - Print pg_hba.conf content of database
- ptk cluster start - Start db instance or cluster
- ptk cluster status - Show status of db instance or cluster
- ptk cluster stop - Stop db instance or cluster
- ptk cluster switchover - Promote a standby server to primary and demote primary server to standby
- ptk cluster uninstall-cm - Uninstall CM component
- ptk cluster uninstall-kerberos-server - Uninstall kerberos server
- ptk cluster uninstall-mogha - Uninstall MogHA for MogDB
- ptk cluster upgrade - Upgrade cluster to higher version
- ptk cluster upgrade-commit - Confirm to commit upgrade operation (!can not rollback if done)
- ptk cluster upgrade-rollback - Rollback upgrade process