11 Star 1 Fork 16

src-openEuler/sysSentry

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
change-avg_block_io-config.patch 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
gaoruoshu 提交于 2024-11-05 10:37 . change avg_block_io config
From aaff413d6954003a3c21af21003c3bc134f940e2 Mon Sep 17 00:00:00 2001
From: gaoruoshu <gaoruoshu@huawei.com>
Date: Tue, 5 Nov 2024 10:31:10 +0800
Subject: [PATCH] change avg_block_io config
---
config/plugins/avg_block_io.ini | 8 ++++----
.../src/python/sentryPlugins/avg_block_io/config.py | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/config/plugins/avg_block_io.ini b/config/plugins/avg_block_io.ini
index 5c4b9b0..3b4ee33 100644
--- a/config/plugins/avg_block_io.ini
+++ b/config/plugins/avg_block_io.ini
@@ -12,12 +12,12 @@ win_size=30
win_threshold=6
[latency_nvme_ssd]
-read_avg_lim=300
-write_avg_lim=300
+read_avg_lim=10000
+write_avg_lim=10000
read_avg_time=3
write_avg_time=3
-read_tot_lim=500
-write_tot_lim=500
+read_tot_lim=50000
+write_tot_lim=50000
[latency_sata_ssd]
read_avg_lim=10000
diff --git a/src/python/sentryPlugins/avg_block_io/config.py b/src/python/sentryPlugins/avg_block_io/config.py
index c8f45ce..c1e8ab1 100644
--- a/src/python/sentryPlugins/avg_block_io/config.py
+++ b/src/python/sentryPlugins/avg_block_io/config.py
@@ -42,12 +42,12 @@ DEFAULT_PARAM = {
CONF_ALGO_SIZE: 30,
CONF_ALGO_THRE: 6
}, 'latency_nvme_ssd': {
- 'read_avg_lim': 300,
- 'write_avg_lim': 300,
+ 'read_avg_lim': 10000,
+ 'write_avg_lim': 10000,
'read_avg_time': 3,
'write_avg_time': 3,
- 'read_tot_lim': 500,
- 'write_tot_lim': 500,
+ 'read_tot_lim': 50000,
+ 'write_tot_lim': 50000,
}, 'latency_sata_ssd' : {
'read_avg_lim': 10000,
'write_avg_lim': 10000,
--
2.39.5 (Apple Git-154)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/sysSentry.git
git@gitee.com:src-openeuler/sysSentry.git
src-openeuler
sysSentry
sysSentry
master

搜索帮助