From b2b3a6cf9151fb342b6bd9e4dc21e4727b8cbefd Mon Sep 17 00:00:00 2001 From: XuJiacheng Date: Fri, 3 Apr 2026 18:47:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4Kafka=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E8=B7=B3=E8=BF=87=E6=97=B6=E6=AE=B5=E5=92=8C=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E8=A7=A6=E5=8F=91=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将Kafka检查跳过时段结束时间从4点延长至5点,并将数据库连接失败告警触发阈值从8次提高到10次,以减少误告警 --- Models/TimerClass.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/TimerClass.cs b/Models/TimerClass.cs index 41e4580..07432df 100644 --- a/Models/TimerClass.cs +++ b/Models/TimerClass.cs @@ -42,9 +42,9 @@ namespace AutoNotificatPhone.Models private const int KafkaStaleMinutes = 5; // 数据库备份窗口(北京时间 3:00-4:00),该时段跳过心跳检查 private const int KafkaCheckSkipStartHour = 3; - private const int KafkaCheckSkipEndHour = 4; + private const int KafkaCheckSkipEndHour = 5; // 数据库连接失败累计到 N 次才触发一次告警,避免告警风暴 - private const int KafkaDbAlertTriggerCount = 8; + private const int KafkaDbAlertTriggerCount = 10; // 接收包“低值”判定阈值 private const int RecvPackageLowThreshold = 70000;