greenplum - 简单常用查看gp状态命令

  1. 启动/关闭
gpstart

gpstop -M fast
gpstop -m
gpstop --host sdw1 # 只关一个节点
  1. 查看状态
gpstate -b # brief status
gpstate -c # show primary to mirror mappings
gpstate -e # show segments with mirror status issues
gpstate -f # show standby master details
gpstate -i # show Greenplum Database version
gpstate -m # list mirrors
gpstate -p # show ports
gpstate -Q # quick status
gpstate -s # detailed status
  1. ANALYZE
analyzedb 
-d database 
-s schema 
-t schema.table 
-i col1,col2,col3 
-x col11,col12,col13
--skip_root_stats     This option is no longer used. Please remove it from
                      your scripts.
--gen_profile_only    Create cached state files to indicate specified table
                      or all tables have been analyzed.
--full                Analyze without using incremental. All tables
                      requested by the user will be analyzed.
--clean_last          Clean the state files generated by last analyzedb run.
                      All other options except -d will be ignored.
--clean_all           Clean all the state files generated by analyzedb. All
                      other options except -d will be ignored.

When to Run ANALYZE
Run ANALYZE:
after loading data,
after CREATE INDEX operations,
and after INSERT, UPDATE, and DELETE operations that significantly change the underlying data.

  1. 检查 catalog
gpcheckcat -U gpadmin -A -p 5432
  1. 节点性能
# 查看所有节点的磁盘性能及内存性能
gpcheckperf -f /usr/local/greenplum-dball_segments -d /data/greenplum/data1 -d /data/greenplum/data2 -r ds

# 节点之间磁盘性能
gpcheckperf -h sdw1 -h sdw2 -d /data1 -r d -D -v

# 查看节点之间网络状况
gpcheckperf -f /usr/local/greenplum-dball_segments -r N -d /tmp
  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值