返回首页

gbase数据、南大通用产品文档:GBase8a删除旧的distribution

更新日期:2024年09月11日

功能说明
确保所有数据rebalance 完成后,可以将旧的distribution 删掉,将被替换节点从虚
拟集群中移除。
操作步骤
步骤1:将旧的distribution(Distribution ID 3)删掉,将被替换节点从虚拟集群中
移除。
$ gcadmin rmdistribution 3 vc vc1
cluster distribution ID [3]
it will be removed now
please ensure this is ok, input [Y,y] or [N,n]: y
select count(*) from gbase.nodedatamap where data_distribution_id=3 result is
not 0
refreshnodedatamap drop 3 success
gcadmin remove distribution [3] success
完成后的集群信息如下:
$ gcadmin
CLUSTER STATE:
ACTIVE
===========================================================
=====
|
GBASE COORDINATOR CLUSTER INFORMATION

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
324
|
===========================================================
=====
|
NodeName
|
IpAddress
| gcware | gcluster | DataState |
----------------------------------------------------------------
| coordinator1 | 172.168.83.11 |
OPEN
|
OPEN
|
0
|
----------------------------------------------------------------
| coordinator2 | 172.168.83.12 |
OPEN
|
OPEN
|
0
|
----------------------------------------------------------------
| coordinator3 | 172.168.83.13 |
OPEN
|
OPEN
|
0
|
----------------------------------------------------------------
=======================================================
|
GBASE VIRTUAL CLUSTER INFORMATION
|
=======================================================
|
VcName
| DistributionId |
comment
|
-------------------------------------------------------
|
vc1
|
4
| comment message vc1 |
-------------------------------------------------------
|
vc2
|
2
| comment message vc2 |
-------------------------------------------------------
2 virtual cluster: vc1, vc2
3 coordinator node
0 free data node
$ gcadmin showdistribution vc vc1
Distribution ID: 4 | State: new | Total segment num: 3
Primary Segment Node IP
Segment ID
Duplicate Segment node IP
===========================================================
=======
|

in 子查询结果集的distinct 行数限制
_gbase_in_subquery_result_threshold

GBase 8a MPP Cluster 最佳实践
4 参数调优
文档版本(2022-02-11)
南大通用数据技术股份有限公司
37
_gbase_in_subquery_result_threshold 参数用于限制in 子查询结果集的distinct
行数。取值范围[0,1 亿],取值为0 时表示不限制,默认取值为1000 万。
可根据业务场景情况进行该值的调整。

单实例扩容为多实例报/tmp/license.log 权限错误
问题现象
单实例扩容为多实例报错/tmp/license.log 权限不足
解决方法:
扩容前原集群使用root 用户安装,扩容时需要使用DBA(gbase)用户执行
gcinstall.py,所以需要将/tmp/license.log 文件权限给予gbase 用户写权限。
chmod 666 /tmp/license.log

文档版本(2022-01-18)
南大通用数据技术有限公司
-
171 -