返回首页

gbase数据、南大通用产品文档:GBase8a

更新日期:2024年09月11日

Virtual Clusters
A virtual cluster is developed based on a large-scale cluster, which includes multiple
virtual sub-clusters (VCs). Each VC runs independently within the entire cluster and
shares a unified entry. With permission, VCs can access each other.
The Coordinator node (including Gcluster node and Gcware node) and VC's data
node support running on the same physical node.
Unified Management
By dividing the cluster into virtual sub-clusters, the cluster can reach a scale of
thousands of nodes while providing a unified management view, enhancing the
cluster's scalability.
Unified access entry to the cluster
Figure 4-2. Unified access entry.

GBase 8a MPP Cluster Technical White Paper
- 24 -
General Data Technology Co., Ltd.
Users select any Coordinator node in the Coordinator cluster (which includes the
Gcluster scheduling cluster and the Gcware management cluster, usually deployed
together and referred to as the Coordinator cluster) as the cluster entry point. The
Coordinator node determines the default VC based on user input.
Note: The Coordinator node stores metadata for all VC databases and tables.
Business Isolation
Virtual clusters isolate resources vertically in the cluster, enabling physical resource
isolation for different businesses in real-world business scenarios.
Transparent Access
Virtual clusters provide a unified access point, and accessing multiple physical
clusters is transparent to the application, which appears to be a unified cluster.

环境要求
表4- 81 环境要求
名称
硬件
(CPU/RAM/HD)
操作系统及其版本
其它软件环境
资源管理
功能
同集群硬件运行环
境要求
RedHat 7.3 or later


libcgroup

libcgroup-devel
同集群硬件运行环
境要求
Suse 11 SP3 or later
安装
libcgroup1-*.src.rpm后生
成并安装libcgroup 和
libcgroup-devel
配置要求

集群所有节点必须安装libcgroup 和libcgroup-devel rpm 包。GBase 8a MPP
Cluster 安装时会检查rpm 包是否安装,如未安装,需要由用户手动安装rpm
包,否则不能使用资源管理功能。

资源管理启动之前确保cgconfig 服务已启动。

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
478

在配置环境变量前必须执行./SetSysEnv.py --cgroup
操作步骤
步骤1 安装软件包。
# rpm –ivh libcgroup-0.37-3.el6.x86_64.rpm
# rpm –ivh libcgroup-devel-0.37-3.el6.x86_64.rpm
步骤2 启动服务。
RHEL6 中:
# service cgconfig start
RHEL7 中:
# systemctl start cgconfig.service
步骤3 查看cgroup 服务是否启动成功。
RHEL6 中:
# service cgconfig status
RHEL7 中:
# systemctl status cgconfig.service



sword GCILogon(
GCIEnv *envhp,
GCIError *errhp,
GCISvcCtx **svchp,
CONST GCIText *username,
ub4 uname_len,
CONST GCIText *password,
ub4 passwd_len,
CONST GCIText *dbname,
ub4 dbname_len
);

根据数据库服务名、用户名和密码,登录到一个指定的数据库服务上,并初始化相关上
下文句柄。

参数
输入
/输出


envhp
输入
操作所在的环境句柄
errhp
输入
错误信息句柄,该接口调用失败时将错误码及错误信息写入
该句柄
svchp
输入/输出
该接口内会自动生成一个当前环境句柄下的上下文句柄,并
将地址保存到该指针
username
输入
登录的用户名
uname_len
输入
登录的用户名的长度
password
输入
登录的口令
passwd_len
输入
登录的口令的长度
dbname
输入
当GCI参数connect_mode为1时表示数据库服务名,为2时表
示为数据源名称
dbname_len
输入
dbname的长度

如果执行成功,返回GCI_SUCCESS,否则返回GCI_ERROR。 注释:

建立连接之后需要通过调用GCILogoff来断开连接。当dbname为空时使用默认数据库
gci_demodb。



GBase 8s GCI 接口使用指南

南大通用数据技术股份有限公司 28