diff --git a/sysSentry.spec b/sysSentry.spec index 07d0fb9c3a5fb8d98cb2c7118b05e3e1460d91f5..f2ffd1c7c7b2b57536a4774efb5648019fd3828e 100644 --- a/sysSentry.spec +++ b/sysSentry.spec @@ -4,7 +4,7 @@ Summary: System Inspection Framework Name: sysSentry Version: 1.0.2 -Release: 65 +Release: 66 License: Mulan PSL v2 Group: System Environment/Daemons Source0: https://gitee.com/openeuler/sysSentry/releases/download/v%{version}/%{name}-%{version}.tar.gz @@ -81,6 +81,7 @@ Patch68: get_alarm-d-abnomal-display.patch Patch69: modify-logrotate-rule.patch Patch70: fix-excessive-CPU-usage.patch Patch71: change-avg_block_io-config.patch +Patch72: update-nvme-config.patch BuildRequires: cmake gcc-c++ BuildRequires: python3 python3-setuptools @@ -352,6 +353,12 @@ rm -rf %{buildroot} %attr(0550,root,root) %{python3_sitelib}/sentryCollector/__pycache__/collect_plugin* %changelog +* Tue Nov 5 2024 zhangnan - 1.0.2-66 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:update nvme config + * Tue Nov 5 2024 gaoruoshu - 1.0.2-65 - Type:bugfix - CVE:NA diff --git a/update-nvme-config.patch b/update-nvme-config.patch new file mode 100644 index 0000000000000000000000000000000000000000..b97a42c98d83db9a0b55020e9f7d45990106fe2d --- /dev/null +++ b/update-nvme-config.patch @@ -0,0 +1,51 @@ +From f50b4e1b7f5fa38b1930349b1a9a905eb5307ab7 Mon Sep 17 00:00:00 2001 +From: znzjugod +Date: Tue, 5 Nov 2024 11:47:56 +0800 +Subject: [PATCH] update nvme config + +--- + config/plugins/ai_block_io.ini | 8 ++++---- + src/python/sentryPlugins/ai_block_io/config_parser.py | 8 ++++---- + 2 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/config/plugins/ai_block_io.ini b/config/plugins/ai_block_io.ini +index d0b1e74..69f44ba 100644 +--- a/config/plugins/ai_block_io.ini ++++ b/config/plugins/ai_block_io.ini +@@ -23,10 +23,10 @@ read_tot_lim=50000 + write_tot_lim=50000 + + [latency_nvme_ssd] +-read_avg_lim=300 +-write_avg_lim=300 +-read_tot_lim=500 +-write_tot_lim=500 ++read_avg_lim=10000 ++write_avg_lim=10000 ++read_tot_lim=50000 ++write_tot_lim=50000 + + [latency_sata_hdd] + read_avg_lim=15000 +diff --git a/src/python/sentryPlugins/ai_block_io/config_parser.py b/src/python/sentryPlugins/ai_block_io/config_parser.py +index 3049db2..1bbb609 100644 +--- a/src/python/sentryPlugins/ai_block_io/config_parser.py ++++ b/src/python/sentryPlugins/ai_block_io/config_parser.py +@@ -74,10 +74,10 @@ class ConfigParser: + "write_tot_lim": 50000 + }, + "latency_nvme_ssd": { +- "read_avg_lim": 300, +- "write_avg_lim": 300, +- "read_tot_lim": 500, +- "write_tot_lim": 500 ++ "read_avg_lim": 10000, ++ "write_avg_lim": 10000, ++ "read_tot_lim": 50000, ++ "write_tot_lim": 50000 + }, + "latency_sata_hdd": { + "read_avg_lim": 15000, +-- +2.45.2 +