修改om和gs_initdb工具所初始化的数据库节点的guc参数不一致的问题

This commit is contained in:
@luo_zihao5524
2020-12-22 15:40:33 +08:00
parent 6daed9a95e
commit e76dadec2c
3 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@
1078919257 TransactionReadOnly ���ݿ�ֻ�� Database is read only ���ݿ�ֻ�� critical
#used for om_monitor
alarm_component = /opt/huawei/snas/bin/snas_cm_cmd
alarm_component = /opt/snas/bin/snas_cm_cmd
alarm_report_interval = 10
alarm_report_max_count = 5
#alarm scope should be json string:["A","B","C",""]

View File

@ -331,7 +331,7 @@ class DefaultValue():
# default cluster config xml
CLUSTER_CONFIG_PATH = "/opt/huawei/wisequery/clusterconfig.xml"
# default alarm tools
ALARM_COMPONENT_PATH = "/opt/huawei/snas/bin/snas_cm_cmd"
ALARM_COMPONENT_PATH = "/opt/snas/bin/snas_cm_cmd"
# GPHOME
CLUSTER_TOOL_PATH = "/opt/huawei/wisequery"
# root scripts path

View File

@ -382,12 +382,12 @@ class DN_OLAP(Kernel):
self.setPrimaryStandyConnInfo(peerInsts)
else:
tmpDict1 = {}
tmpDict1["synchronous_commit"] = "off"
tmpDict1["synchronous_commit"] = "on"
self.setGucConfig(tmpDict1)
if syncNum == 0 or (syncNum == -1 and len(peerInsts) == 1):
tmpDict1 = {}
tmpDict1["synchronous_commit"] = "off"
tmpDict1["synchronous_commit"] = "on"
self.setGucConfig(tmpDict1)