fix: 调整Kafka检查跳过时段和告警触发阈值

将Kafka检查跳过时段结束时间从4点延长至5点,并将数据库连接失败告警触发阈值从8次提高到10次,以减少误告警
This commit is contained in:
2026-04-03 18:47:57 +08:00
parent b899d202bb
commit b2b3a6cf91

View File

@@ -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;