From e76dadec2c8f0132cfc5db4a8b9032d09e83fbb4 Mon Sep 17 00:00:00 2001 From: "@luo_zihao5524" <1165977584@qq.com> Date: Tue, 22 Dec 2020 15:40:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9om=E5=92=8Cgs=5Finitdb?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=89=80=E5=88=9D=E5=A7=8B=E5=8C=96=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=8A=82=E7=82=B9=E7=9A=84guc?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/alarm/alarmItem.conf | 2 +- src/manager/om/script/gspylib/common/Common.py | 2 +- .../om/script/gspylib/component/Kernel/DN_OLAP/DN_OLAP.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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)