查看集群状态

1.1 查看集群状态

mxstate     # 查看集群状态
mxstate -s  # 查看整个 YMatrix 集群的状态
mxstate -m  # 查看 Mirror 的 List
mxstate -f  # 查看 Standby Master 的信息

1.2 查看与修改配置参数

显示配置值:

gpconfig -s {GUC}

# 例:查看允许最大连接数
gpconfig -s max_connections

修改配置值:

gpconfig -c {GUC} -v {Value} -m {Value} #-m 指定master节点参数值,-v 指定segment节点参数值
gpconfig -c {GUC} -v {Value} #当不指定-m时,master节点的参数修改和segment节点一致

# 例:
gpconfig -c max_connections -v 1000 -m 300
gpconfig -c shared_buffers -v 2GB

更多相关内容可查看集群基本管理