diff --git a/src/lib/alarm/alarmItem.conf b/src/lib/alarm/alarmItem.conf index 6ed6ad950..df14b4ba9 100755 --- a/src/lib/alarm/alarmItem.conf +++ b/src/lib/alarm/alarmItem.conf @@ -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",""] diff --git a/src/manager/om/script/gspylib/common/Common.py b/src/manager/om/script/gspylib/common/Common.py index 61b61e99e..dccf2b3ae 100644 --- a/src/manager/om/script/gspylib/common/Common.py +++ b/src/manager/om/script/gspylib/common/Common.py @@ -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 diff --git a/src/manager/om/script/gspylib/component/Kernel/DN_OLAP/DN_OLAP.py b/src/manager/om/script/gspylib/component/Kernel/DN_OLAP/DN_OLAP.py index 29f120378..7acd7358a 100644 --- a/src/manager/om/script/gspylib/component/Kernel/DN_OLAP/DN_OLAP.py +++ b/src/manager/om/script/gspylib/component/Kernel/DN_OLAP/DN_OLAP.py @@ -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)