返回首页

gbase数据、南大通用产品文档:GBase8afreenode 替换纯data 节点

更新日期:2024年09月11日

替换说明

检查参数,被替换节点应为unavailable 状态,集群状态应为normal。

使用replace.py 脚本执行节点替换操作。

节点替换成功,
打印提示信息,
提示用户执行rebalance,
将数据从old distribution
重分布到节点替换成功后新创建的distribution 上,在rebalance 成功后可用
gcadmin 命令删除无用的distribution。

使用freenode 替换数据节点成功后,被替换节点由freenode 替代,在新生成的
distribution 中开始工作,
被替换节点状态为REPLACE,
需在rebalance 完成后,
使用gcadmin 命令将其从集群中删除。
替换步骤
步骤1
将被替换节点设置为unavailable:在操作系统的DBA 用户(demo.options 文件中
dbauser 参数指定的用户)下运行gcadmin setnodestate 命令设置要替换的节点状态
为UNAVAILABLE。
以七节点集群为例(以下步骤均以该集群的节点替换为例):

获取帮助
模块命令行说明:
gs_dbmind component forecast --help
usage: [-h] -c DIRECTORY [--metric-name METRIC_NAME] [--host HOST] [--start-time
TIMESTAMP_IN_MICROSECONDS] [--end-time TIMESTAMP_IN_MICROSECONDS]
[--retention-days DAYS]
{show,clean}
Workload Forecasting: Forecast monitoring metrics positional arguments:
{show,clean}choose a functionality to perform
optional arguments:

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
394
-h, --help
show this help message and exit
-c DIRECTORY, --conf DIRECTORY
set the directory of configuration files
--metric-name METRIC_NAME
set a metric name you want to retrieve
--host HOST set a host you want to retrieve
--start-time TIMESTAMP_IN_MICROSECONDS
set a start time of for retrieving
--end-time TIMESTAMP_IN_MICROSECONDS
set a end time of for retrieving
--retention-days DAYS
clear historical diagnosis results and set the maximum number of days to retain data

gcluster_ddl_parallel_execute
取值:[0|1]
默认值:0
说明:这个参数用于控制DDL 并行或者串行执行。
参数= 0:串行执行;
参数= 1:并行执行。
修改方式:
可使用set 语句修改值也可在配置文件中修改值。
适用于session、
global
范围均可。

GBase 8a MPP Cluster 参数手册
文档版本2022-06-07
南大通用数据技术股份有限公司
53