更新日期:2024年09月11日
参数说明:系统表cache 在单个session 缓存的大小。
该参数属于PG_SIGHUP 类型参数,请参考表15-1 中对应设置方法进行设置。
如果enable_global_plancache 已打开,为保证GPC 生效,local_syscache_threshold 设置
值小于16MB 时不会生效,最小为16MB。
如果enable_global_plancache 和enable_thread_pool 打开,
该参数描述的是当前线程和绑
定到当前线程上的session 缓存的总大小。
GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
1182
取值范围:整型,1*1024 ~ 512*1024,单位KB。
默认值:on
在该步骤中可以设置rebalance 任务的优先级。先设置参数
gcluster_rebalancing_concurrent_count=0 阻止rebalance 任务被执行。然后利用
rebalance instance 把当前集群下所有表加入到gclusterdb.rebalancing_status 中。调整
GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
263
完每个表的rebalance 任务的优先级后再设置gcluster_rebalancing_concurrent_count
为需要的并发数,
开始执行数据重分布。
详细步骤参考章节调整rebalance 任务优先
级。
操作步骤
步骤1:初始化hashmap:
$ gccli -uroot
GBase client 9.5.3.17.117651. Copyright (c) 2004-2020, GBase.
All Rights Reserved.
gbase> initnodedatamap;
Query OK, 0 rows affected, 9 warnings (Elapsed: 00:00:01.45)
步骤2:执行数据重分布:
gbase> rebalance instance;
Query OK, 3 rows affected (Elapsed: 00:00:01.45)
查看rebalance 状态:
gbase> select index_name, status, percentage
from gclusterdb.rebalancing_status;
+------------+-----------+------------+
| index_name | status
| percentage |
+------------+-----------+------------+
| demo.ttt
| COMPLETED |
100 |
| demo.t
| COMPLETED |
100 |
| demo.tt
| COMPLETED |
100 |
+------------+-----------+------------+
3 rows in set (Elapsed: 00:00:00.07)
gbase> quit
Bye