返回首页

gbase数据、南大通用产品文档:GBase8a检查节点状态清理feventlog

更新日期:2024年09月11日

检查节点状态,集群状态应为normal,Coordinator 节点状态正常,被替换节点的
DATA NODE INFORMATION 状态为unavailable 状态。
操作步骤
步骤1:检查节点状态,集群状态应为normal,Coordinator 节点状态正常,被替换
的节点为DATA NODE,且状态为unavailable。
$ gcadmin showcluster vc vc2
CLUSTER STATE:
ACTIVE
VIRTUAL CLUSTER MODE:
NORMAL
===============================================
|
GBASE VIRTUAL CLUSTER INFORMATION
|
===============================================
|
VcName
| DistributionId |
comment
|
-----------------------------------------------
|
vc2
|
2
| vc2comments |
-----------------------------------------------
================================================================
========
|
VIRTUAL CLUSTER DATA NODE INFORMATION
|
================================================================

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
340
========
|NodeName|
IpAddress
|DistributionId|
gnode
|syncserver|DataState|
------------------------------------------------------------------------
| node1
|172.168.83.13|
2
|UNAVAILABLE|
|
|
------------------------------------------------------------------------
| node2
|172.168.83.14|
2
|
OPEN
|
OPEN
|
0
|
------------------------------------------------------------------------
2 data node
步骤3:删除被替换节点的feventlog。
$ gcadmin rmfeventlog 172.168.83.13
after rmfeventlog 172.168.83.13, fevent log will be removed, must run gcadmin
replacenodes to replace this node.
you realy want to remove node 172.168.83.13 fevent log(yes or no)?
yes
delete ddl event log on node 172.168.83.13 start
delete ddl event log on node 172.168.83.13 end
delete dml event log on node 172.168.83.13 start
delete dml event log on node 172.168.83.13 end
delete dml storage event log on node 172.168.83.13 start
delete dml storage event log on node 172.168.83.13 end

对于查询结果集达到1 万以上,尤其是百万、千万的结果集,应避免结果集的直
接返回,将原始select 修改为insert select,即将查询结果插入到一个结果表中或
者在客户端输出时要加-q 参数。

GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
1336

功能
记录所有执行过的select 语句的功能。
参数取值含义说明

0 是关闭;

1 是开启。
默认为0。
表6- 69 参数值范围说明表
默认值
最小值
最大值
0
0
1