Alarm management method and system of micro-service architecture
By obtaining historical operating status data in the microservice architecture, determining dangerous fluctuation parameters, establishing an alarm association rule database, monitoring current fluctuation parameters, matching rules, and executing alarm strategies in real time, the problem of low alarm management efficiency in the microservice architecture is solved and achieved Automatic discovery and efficient management.
Patent Information
- Application Number
- CN202410485076.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-09-03
AI Technical Summary
The alarm management efficiency of the existing microservice architecture is low, and relying on manual fault location cannot meet the industry's requirements for the stability of the microservice system.
By obtaining the historical operating status data of the microservice system, determine dangerous fluctuation parameters, establish an alarm association rule database, monitor current fluctuation parameters, match association rules, and determine and execute alarm strategies in real time. Specific steps include drawing historical data change curves, calculating slope mean values, filtering fluctuation parameters, establishing frequent item sets, performing distance corrections, classifying alarm events, and establishing a strategy model based on historical maintenance information.
It improves the automatic discovery capability and information accuracy of microservice architecture alarms, improves alarm management efficiency, and reduces manual intervention.
Smart Images

Figure CN118590533A
Abstract
Description
Technical Field
[0001] The present application relates to the field of microservice architecture alarm technology, and more specifically, to an alarm management method and system for a microservice architecture. Background Art
[0002] Microservice architecture is a new technology for deploying applications and services in the cloud. Microservice architecture breaks down a single application into multiple small services, each of which runs independently, has its own process and database, and can collaborate with each other through lightweight communication mechanisms (such as RESTful API). The advantages of microservice architecture include high scalability, flexibility, and fast deployment.
[0003] In the existing microservice architecture alarm management, when an abnormality occurs in the microservice architecture, it is usually accompanied by a huge amount of data abnormalities. This requires operation and maintenance personnel to promptly sort out the abnormal correlations behind the complex abnormal indicators. However, relying solely on manual fault location is difficult to meet the industry's requirements for the stability of the microservice system. Summary of the invention
[0004] The present invention provides an alarm management method and system for a microservice architecture, which is used to solve the technical problem of low efficiency of alarm management in a microservice architecture in the prior art. It includes: Obtain historical system operation status data of the microservice system, and determine the dangerous fluctuation parameters of the microservice system based on the historical system operation status data; Establish alarm association rules for the microservice system based on the dangerous fluctuation parameters of the microservice system, and establish an association rule database based on the alarm association rules of the microservice system; Monitor the dangerous fluctuation parameters of the current microservice system, and determine the indicator data of each microservice node within a preset time window according to the dangerous fluctuation parameters of the current microservice system; Match the association rule database according to the indicator data of the current microservice node to obtain the matching degree of the alarm event of the current microservice system; Determine the alarm strategy based on the matching degree of the alarm events of the current microservice system, and issue real-time alarms to the microservice system based on the alarm strategy.
[0005] Furthermore, the dangerous fluctuation parameters of the microservice system are determined based on the historical system operation status data, including: Draw a curve chart of the change of historical system operation status data, set a rolling time window, and segment the change curve of historical operation status data according to the rolling time window; Calculate the slope mean of the historical operating status data in the rolling time window, and draw a slope mean change curve according to the slope mean of the historical operating status data in the rolling time window; The highest value of the mean slope is selected from the mean slope change curve, and the n mean slopes on the left of the highest mean slope are counted, and the average value of the n mean slopes on the left is calculated; Calculate the difference between the highest value of the slope mean and the average of the n slope means on the left to get the slope mean fluctuation value; Set the fluctuation parameter weight value according to the historical system operation status data, multiply the slope mean fluctuation value by the fluctuation parameter weight value to obtain the fluctuation parameter of the microservice system; The fluctuation parameters greater than the first preset threshold are counted and the fluctuation parameters greater than the first preset threshold are determined as dangerous fluctuation parameters.
[0006] Furthermore, the fluctuation parameter weight value is set according to the historical system operation status data, including: Obtain historical alarm events of the microservice system, and determine the slope mean fluctuation value when each historical alarm event occurs and the number of false alarms corresponding to each historical alarm event based on the historical alarm events; Calculate the false alarm rate of historical alarm events according to the number of false alarms of each historical alarm event, and determine the ratio of the false alarm rate of historical alarm events to the standard false alarm rate; The ratio of the historical alarm event false alarm rate to the standard false alarm rate is normalized to obtain the fluctuation parameter weight value corresponding to the slope mean fluctuation value.
[0007] Furthermore, the alarm association rules of the microservice system are established according to the dangerous fluctuation parameters of the microservice system, including: Determine the indicator data of the microservice node within the preset time window when the dangerous fluctuation parameter occurs according to the dangerous fluctuation parameter of the microservice system, and discretize the indicator data of the microservice node; Generate a candidate 1-item set C1 based on the indicator data of the microservice node after discretization, and calculate the support corresponding to each item in C1; Set the minimum support threshold, filter out the item sets whose support corresponding to each item in C1 is greater than the minimum support threshold, and obtain the frequent 1-item set L1; Connect and prune L1 to obtain candidate 2-item set C2, calculate the support corresponding to each item in C2, filter out the item set whose support corresponding to each item in C2 is greater than the minimum support threshold, and obtain the frequent 2-item set L2; Repeat the above operation until the maximum frequent item set Lk is obtained, set the minimum confidence threshold, and determine the alarm association rule according to the confidence of each item in Lk.
[0008] Furthermore, the association rule database is matched according to the indicator data of the current microservice node to obtain the matching degree of the alarm event of the current microservice system, including: Calculate the distance between the indicator data in the preset time window and the indicator data of each microservice node in the alarm association rule according to the indicator data of the current microservice node; Obtain historical fluctuation parameters of the microservice system, determine a distance correction value based on the historical fluctuation parameters of the microservice system, and correct the distance value of the indicator data based on the distance correction value; The difference between the distance value of each indicator data after correction and the preset allowable distance is calculated, and the matching degree of the alarm event of the current microservice system is determined according to the difference between the distance value of the indicator data and the preset allowable distance.
[0009] Furthermore, the matching degree of the alarm event of the current microservice system is determined according to the difference between the distance value of the indicator data and the preset allowable distance, including: The difference between the distance value of the indicator data and the preset allowable distance is sorted from small to large, and the sorting results are matched with the alarm association rules one by one; Determine the corresponding alarm event based on the matching result, and determine the preset weight of each indicator data based on the alarm event; The weighted average of the distance values of the current indicator data corresponding to the alarm event is calculated according to the preset weights of each indicator data, and the matching degree of the alarm event of the current microservice system is determined according to the ratio of the weighted average of the distance values of the current indicator data to the preset distance average.
[0010] Furthermore, the distance correction value is determined according to the historical fluctuation parameters of the microservice system, including: Based on the k-means clustering algorithm, the historical fluctuation parameters of the microservice system are clustered to obtain clustering results, and the historical alarm events are classified according to the clustering results; According to the classification results, historical alarm events are set into four levels: severe, relatively severe, general, and minor; If the alarm event is of a serious level, the first preset correction value is set as the distance correction value; If the alarm event is of a more serious level, the second preset correction value is set as the distance correction value; If the alarm event is of a general level, the third preset correction value is set as the distance correction value; If the warning event is of a minor level, the fourth preset correction value is set as the distance correction value.
[0011] Furthermore, the alarm strategy is determined according to the matching degree of the alarm events of the current microservice system, including: Obtain historical maintenance information of the microservice system and establish an alarm strategy model based on the historical maintenance information of the microservice system; Determine the alarm strategy corresponding to the matching degree of the current alarm event according to the alarm strategy model, and determine the current alarm processing period according to the alarm strategy; Monitor the processing result of the current alarm event and determine whether the processing time of the current alarm event exceeds the processing period; If the processing time of the current alarm event exceeds the processing deadline, it is determined that the current alarm information exceeds the processing deadline, and the severity level of the current alarm event is updated according to the exceeding event of the processing deadline.
[0012] Furthermore, an alarm strategy model is established based on the historical maintenance information of the microservice system, including: Obtain historical alarm event data and corresponding maintenance information of the microservice system, and pre-process the historical alarm event data and corresponding maintenance information; Establish a data set based on the pre-processed historical alarm event data and the corresponding maintenance information, and establish an initial alarm strategy model based on the data set; The initial alarm strategy model is trained according to the data set to obtain the final alarm strategy model.
[0013] In order to achieve the above object, the present invention also provides an alarm management system with a microservice architecture, comprising: A data acquisition module is used to acquire historical system operation status data of the microservice system and determine the dangerous fluctuation parameters of the microservice system based on the historical system operation status data; A rule establishment module is used to establish an alarm association rule for the microservice system according to the dangerous fluctuation parameters of the microservice system, and to establish an association rule database according to the alarm association rule of the microservice system; The data calculation module is used to monitor the dangerous fluctuation parameters of the current microservice system and determine the indicator data of each microservice node within a preset time window according to the dangerous fluctuation parameters of the current microservice system; The alarm matching module is used to match the association rule database according to the indicator data of the current microservice node to obtain the matching degree of the alarm event of the current microservice system; The alarm management module is used to determine the alarm strategy according to the matching degree of the alarm events of the current microservice system, and to issue real-time alarms to the microservice system according to the alarm strategy.
[0014] The beneficial effects of the present invention are: By applying the above technical scheme, the present invention establishes an alarm association rule database based on the fluctuation parameters of the microservice system, which can timely discover abnormal problems in the microservice architecture and determine the corresponding alarm events through the alarm association rule database, thereby overcoming the problem of relying on manual management of microservice architecture alarms, improving the automatic discovery capability and information accuracy of microservice architecture alarms, and improving the efficiency of alarm management. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 The overall flow chart of an alarm management method for a microservice architecture proposed in an embodiment of the present invention is shown; Figure 2 A schematic structural diagram of an alarm management system of a microservice architecture proposed in an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0018] The present application embodiment provides an alarm management method for a microservice architecture, such as Figure 1 As shown, including: S101, obtaining historical system operation status data of the microservice system, and determining a dangerous fluctuation parameter of the microservice system according to the historical system operation status data.
[0019] In some embodiments of the present application, the dangerous fluctuation parameters of the microservice system are determined according to the historical system operation status data, including: drawing a change curve graph of the historical system operation status data, setting a rolling time window, and segmenting the historical operation status data change curve according to the rolling time window; calculating the slope mean of the historical operation status data in the rolling time window, and drawing a slope mean change curve according to the slope mean of the historical operation status data in the rolling time window; screening out the highest value of the slope mean in the slope mean change curve, and counting the n slope means on the left side of the highest slope mean, and calculating the average of the n slope means on the left; calculating the difference between the highest slope mean and the average of the n slope means on the left, and obtaining the slope mean fluctuation value; setting a fluctuation parameter weight value according to the historical system operation status data, multiplying the slope mean fluctuation value by the fluctuation parameter weight value, and obtaining the fluctuation parameter of the microservice system; counting the fluctuation parameters greater than the first preset threshold, and determining the fluctuation parameters greater than the first preset threshold as dangerous fluctuation parameters.
[0020] In this embodiment, the fluctuation of the operation status data change curve is determined by calculating the slope mean of the historical operation status data change curve in the rolling time window, and whether the operation status parameter of the microservice system is a dangerous fluctuation parameter is determined by comparing the maximum value of the slope mean with the average value of the n slope mean values on the left side of the change curve. According to the system operation experience, n can be set to 3.
[0021] In some embodiments of the present application, a fluctuation parameter weight value is set according to historical system operation status data, including: obtaining historical alarm events of the microservice system, and determining the slope mean fluctuation value when each historical alarm event occurs and the number of false alarms corresponding to each historical alarm event according to the historical alarm events; calculating the false alarm rate of the historical alarm event according to the number of false alarms of each historical alarm event, and determining the ratio of the historical alarm event false alarm rate to the standard false alarm rate; normalizing the ratio of the historical alarm event false alarm rate to the standard false alarm rate to obtain the fluctuation parameter weight value corresponding to the slope mean fluctuation value.
[0022] In this embodiment, the fluctuation parameter weight value is set by the number of false alarms of alarm events associated with the slope mean fluctuation value when each historical alarm event occurs, which can effectively reduce the weight of alarm events with higher false alarm rates in the fluctuation parameter and effectively reduce the system false alarm rate.
[0023] S102, establishing an alarm association rule for the microservice system according to the dangerous fluctuation parameters of the microservice system, and establishing an association rule database according to the alarm association rule of the microservice system; In some embodiments of the present application, an alarm association rule for a microservice system is established according to a dangerous fluctuation parameter of the microservice system, including: determining the indicator data of the microservice node within a preset time window when the dangerous fluctuation parameter occurs according to the dangerous fluctuation parameter of the microservice system, and discretizing the indicator data of the microservice node; generating a candidate 1-item set C1 according to the indicator data of the microservice node after discretization, and calculating the support corresponding to each item in C1; setting a minimum support threshold, screening out the item set whose support corresponding to each item in C1 is greater than the minimum support threshold, and obtaining a frequent 1-item set L1; connecting and pruning L1 to obtain a candidate 2-item set C2, calculating the support corresponding to each item in C2, screening out the item set whose support corresponding to each item in C2 is greater than the minimum support threshold, and obtaining a frequent 2-item set L2; repeating the above operations until the maximum frequent item set Lk is obtained, setting a minimum confidence threshold, and determining the alarm association rule according to the confidence of each item in Lk.
[0024] In this embodiment, the indicator data of the microservice node when the historical alarm event occurs is mined based on the Apriori algorithm, and the correlation between the indicator data of the microservice node and the alarm event within the preset time window is mined to improve the automatic discovery capability of the microservice architecture alarm.
[0025] S103, monitoring the dangerous fluctuation parameters of the current microservice system, and determining the indicator data of each microservice node within a preset time window according to the dangerous fluctuation parameters of the current microservice system.
[0026] In this embodiment, by real-time monitoring of the fluctuation parameters of the microservice system, dangerous fluctuation parameters are discovered in time, and when dangerous fluctuation parameters appear, the indicator data of each microservice node within the preset time window is monitored in time, so that the microservice architecture can detect abnormal situations in time.
[0027] S104, matching the association rule database according to the indicator data of the current microservice node to obtain the matching degree of the alarm event of the current microservice system.
[0028] In some embodiments of the present application, the association rule database is matched according to the indicator data of the current microservice node to obtain the degree of matching of the alarm event of the current microservice system, including: calculating the distance value between the indicator data within a preset time window and the indicator data of each microservice node in the alarm association rule according to the indicator data of the current microservice node; obtaining the historical fluctuation parameters of the microservice system, determining the distance correction value according to the historical fluctuation parameters of the microservice system, and correcting the distance value of the indicator data according to the distance correction value; calculating the difference between the distance value of each indicator data after correction and the preset allowable distance, and determining the degree of matching of the alarm event of the current microservice system according to the difference between the distance value of the indicator data and the preset allowable distance.
[0029] In this embodiment, the distance value between the indicator data of the microservice node within the preset time window and the indicator data of each corresponding microservice node in the alarm association rule is determined, and the degree of matching of the alarm event is calculated based on the difference between the distance value of the two and the preset allowable distance, so as to monitor the alarm data of the microservice architecture in real time and automatically discover alarm events.
[0030] In some embodiments of the present application, the degree of matching of the alarm event of the current microservice system is determined according to the difference between the distance value of the indicator data and the preset allowable distance, including: sorting the difference between the distance value of the indicator data and the preset allowable distance from small to large, and matching the sorting result with the alarm association rule one by one; determining the corresponding alarm event according to the matching result, and determining the preset weight of each indicator data according to the alarm event; calculating the weighted average of the current indicator data distance value corresponding to the alarm event according to the preset weight of each indicator data, and determining the degree of matching of the alarm event of the current microservice system according to the ratio of the weighted average of the current indicator data distance value to the preset distance average.
[0031] In this embodiment, by matching the sorting results of the difference between the distance value of the indicator data and the preset allowable distance with the alarm association rules one by one, the alarm event corresponding to the current indicator data can be quickly determined, and the matching degree between the microservice node indicator data and the alarm event can be calculated.
[0032] In some embodiments of the present application, a distance correction value is determined based on historical fluctuation parameters of a microservice system, including: clustering the historical fluctuation parameters of the microservice system based on a k-means clustering algorithm to obtain a clustering result, and classifying historical alarm events according to the clustering result; setting the historical alarm events to four levels: severe, relatively severe, general, and minor according to the classification result; if the alarm event is at a severe level, setting the first preset correction value as the distance correction value; if the alarm event is at a relatively severe level, setting the second preset correction value as the distance correction value; if the alarm event is at a general level, setting the third preset correction value as the distance correction value; if the alarm event is at a minor level, setting the fourth preset correction value as the distance correction value.
[0033] In this embodiment, the first preset correction value, the second preset correction value, the third preset correction value, and the fourth preset correction value decrease in order from large to small. The distance value of the indicator data is corrected by subtracting the distance value of the indicator data from the distance correction value, so that the distance value of the indicator data corresponding to a more serious alarm event is smaller.
[0034] In this embodiment, the k-means clustering algorithm is specifically as follows: randomly select k initial cluster centers from the historical fluctuation parameter data, and set the k value to 4; calculate the Euclidean distance between each fluctuation parameter data and the initial cluster center, and cluster the fluctuation parameter data according to the Euclidean distance between each fluctuation parameter data and the initial cluster center; obtain the average value of the fluctuation parameter data in each cluster interval after clustering, and update the cluster center according to the average value of the fluctuation parameter data in each cluster interval; repeatedly iterate and update the cluster center until the cluster center no longer changes, and obtain the final cluster center.
[0035] S105, determining an alarm strategy according to the matching degree of the alarm events of the current microservice system, and issuing a real-time alarm to the microservice system according to the alarm strategy.
[0036] In some embodiments of the present application, an alarm strategy is determined based on the degree of matching of the alarm event of the current microservice system, including: obtaining historical maintenance information of the microservice system, and establishing an alarm strategy model based on the historical maintenance information of the microservice system; determining the alarm strategy corresponding to the degree of matching of the current alarm event according to the alarm strategy model, and determining the current alarm processing period according to the alarm strategy; monitoring the processing result of the current alarm event to determine whether the processing time of the current alarm event exceeds the processing period; if the processing time of the current alarm event exceeds the processing period, it is determined that the current alarm information exceeds the processing period, and the severity level of the current alarm event is updated according to the event of exceeding the processing period.
[0037] In this embodiment, the alarm of the microservice architecture is performed through the alarm strategy model. The higher the matching degree of the alarm event corresponding to the indicator data of the current microservice node, the higher the alarm processing priority and the more urgent the alarm processing deadline. When the processing time exceeds the processing deadline, the severity level of the current alarm event is increased by one level.
[0038] In some embodiments of the present application, an alarm strategy model is established based on the historical maintenance information of the microservice system, including: obtaining historical alarm event data and corresponding maintenance information of the microservice system, and preprocessing the historical alarm event data and the corresponding maintenance information; establishing a data set based on the preprocessed historical alarm event data and the corresponding maintenance information, and establishing an initial alarm strategy model based on the data set; training the initial alarm strategy model based on the data set to obtain a final alarm strategy model.
[0039] In this embodiment, a neural network model is established to determine the historical alarm event data and corresponding maintenance information of the microservice system, thereby realizing alarm management of the microservice architecture.
[0040] Based on the same technical concept, such as Figure 2 As shown, the present invention also provides an alarm management system of a microservice architecture, comprising: The data acquisition module is used to obtain the historical system operation status data of the microservice system, and determine the dangerous fluctuation parameters of the microservice system based on the historical system operation status data; the rule establishment module is used to establish the alarm association rules of the microservice system based on the dangerous fluctuation parameters of the microservice system, and establish the association rule database based on the alarm association rules of the microservice system; the data calculation module is used to monitor the dangerous fluctuation parameters of the current microservice system, and determine the indicator data of each microservice node within a preset time window based on the dangerous fluctuation parameters of the current microservice system; the alarm matching module is used to match the association rule database based on the indicator data of the current microservice node to obtain the matching degree of the alarm event of the current microservice system; the alarm management module is used to determine the alarm strategy based on the matching degree of the alarm event of the current microservice system, and issue real-time alarms to the microservice system based on the alarm strategy.
[0041] By applying the above technical scheme, the present invention obtains historical system operation status data of the microservice system, determines the dangerous fluctuation parameters of the microservice system according to the historical system operation status data; establishes alarm association rules of the microservice system according to the dangerous fluctuation parameters of the microservice system, and establishes an association rule database according to the alarm association rules of the microservice system; monitors the dangerous fluctuation parameters of the current microservice system, and determines the indicator data of each microservice node within a preset time window according to the dangerous fluctuation parameters of the current microservice system; matches the association rule database according to the indicator data of the current microservice node to obtain the matching degree of the alarm event of the current microservice system; determines the alarm strategy according to the matching degree of the alarm event of the current microservice system, and performs real-time alarm on the microservice system according to the alarm strategy.
[0042] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present invention can be implemented by hardware, or by software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present invention.
[0043] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An alarm management method for a microservice architecture, characterized in that: The method comprises: Obtain historical system operation status data of the microservice system, and determine the dangerous fluctuation parameters of the microservice system based on the historical system operation status data; Establish alarm association rules for the microservice system based on the dangerous fluctuation parameters of the microservice system, and establish an association rule database based on the alarm association rules of the microservice system; Monitor the dangerous fluctuation parameters of the current microservice system, and determine the indicator data of each microservice node within a preset time window according to the dangerous fluctuation parameters of the current microservice system; Match the association rule database according to the indicator data of the current microservice node to obtain the matching degree of the alarm event of the current microservice system; Determine the alarm strategy based on the matching degree of the alarm events of the current microservice system, and issue real-time alarms to the microservice system based on the alarm strategy.
2. The alarm management method for microservice architecture according to claim 1, characterized in that: Determine the dangerous fluctuation parameters of the microservice system based on historical system operation status data, including: Draw a curve chart of the change of historical system operation status data, set a rolling time window, and segment the change curve of historical operation status data according to the rolling time window; Calculate the slope mean of the historical operating status data in the rolling time window, and draw a slope mean change curve according to the slope mean of the historical operating status data in the rolling time window; The highest value of the mean slope is selected from the mean slope change curve, and the n mean slopes on the left of the highest mean slope are counted, and the average value of the n mean slopes on the left is calculated; Calculate the difference between the highest value of the slope mean and the average of the n slope means on the left to get the slope mean fluctuation value; Set the fluctuation parameter weight value according to the historical system operation status data, multiply the slope mean fluctuation value by the fluctuation parameter weight value to obtain the fluctuation parameter of the microservice system; The fluctuation parameters greater than the first preset threshold are counted and the fluctuation parameters greater than the first preset threshold are determined as dangerous fluctuation parameters.
3. The alarm management method for microservice architecture according to claim 2, characterized in that: The fluctuation parameter weight values are set according to the historical system operation status data, including: Obtain historical alarm events of the microservice system, and determine the slope mean fluctuation value when each historical alarm event occurs and the number of false alarms corresponding to each historical alarm event based on the historical alarm events; Calculate the false alarm rate of historical alarm events according to the number of false alarms of each historical alarm event, and determine the ratio of the false alarm rate of historical alarm events to the standard false alarm rate; The ratio of the historical alarm event false alarm rate to the standard false alarm rate is normalized to obtain the fluctuation parameter weight value corresponding to the slope mean fluctuation value.
4. The alarm management method for microservice architecture according to claim 1, characterized in that: Establish alarm association rules for the microservice system based on the dangerous fluctuation parameters of the microservice system, including: Determine the indicator data of the microservice node within the preset time window when the dangerous fluctuation parameter occurs according to the dangerous fluctuation parameter of the microservice system, and discretize the indicator data of the microservice node; Generate a candidate 1-item set C1 based on the indicator data of the microservice node after discretization, and calculate the support corresponding to each item in C1; Set the minimum support threshold, filter out the item sets whose support corresponding to each item in C1 is greater than the minimum support threshold, and obtain the frequent 1-item set L1; Connect and prune L1 to obtain candidate 2-item set C2, calculate the support corresponding to each item in C2, filter out the item set whose support corresponding to each item in C2 is greater than the minimum support threshold, and obtain the frequent 2-item set L2; Repeat the above operation until the maximum frequent item set Lk is obtained, set the minimum confidence threshold, and determine the alarm association rule according to the confidence of each item in Lk.
5. The alarm management method for microservice architecture according to claim 4, characterized in that: According to the indicator data of the current microservice node, the association rule database is matched to obtain the matching degree of the alarm events of the current microservice system, including: Calculate the distance between the indicator data in the preset time window and the indicator data of each microservice node in the alarm association rule according to the indicator data of the current microservice node; Obtain historical fluctuation parameters of the microservice system, determine a distance correction value based on the historical fluctuation parameters of the microservice system, and correct the distance value of the indicator data based on the distance correction value; The difference between the distance value of each indicator data after correction and the preset allowable distance is calculated, and the matching degree of the alarm event of the current microservice system is determined according to the difference between the distance value of the indicator data and the preset allowable distance.
6. The alarm management method for microservice architecture according to claim 5, characterized in that: The matching degree of the alarm event of the current microservice system is determined according to the difference between the distance value of the indicator data and the preset allowable distance, including: The difference between the distance value of the indicator data and the preset allowable distance is sorted from small to large, and the sorting results are matched with the alarm association rules one by one; Determine the corresponding alarm event based on the matching result, and determine the preset weight of each indicator data based on the alarm event; The weighted average of the distance values of the current indicator data corresponding to the alarm event is calculated according to the preset weights of each indicator data, and the matching degree of the alarm event of the current microservice system is determined according to the ratio of the weighted average of the distance values of the current indicator data to the preset distance average.
7. The alarm management method for microservice architecture according to claim 5, characterized in that: The distance correction value is determined based on the historical fluctuation parameters of the microservice system, including: Based on the k-means clustering algorithm, the historical fluctuation parameters of the microservice system are clustered to obtain clustering results, and the historical alarm events are classified according to the clustering results; According to the classification results, historical alarm events are set into four levels: severe, relatively severe, general, and minor; If the alarm event is of a serious level, the first preset correction value is set as the distance correction value; If the alarm event is of a more serious level, the second preset correction value is set as the distance correction value; If the alarm event is of a general level, the third preset correction value is set as the distance correction value; If the warning event is of a minor level, the fourth preset correction value is set as the distance correction value.
8. The alarm management method for microservice architecture according to claim 7, characterized in that: Determine the alarm strategy based on the matching degree of the alarm events of the current microservice system, including: Obtain historical maintenance information of the microservice system and establish an alarm strategy model based on the historical maintenance information of the microservice system; Determine the alarm strategy corresponding to the matching degree of the current alarm event according to the alarm strategy model, and determine the current alarm processing period according to the alarm strategy; Monitor the processing result of the current alarm event and determine whether the processing time of the current alarm event exceeds the processing period; If the processing time of the current alarm event exceeds the processing deadline, it is determined that the current alarm information exceeds the processing deadline, and the severity level of the current alarm event is updated according to the exceeding event of the processing deadline.
9. The alarm management method for microservice architecture according to claim 8, characterized in that: Establish an alarm strategy model based on the historical maintenance information of the microservice system, including: Obtain historical alarm event data and corresponding maintenance information of the microservice system, and pre-process the historical alarm event data and corresponding maintenance information; Establish a data set based on the pre-processed historical alarm event data and the corresponding maintenance information, and establish an initial alarm strategy model based on the data set; The initial alarm strategy model is trained according to the data set to obtain the final alarm strategy model.
10. An alarm management system based on a microservice architecture, characterized in that: include: A data acquisition module is used to acquire historical system operation status data of the microservice system and determine the dangerous fluctuation parameters of the microservice system based on the historical system operation status data; A rule establishment module is used to establish an alarm association rule for the microservice system according to the dangerous fluctuation parameters of the microservice system, and to establish an association rule database according to the alarm association rule of the microservice system; The data calculation module is used to monitor the dangerous fluctuation parameters of the current microservice system and determine the indicator data of each microservice node within a preset time window according to the dangerous fluctuation parameters of the current microservice system; The alarm matching module is used to match the association rule database according to the indicator data of the current microservice node to obtain the matching degree of the alarm event of the current microservice system; The alarm management module is used to determine the alarm strategy according to the matching degree of the alarm events of the current microservice system, and to issue real-time alarms to the microservice system according to the alarm strategy.
Citation Information
Cited By
Centralized alarm system for oil and gas storage and transportation area management and control center
CN119541161A
Rule engine-based micro-service performance optimization diagnosis method
CN120929994A
Rule engine-based microservice performance optimization diagnosis method
CN120929994B
