WO2021109521A1 - 一种基于缓存机制的多类型告警判断算法 - Google Patents

一种基于缓存机制的多类型告警判断算法 Download PDF

Info

Publication number
WO2021109521A1
WO2021109521A1 PCT/CN2020/095229 CN2020095229W WO2021109521A1 WO 2021109521 A1 WO2021109521 A1 WO 2021109521A1 CN 2020095229 W CN2020095229 W CN 2020095229W WO 2021109521 A1 WO2021109521 A1 WO 2021109521A1
Authority
WO
WIPO (PCT)
Prior art keywords
alarm
type
list
frequency threshold
cache
Prior art date
Application number
PCT/CN2020/095229
Other languages
English (en)
French (fr)
Inventor
吴江
邓士伟
苗青
倪淏
Original Assignee
江苏智臻能源科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 江苏智臻能源科技有限公司 filed Critical 江苏智臻能源科技有限公司
Publication of WO2021109521A1 publication Critical patent/WO2021109521A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents

Definitions

  • the invention belongs to the field of computer application systems, and specifically refers to a multi-type alarm judgment algorithm based on a caching mechanism, and relates to an algorithm and process for multi-type alarm judgment for sensor alarms in a computer application system.
  • the application system needs to process and analyze different types of alarm information that occur asynchronously. According to the time and frequency of the alarm occurrence, the qualified alarms are filtered out, and the alarms that have an important impact on the business are obtained and processed.
  • the processing method of analyzing the judgment time of a single type of alarm or judging the frequency of judgment of a single type is mostly adopted.
  • the existing processing method has multiple defects: first, the existing processing method does not deal with multiple types of alarms. Perform unified processing; secondly, the judgment of time and frequency is not processed in a centralized manner; thirdly, the existing processing methods are insufficient in the efficiency of alarm processing time, and the existing processing methods are insufficient in the efficiency of business system development; finally, the existing The processing method of the business system is insufficient in the follow-up business expansion of the business system.
  • the present invention provides a multi-type alarm judgment algorithm based on a caching mechanism.
  • a multi-type alarm judgment algorithm based on a caching mechanism including the following steps:
  • Step S1 Configure the buffer unit: configure the memory buffer unit;
  • Step S2 Configure parameter values: configure the time window and frequency threshold corresponding to the alarm type in the configuration parameter table;
  • Step S3 Update the alarm list: in the application system, update the alarm information of different alarm types to the alarm list in the cache;
  • Step S4 Create a daemon thread: create a daemon thread, and perform a check every 500 milliseconds to handle alarm events at any time;
  • Step S5 Judging the alarm type: traversing and judging all alarm types, judging based on the time window and frequency threshold, and deciding whether to generate a processing work order;
  • Step S6 Filter the alarms to meet the faults: through the guard thread, loop judgment, combined with the judgment of the time window and the frequency threshold, filter out the faults that meet the conditions.
  • step S3 specifically includes the following steps:
  • Step S3-1 Receive the entry for processing the alarm, check whether the alarm type has a corresponding alarm list in the cache, if there is no alarm list, go to step S3-2, if there is an alarm list, go to step S3-3;
  • Step S3-2 Create an alarm list of the alarm type, and go to step S3-4;
  • Step S3-3 Obtain the alarm list of the alarm type from the cache, and go to step S3-4;
  • Step S3-4 Update the alarm data object to the alarm list
  • Step S3-5 Add the alarm list to the cache of the alarm type.
  • step S5 specifically includes the following steps:
  • Step S5-1 Read the corresponding time window and frequency threshold from the configuration parameter table as the judgment condition;
  • Step S5-2 Obtain the alarm record tool class corresponding to the alarm type from the cache according to the alarm type;
  • Step S5-3 Check all alarm records of ungenerated work orders in the time window
  • Step S5-4 Determine whether the number of screened alarm objects exceeds the frequency threshold, if it exceeds the frequency threshold, go to step S5-5, if it does not exceed the frequency threshold, go to step S6;
  • Step S5-5 A processing work order is generated, and all the selected alarms are removed from the alarm record tool object.
  • the present invention has the following advantages: the present invention is a multi-dimensional analysis method based on multi-factor comprehensive judgment, constructs a quantitative and easy-to-operate alarm analysis method of functional suitability, and can be directly used For the handling of related faults and alarms.
  • the multi-type alarm judgment algorithm based on the caching mechanism includes the following steps:
  • Step S1 Configure the buffer unit: configure the memory buffer unit;
  • Step S2 Configure parameter values: configure the time window and frequency threshold corresponding to the alarm type in the configuration parameter table;
  • Step S3 Update the alarm list:
  • update the alarm information of different alarm types to the alarm list in the cache which specifically includes the following steps:
  • Step S3-1 Receive the entry for processing the alarm, check whether the alarm type has a corresponding alarm list in the cache, if there is no alarm list, go to step S3-2, if there is an alarm list, go to step S3-3;
  • Step S3-2 Create an alarm list of the alarm type, and go to step S3-4;
  • Step S3-3 Obtain the alarm list of the alarm type from the cache, and go to step S3-4;
  • Step S3-4 Update the alarm data object to the alarm list
  • Step S3-5 Add the alarm list to the cache of the alarm type
  • Step S4 Create a daemon thread: create a daemon thread, and perform a check every 500 milliseconds to handle alarm events at any time;
  • Step S5 Judging the alarm type: traversing and judging all alarm types, judging based on the time window and frequency threshold, and deciding whether to generate a processing work order, which specifically includes the following steps:
  • Step S5-1 Read the corresponding time window and frequency threshold from the configuration parameter table as the judgment condition;
  • Step S5-2 Obtain the alarm record tool class corresponding to the alarm type from the cache according to the alarm type;
  • Step S5-3 Check all alarm records of ungenerated work orders in the time window
  • Step S5-4 Determine whether the number of screened alarm objects exceeds the frequency threshold, if it exceeds the frequency threshold, go to step S5-5, if it does not exceed the frequency threshold, go to step S6;
  • Step S5-5 Generate a processing work order, and remove all selected alarms from the alarm record tool object;
  • Step S6 Filter the alarms to meet the faults: through the guard thread, loop judgment, combined with the judgment of the time window and the frequency threshold, filter out the faults that meet the conditions.
  • the multi-type alarm judgment algorithm of the present invention is based on a caching mechanism, using time windows and frequency thresholds for limitation. During calculation, the following steps are required for the monitored alarms:
  • Step 1 Put all the monitored alarms into the cache, and save the same type in the same cache unit;
  • Step 2 Perform alarm screening tasks by establishing an infinite loop of the guard thread
  • Step 3 When screening, use the same cache unit for the same type of alarm to judge the time window and frequency;
  • Step 4 Filter out the alarms that meet the conditions, and clear these alarms from the cache to avoid duplication
  • Step 5 After getting the eligible alarms, perform follow-up operations according to the business process.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Alarm Systems (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

本发明公开了一种基于缓存机制的多类型告警判断算法,属于计算机应用系统领域,涉及计算机应用系统中对于传感器告警进行多类型告警判断的算法和流程,包括:配置缓冲单元、配置参数值、更新告警列表、创建守护线程、判断告警类型和筛选告警符合故障几个步骤;本发明是一种基于多因子综合判断的多维分析方法,构建了量化的、易操作的功能适宜性的告警分析方法,可直接用于相关故障和告警的处理。

Description

一种基于缓存机制的多类型告警判断算法 技术领域
本发明属于计算机应用系统领域,具体是指一种基于缓存机制的多类型告警判断算法,涉及计算机应用系统中对于传感器告警进行多类型告警判断的算法和流程。
背景技术
传感器告警后,应用系统需要对异步发生的不同类型的告警信息进行处理分析,根据告警发生的时间和频率,筛选出符合条件的告警,得到对业务产生重要影响的告警,进行处理。
当前的处理方法中,多采用对单一类型告警判断时间进行分析,或对单一类型判断频率进行判断的处理方法,现有的处理方法有多重缺陷:首先,现有的处理方法没有对多类型告警进行统一处理;其次,没有将时间和频次的判断集中处理;再次,现有的处理方法在告警处理时间效率上存在不足,且现有处理方法在业务系统开发效率上存在不足;最后,现有的处理方法在业务系统后续业务拓展性方面存在不足。
因此,需要寻求一种基于多类型告警缓冲机制,且结合时间窗和频次阈值的集中判断算法,以解决上述问题。
发明内容
为了克服现有技术的不足,本发明提供了一种基于缓存机制的多类型告警判断算法。
为了达到上述目的,本发明采用以下技术方案:一种基于缓存机制的多类型告警判断算法,包括如下步骤:
步骤S1:配置缓冲单元:配置内存缓冲单元;
步骤S2:配置参数值:在配置参数表中配置告警类型对应的时间窗口和次数阈值;
步骤S3:更新告警列表:在应用系统中,将不同告警类型的告警信息更新到缓存中的告警列表;
步骤S4:创建守护线程:创建守护线程,每500毫秒执行一次检查,做到随时处理告警事件;
步骤S5:判断告警类型:遍历判断所有告警类型,基于时间窗口和频率阈值进行判断,决定是否生成处理工单;
步骤S6:筛选告警符合故障:通过守护线程,循环判断,结合时间窗和频率阈值的判断,筛选出符合条件的故障。
更进一步的,步骤S3具体包括如下步骤:
步骤S3-1:接收处理告警的入口,检查告警类型在缓存中是否存在对应的告警列表,如不存在 告警列表,则进入步骤S3-2,如存在告警列表,则进入步骤S3-3;
步骤S3-2:创建该告警类型的告警列表,进入步骤S3-4;
步骤S3-3:从缓存中获取该告警类型的告警列表,进入步骤S3-4;
步骤S3-4:将告警数据对象更新到告警列表;
步骤S3-5:将告警列表添加到该告警类型的缓存中。
更进一步的,步骤S5具体包括如下步骤:
步骤S5-1:从配置参数表中读取对应的时间窗口和次数阈值,作为判断条件;
步骤S5-2:根据告警类型从缓存中获取该告警类型对应的告警记录工具类;
步骤S5-3:检查时间窗内的所有未生成工单的告警记录;
步骤S5-4:判断筛选出的告警对象数目是否超过频次阈值,如超过频次阈值,则进入步骤S5-5,如不超过频次阈值,则进入步骤S6;
步骤S5-5:生成处理工单,将筛选出的告警都从告警记录工具对象中移除。
有益效果:与现有技术相比,本发明具有以下优点:本发明是一种基于多因子综合判断的多维分析方法,构建了量化的、易操作的功能适宜性的告警分析方法,可直接用于相关故障和告警的处理。
具体实施方式
下面结合具体实施例,进一步阐明本发明,应理解这些实施例仅用于说明本发明而不用于限制本发明的范围,在阅读了本发明之后,本领域技术人员对本发明的各种等价形式的修改均落于本申请所附权利要求所限定的范围。
本基于缓存机制的多类型告警判断算法,包括如下步骤:
步骤S1:配置缓冲单元:配置内存缓冲单元;
步骤S2:配置参数值:在配置参数表中配置告警类型对应的时间窗口和次数阈值;
步骤S3:更新告警列表:在应用系统中,将不同告警类型的告警信息更新到缓存中的告警列表,其具体包括如下步骤:
步骤S3-1:接收处理告警的入口,检查告警类型在缓存中是否存在对应的告警列表,如不存在告警列表,则进入步骤S3-2,如存在告警列表,则进入步骤S3-3;
步骤S3-2:创建该告警类型的告警列表,进入步骤S3-4;
步骤S3-3:从缓存中获取该告警类型的告警列表,进入步骤S3-4;
步骤S3-4:将告警数据对象更新到告警列表;
步骤S3-5:将告警列表添加到该告警类型的缓存中;
步骤S4:创建守护线程:创建守护线程,每500毫秒执行一次检查,做到随时处理告警事件;
步骤S5:判断告警类型:遍历判断所有告警类型,基于时间窗口和频率阈值进行判断,决定是否生成处理工单,其具体包括如下步骤:
步骤S5-1:从配置参数表中读取对应的时间窗口和次数阈值,作为判断条件;
步骤S5-2:根据告警类型从缓存中获取该告警类型对应的告警记录工具类;
步骤S5-3:检查时间窗内的所有未生成工单的告警记录;
步骤S5-4:判断筛选出的告警对象数目是否超过频次阈值,如超过频次阈值,则进入步骤S5-5,如不超过频次阈值,则进入步骤S6;
步骤S5-5:生成处理工单,将筛选出的告警都从告警记录工具对象中移除;
步骤S6:筛选告警符合故障:通过守护线程,循环判断,结合时间窗和频率阈值的判断,筛选出符合条件的故障。
此外,本发明的多类型告警判断算法是基于缓存机制,利用时间窗和频率阀值进行限定,运算时,对监测到的告警还需要做到以下几个步骤:
步骤1:将监测到的告警都放入缓存中,并且同一类型,保存到同一个缓存单元中;
步骤2:通过建立无限循环的守护线程,执行告警筛选任务;
步骤3:筛选时,利用同一类型告警都存在同一缓存单元,进行时间窗和频率的判断;
步骤4:筛选出符合条件的告警,并将这些告警从缓存中清除,避免重复;
步骤5:得到符合条件的告警后,根据业务流程,执行后续操作。
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。
此外,应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。

Claims (3)

  1. 一种基于缓存机制的多类型告警判断算法,其特征在于:包括如下步骤:
    步骤S1:配置缓冲单元:配置内存缓冲单元;
    步骤S2:配置参数值:在配置参数表中配置告警类型对应的时间窗口和次数阈值;
    步骤S3:更新告警列表:在应用系统中,将不同告警类型的告警信息更新到缓存中的告警列表;
    步骤S4:创建守护线程:创建守护线程,每500毫秒执行一次检查,做到随时处理告警事件;
    步骤S5:判断告警类型:遍历判断所有告警类型,基于时间窗口和频率阈值进行判断,决定是否生成处理工单;
    步骤S6:筛选告警符合故障:通过守护线程,循环判断,结合时间窗和频率阈值的判断,筛选出符合条件的故障。
  2. 根据权利要求1所述的基于缓存机制的多类型告警判断算法,其特征在于:步骤S3具体包括如下步骤:
    步骤S3-1:接收处理告警的入口,检查告警类型在缓存中是否存在对应的告警列表,如不存在告警列表,则进入步骤S3-2,如存在告警列表,则进入步骤S3-3;
    步骤S3-2:创建该告警类型的告警列表,进入步骤S3-4;
    步骤S3-3:从缓存中获取该告警类型的告警列表,进入步骤S3-4;
    步骤S3-4:将告警数据对象更新到告警列表;
    步骤S3-5:将告警列表添加到该告警类型的缓存中。
  3. 根据权利要求1所述的基于缓存机制的多类型告警判断算法,其特征在于:步骤S5具体包括如下步骤:
    步骤S5-1:从配置参数表中读取对应的时间窗口和次数阈值,作为判断条件;
    步骤S5-2:根据告警类型从缓存中获取该告警类型对应的告警记录工具类;
    步骤S5-3:检查时间窗内的所有未生成工单的告警记录;
    步骤S5-4:判断筛选出的告警对象数目是否超过频次阈值,如超过频次阈值,则进入步骤S5-5,如不超过频次阈值,则进入步骤S6;
    步骤S5-5:生成处理工单,将筛选出的告警都从告警记录工具对象中移除。
PCT/CN2020/095229 2019-12-06 2020-06-09 一种基于缓存机制的多类型告警判断算法 WO2021109521A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911243558.1A CN111124817A (zh) 2019-12-06 2019-12-06 一种基于缓存机制的多类型告警判断算法
CN201911243558.1 2019-12-06

Publications (1)

Publication Number Publication Date
WO2021109521A1 true WO2021109521A1 (zh) 2021-06-10

Family

ID=70497692

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/095229 WO2021109521A1 (zh) 2019-12-06 2020-06-09 一种基于缓存机制的多类型告警判断算法

Country Status (2)

Country Link
CN (1) CN111124817A (zh)
WO (1) WO2021109521A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124817A (zh) * 2019-12-06 2020-05-08 江苏智臻能源科技有限公司 一种基于缓存机制的多类型告警判断算法
CN111835557A (zh) * 2020-06-19 2020-10-27 青岛聚好联科技有限公司 一种告警方法及设备
CN117527527B (zh) * 2024-01-08 2024-03-19 天津市天河计算机技术有限公司 多源告警处理方法和系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222361A (zh) * 2008-01-22 2008-07-16 中兴通讯股份有限公司 一种告警频率监控器及告警处理方法
CN107548087A (zh) * 2016-06-24 2018-01-05 中兴通讯股份有限公司 一种告警关联分析的方法及装置
CN108234189A (zh) * 2016-12-22 2018-06-29 北京神州泰岳软件股份有限公司 一种告警数据处理方法和装置
CN109218102A (zh) * 2018-09-26 2019-01-15 江苏满运软件科技有限公司 一种告警监控方法及系统
CN111124817A (zh) * 2019-12-06 2020-05-08 江苏智臻能源科技有限公司 一种基于缓存机制的多类型告警判断算法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201786B (zh) * 2006-12-13 2010-05-19 中兴通讯股份有限公司 一种故障日志监控方法及装置
US20160065444A1 (en) * 2014-08-26 2016-03-03 Arbor Networks, Inc. Anomaly detection based on combinations of cause value, message type, response time (gtp-c)
CN106034044B (zh) * 2015-03-19 2018-12-07 深圳市腾讯计算机系统有限公司 告警分析的方法和装置
CN109634818A (zh) * 2018-10-24 2019-04-16 中国平安人寿保险股份有限公司 日志分析方法、系统、终端及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222361A (zh) * 2008-01-22 2008-07-16 中兴通讯股份有限公司 一种告警频率监控器及告警处理方法
CN107548087A (zh) * 2016-06-24 2018-01-05 中兴通讯股份有限公司 一种告警关联分析的方法及装置
CN108234189A (zh) * 2016-12-22 2018-06-29 北京神州泰岳软件股份有限公司 一种告警数据处理方法和装置
CN109218102A (zh) * 2018-09-26 2019-01-15 江苏满运软件科技有限公司 一种告警监控方法及系统
CN111124817A (zh) * 2019-12-06 2020-05-08 江苏智臻能源科技有限公司 一种基于缓存机制的多类型告警判断算法

Also Published As

Publication number Publication date
CN111124817A (zh) 2020-05-08

Similar Documents

Publication Publication Date Title
WO2021109521A1 (zh) 一种基于缓存机制的多类型告警判断算法
WO2021073114A1 (zh) 基于统计的异常流量监测方法、装置、设备及存储介质
CN108228377B (zh) 一种面向磁盘故障检测的smart阈值优化方法
JP7158586B2 (ja) ハードディスク故障発生時期の予測方法、装置及び記憶媒体
CN112000806B (zh) 异常日志监控分析方法、系统、设备及存储介质
CN112148561B (zh) 业务系统的运行状态预测方法、装置及服务器
CN109034423B (zh) 一种故障预警判定的方法、装置、设备及存储介质
CN110717472B (zh) 基于改进的小波阈值去噪的故障诊断方法及系统
CN110377471B (zh) 接口校验数据的生成方法、装置、存储介质及电子设备
JP5370486B2 (ja) プログラム動作をフィルタリング・モニタリングするための方法とシステム
Ganapathy AI Fitness Checks, Maintenance and Monitoring on Systems Managing Content & Data: A Study on CMS World
CN113033639A (zh) 一种异常数据检测模型的训练方法、电子设备及存储介质
JP5240709B2 (ja) シンプトンを評価するためのコンピュータ・システム、並びにその方法及びコンピュータ・プログラム
US20110320873A1 (en) Error identification
CN115269319A (zh) 一种ceph分布式计算机故障诊断方法
WO2022017098A1 (en) Method for proactive trouble-shooting of provisioning workflows for efficient cloud operations
CN113094249A (zh) 一种节点异常检测方法、装置及介质
CN112633666A (zh) 一种基于K-means聚类算法的电力企业用户复工状况监测方法
US20210223764A1 (en) Data analysis device, system, method, and recording medium storing program
CN111381990A (zh) 一种基于流特征的磁盘故障预测方法及装置
US20230409421A1 (en) Anomaly detection in computer systems
CN113192228B (zh) 集群自动化巡检方法及装置
CN116149894B (zh) 一种卡慢的检测方法及相关设备
US20240118186A1 (en) Auto gating of qc based on population analysis
CN115936266B (zh) 轨道交通设备的可靠度预测方法、系统、设备和介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20896299

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20896299

Country of ref document: EP

Kind code of ref document: A1