返回首页

gbase数据、南大通用产品文档:GBase8a规划方案

更新日期:2024年09月11日

集群规模及节点类型建议

GBase 8a MPP Cluster 产品手册
2 产品概述
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
24
根据集群规模建议集群中Data 节点、GCluster 节点和GCware 节点个数分配如下:
表2- 1 GBase8a MPP Cluster 节点类型分配
Data 节点个数(以下用D 代
替,单位:个)
Coordinator 节点个数
(单位:
个)Gcware 节点个数
(单位:
个)
D<10
3
3 或与coordinator 节点数相同
10≤D<30
5
3 或与coordinator 节点数相同
30≤D<100
7 或9
3 或与coordinator 节点数相同
D≥100
9 或11
3 或与coordinator 节点数相同
集群部署方案建议

对称部署
将GCWare、GCluster 和GNode 部署在同一节点,即同一服务器既是Coordinator
节点也是Data 节点。

非对称部署
将GCWare、GCluster 和GNode 部署在不同节点上

将GCluster Cluster、GCware Cluster、Data Cluster 分别部署在不同的服务
器上;

将GCluster Cluster 和GCware Cluster 部署在一台服务器上,
将Data Cluster
部署在单独的服务器上。
注意
GCluster Cluster、GCware Cluster 和Data Cluster 都要求网络互通且通信
质量优良;

GBase 8s ODBC Driver从客户端计算机的一个位置检索行或集合到客户端计算机上的另一
个位置时,执行本地访存。
本地访存在 SQL 数据转换上具有以下限制:
 GBase 8s ODBC Driver无法转换在数据库服务器上强制转型函数的扩展数据类型。
 GBase 8s ODBC Driver无法将一个命名行类型转换为另一种类型。只有数据库服务器
可以执行此类型的转换。
 在检索整个行或集合时,
GBase 8s ODBC Driver 无法转换 SQL 数据类型。
因此,

有在源和目标的内部结构相同或者目标是不固定型缓冲区时,GBase 8s ODBC Driver
可以执行整个行或集合的本地访存。
例如,如果您将本地集合定义为 list (char(1) not null),数据库服务器可以将 list (int
not null)值从数据库服务器放到本地集合中。在此操作期间,数据库服务器将每个整
数转换为字符串,
并建立新的列表返回到客户端计算机。
在将本地整数列表检索到字
符列表时,不能在客户端计算机上执行此操作。
执行本地访存:
1.
调用 ifx_rc_create() 分配一个行或集合缓冲区。
2.
调用 SQLBindCol() 绑定缓冲区来处理本地行或集合。
3.
执行 SELECT 语句将行或集合数据传输到本地缓冲区。
4.
对于行或集合中的每一个元素,调用 ifx_rc_fetch() 将值复制到缓冲区。
5.
使用行或集合缓冲区。
6.
调用 ifx_rc_free() 释放缓冲区。

获取帮助
使用SQLdiag 工具前,您可以通过以下指令获取帮助。
gs_dbmind component sqldiag --help
显示如下帮助信息:
usage:
[-h] [-f CSV_FILE] [--predicted-file PREDICTED_FILE]
[--model {template,dnn}] --model-path MODEL_PATH
[--config-file CONFIG_FILE]
{train,predict,finetune}
SQLdiag integrated by openGauss.
positional arguments:
{train,predict,finetune}
The training mode is to perform feature extraction and
model training based on historical SQL statements. The
prediction mode is to predict the execution time of a
new SQL statement through the trained model.
optional arguments:
-h, --help
show this help message and exit
-f CSV_FILE, --csv-file CSV_FILE
The data set for training or prediction. The file
format is CSV. If it is two columns, the format is
(SQL statement, duration time). If it is three

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
398
columns, the format is (timestamp of SQL statement
execution time, SQL statement, duration time).
--predicted-file PREDICTED_FILE
The file path to save the predicted result.
--model {template,dnn}
Choose the model model to use.
--model-path MODEL_PATH
The storage path of the model file, used to read or
save the model file.
--config-file CONFIG_FILE