返回首页

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

更新日期:2024年09月11日

功能参数
Kafka consumer 功能是默关闭的,
如果需要使用kafka consumer 实时同步OLTP
的数据则需要开启和设置如下参数:
gcluster_kafka_consumer_enable=1
gcluster_lock_level=10
_gbase_transaction_disable=1
gbase_tx_log_mode=NO_USE,ONLY_SPECIFY_USE,NO_STANDARD_TRANS

GBase 8a MPP Cluster 最佳实践
4 参数调优
文档版本(2022-02-11)
南大通用数据技术股份有限公司
45
同时也需要在gnode 上配置同样的_gbase_transaction_disable 、
gbase_tx_log_mode 参数取值。
在未设置这些参数的情况下执行start kafka consumer consumer_name 启动命
令,报错信息如下:
ERROR 1707 (HY000): gcluster command error: param gcluster_lock_level
must be 10.
ERROR 1707 (HY000): gcluster command error: param gcluster_lock_level
must be 10.
ERROR 1707 (HY000): gcluster command error: gnode parameter "_gbase_tr
ansaction_disable" must be 1.
ERROR 1707 (HY000): gcluster command error: gnode parameter "gbase_tx_
log_mode" must be NO_USE,ONLY_SPECIFY_USE,NO_STANDARD_TRANS.

示例
清理主机的环境
[root@gbasehost ~]$ gs_postuninstall -U gbase -X
/opt/software/gbase/clusterconfig.xml --delete-user
Parsing the configuration file.
Successfully parsed the configuration file.
Check log file path.
Successfully checked log file path.
Checking unpreinstallation.
Successfully checked unpreinstallation.
Deleting the instance's directory.
Successfully deleted the instance's directory.
Deleting the installation directory.
Successfully deleted the installation directory.
Deleting the temporary directory.
Successfully deleted the temporary directory.
Deleting remote OS user.
Successfully deleted remote OS user.
Deleting software packages and environmental variables of other nodes.
Successfully deleted software packages and environmental variables of other
nodes.
Deleting logs of other nodes.
Successfully deleted logs of other nodes.
Deleting software packages and environmental variables of the local node.
Successfully deleted software packages and environmental variables of the local
nodes.
Deleting local OS user.
Successfully deleted local OS user.

GBase 8c 工具参考手册
南大通用数据技术股份有限公司
230
Deleting local node's logs.
Successfully deleted local node's logs.
Successfully cleaned environment.

GBase 8c 数据库运行时,集群和节点安装部署时产生的日志统称为系统日志。如果在
数据库运行时发生故障,
可以通过这些系统日志及时定位故障发生的原因,
根据日志内容制
定恢复GBase 8c 的方法。
日志文件存储路径
数据库节点的运行日志放在“/home/gbase/gbase8c/log/pg_log”中各自对应的目录下。
OM GBase 8c 安装卸载时产生的日志放在“/home/gbase/gbase8c/log/om”目录下。
日志文件命名格式
数据库节点运行日志的命名规则:
postgresql-创建时间.log
默认情况下,每日0 点或者日志文件大于16MB 或者数据库实例(数据库节点)重新
启动后,会生成新的日志文件。
CM 的运行日志的命名规则:

cm_agent 的日志:
cm_agent-创建时间.log/cm_agent-创建时间-current.log/system_call-创建时
间.log/system_call-创建时间-current.log

cm_server 的日志:
cm_server-创建时间.log/cm_server-创建时间-current.log/key_event-创建时
间.log/key_event-创建时间-current.log

om_monitor 的日志:
om_monitor-创建时间.log/om_monitor-创建时间-current.log
其中,
不带current 标识符的文件是历史日志文件,
带current 标识符的文件是当前日志
文件。最初调用进程时,进程会先创建一个带current 标识符的日志文件,当该日志文
件的大小超过16MB 时,会将当前日志文件重命名为历史日志文件,并以当前时间生
成新的当前日志文件。

GBase 8c 管理员指南
南大通用数据技术股份有限公司
122
日志内容说明
数据库节点每一行日志内容的默认格式:
日期+时间+时区+用户名称+数据库名称+会话ID+日志级别+日志内容
cm_agent、cm_server、om_monitor 每一行日志内容的默认格式:
时间+时区+会话ID+日志内容
SYSTEM_CALL 系统调用日志,
记录CM_AGENT 在运行过程中调用工具命令的情况。
key_event 每一行日志内容的默认格式:
时间+线程号+线程名: 关键事件类型+仲裁对象实例ID+仲裁细节