修改om和gs_initdb工具所初始化的数据库节点的guc参数不一致的问题
This commit is contained in:
@ -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",""]
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user