Method, device and electronic device for automatically implementing root cause analysis in streaming processing
By automatically analyzing business detail data and baseline data in streaming processing to determine whether alarm rules are met, the automation of root cause analysis in streaming processing is realized, solving the problem of low efficiency in existing technologies and improving analysis efficiency.
Patent Information
- Application Number
- CN202011400960.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-02
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-12-02
AI Technical Summary
In the existing technology, the efficiency of root cause analysis in stream processing is low, requiring operation and maintenance personnel to conduct analysis in offline mode, resulting in increased working hours and low efficiency.
By obtaining the detailed business data in streaming processing, we can determine whether the alarm rules are met based on the pre-obtained business indicator statistics, automatically perform root cause analysis, compare with the baseline data generated by historical detailed data, generate alarm information and conduct root cause analysis. analyze.
While keeping streaming processing uninterrupted, the root cause analysis process is automatically triggered, which avoids offline analysis by operation and maintenance personnel and improves the efficiency of root cause analysis.
Smart Images

Figure CN112463834B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of stream processing, and in particular to a method, device and electronic device for automatically implementing root cause analysis in stream processing. Background Art
[0002] In various big data business scenarios, each transaction system in the server generates massive amounts of data every day. There are two main ways to process and analyze massive amounts of data: offline data analysis and real-time data analysis. Real-time data analysis is the processing and analysis of streaming data. Through streaming data analysis, second-level monitoring and real-time root cause analysis can be achieved. The analysis method for streaming data requires low latency and high concurrency.
[0003] As businesses demand real-time computing, streaming computing frameworks such as Spark Streaming and Flink are currently commonly used to process streaming data. The emergence of streaming frameworks solves streaming computing problems, but errors occur during the computing process or monitoring indicators are abnormal. Scientific analysis of the causes of the problems is required to facilitate timely system repairs. There are usually many reasons for the problems, such as physical conditions, human factors, system behavior, or process factors.
[0004] In the current implementation of root cause analysis in streaming processing scenarios, if an abnormal situation occurs during the streaming computing process, it is necessary to record the "crime" scene while keeping the computing uninterrupted. Then, the operation and maintenance personnel will perform the root cause analysis offline, which will increase the working time consumed by the root cause analysis and lead to lower efficiency.
[0005] Therefore, there is an urgent need for a technical solution that can improve the efficiency of root cause analysis in streaming processing. Summary of the invention
[0006] In view of this, the present application provides a method, device and electronic device for automatically implementing root cause analysis in streaming processing, so as to solve the technical problem of low efficiency of root cause analysis in streaming processing in the prior art, as follows:
[0007] A method for automatically implementing root cause analysis in stream processing, the method comprising:
[0008] Obtain detailed business data in streaming processing;
[0009] According to one or more business indicators obtained in advance, obtaining indicator statistical data on each of the business indicators in the business detail data;
[0010] At least according to the indicator standard data corresponding to each of the business indicators, determine whether the indicator statistical data on each of the business indicators meets the indicator alarm rule corresponding to the business indicator to obtain alarm information; the indicator standard data is the baseline data generated according to the historical detailed data;
[0011] In a case where the alarm information indicates that the indicator statistical data exists and satisfies the indicator alarm rule corresponding to the business indicator, a root cause analysis is performed according to the alarm information to obtain a root cause analysis result.
[0012] The above method preferably performs root cause analysis according to the alarm information to obtain a root cause analysis result, including:
[0013] Analyze the alarm information to obtain the alarm object in the alarm information;
[0014] According to the alarm object, the physical device information where the alarm occurs is determined, wherein the physical device information at least includes the system identifier of the physical subsystem where the alarm occurs, the transaction code of the business where the alarm occurs in the physical subsystem, and the business application where the alarm occurs in the business corresponding to the transaction code.
[0015] The above method preferably further comprises:
[0016] Analyze the alarm information to obtain the alarm time in the alarm information;
[0017] Obtain the target log corresponding to the alarm time in the log library;
[0018] According to the target log, alarm problem information corresponding to the alarm information is obtained.
[0019] The above method preferably further comprises:
[0020] An indicator rule set is obtained in advance, wherein the indicator rule set includes multiple indicator alarm rules, and the indicator alarm rules are at least any one or more of the rules regarding the alarm period, alarm level, whether to send alarm information, alarm suppression times, and alarm upper and lower baseline thresholds.
[0021] In the above method, preferably, after obtaining the indicator statistical data on each of the business indicators in the business detail data according to the one or more business indicators obtained in advance, the method further comprises:
[0022] Determining whether there is an indicator alarm rule corresponding to each of the one or more business indicators obtained in advance in the indicator rule set obtained in advance;
[0023] In the case where there is an indicator alarm rule corresponding to each of the business indicators in the indicator rule set, determining whether there is indicator standard data corresponding to each of the business indicators in the preset baseline data set;
[0024] In the case where there are indicator standard data corresponding to each of the business indicators in the baseline data set, execute the steps of: at least based on the indicator standard data corresponding to each of the business indicators, determine whether each of the indicator statistical data meets the indicator alarm rule corresponding to the business indicator to obtain alarm information.
[0025] The above method preferably comprises, at least according to the indicator standard data corresponding to each of the business indicators, respectively judging whether each of the indicator statistical data satisfies the indicator alarm rule corresponding to the business indicator, including:
[0026] Comparing the indicator statistical data corresponding to each of the business indicators with the indicator standard data respectively to obtain a data comparison result corresponding to each of the business indicators, wherein the data comparison result at least represents a data deviation between the indicator statistical data and the indicator standard data;
[0027] It is determined whether the data comparison result corresponding to each of the business indicators satisfies the indicator alarm rule corresponding to the business indicator, so as to obtain the corresponding alarm information on each of the business indicators.
[0028] The above method preferably further comprises, before judging whether each of the indicator statistical data satisfies the indicator alarm rule corresponding to the business indicator at least according to the indicator standard data corresponding to each of the business indicators:
[0029] Reading the index standard data corresponding to the target period where the index statistical data is located in the preset baseline data set; the index standard data corresponding to the target period is stored in the target storage area in the previous period of the target period;
[0030] Obtaining the index standard data corresponding to the next period of the target period and storing the index standard data corresponding to the next period of the target period in the baseline data set;
[0031] Delete the indicator standard data corresponding to the previous period of the target period in the baseline data set.
[0032] Preferably, in the above method, after obtaining the business detail data in the streaming process, the method further comprises:
[0033] Parsing the business detail data to obtain a parsing result;
[0034] According to the analysis result, whether the business detail data meets the preset transaction legality rules is judged to obtain a judgment result;
[0035] When the judgment result indicates that the business detail data meets the transaction legality rules, the step of obtaining indicator statistical data on each of the business indicators in the business detail data according to a plurality of business indicators obtained in advance is performed.
[0036] A device for automatically implementing root cause analysis in stream processing, the device comprising:
[0037] A detail acquisition unit is used to obtain the business detail data in the stream processing;
[0038] A statistics obtaining unit, used to obtain, according to one or more business indicators obtained in advance, indicator statistical data on each of the business indicators in the business detail data;
[0039] An alarm judgment unit is used to judge whether the indicator statistical data on each of the business indicators meets the indicator alarm rule corresponding to the business indicator at least according to the indicator standard data corresponding to each of the business indicators, so as to obtain alarm information; the indicator standard data is the baseline data generated according to the historical detailed data;
[0040] The root cause triggering unit is used to perform root cause analysis according to the alarm information to obtain a root cause analysis result when the alarm information indicates that the indicator statistical data meets the indicator alarm rule corresponding to the business indicator.
[0041] An electronic device, comprising:
[0042] A memory, used to store applications and data generated by the operation of the applications;
[0043] A processor is used to execute the application to achieve: obtaining business detail data in streaming processing; obtaining indicator statistical data on each business indicator in the business detail data based on one or more business indicators obtained in advance; judging whether the indicator statistical data on each business indicator meets the indicator alarm rule corresponding to the business indicator at least based on the indicator standard data corresponding to each business indicator, so as to obtain alarm information; the indicator standard data is baseline data generated based on historical detail data; when the alarm information indicates that the indicator statistical data meets the indicator alarm rule corresponding to the business indicator, performing root cause analysis based on the alarm information to obtain a root cause analysis result.
[0044] It can be seen from the above technical scheme that in a method, device and electronic device for automatically realizing root cause analysis in a streaming process disclosed in the present application, after obtaining the business detail data in the streaming process, the indicator statistical data on each business indicator in the business detail data can be obtained according to the pre-obtained multiple business indicators. Based on this, it is possible to judge whether the indicator statistical data on each business indicator meets the corresponding indicator alarm rule according to the indicator standard data corresponding to each business indicator, and these indicator standard data are baseline data generated according to the historical detail data, so the alarm information can be obtained by judgment. Correspondingly, when the alarm information represents that there are indicator statistical data that meet the indicator alarm rule corresponding to the business indicator, the root cause analysis can be automatically performed according to the alarm information, thereby obtaining the root cause analysis result. It can be seen that in the present application, while keeping the streaming process uninterrupted, the process of root cause analysis can be automatically triggered, so that the operation and maintenance personnel do not need to perform root cause analysis in an offline (offline) manner, thereby avoiding the root cause analysis from consuming too much working time, thereby improving the efficiency of root cause analysis in streaming process. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of 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 ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0046] Figure 1 A flowchart of a method for automatically implementing root cause analysis in stream processing provided in Example 1 of the present application;
[0047] Figure 2 This is a schematic diagram of the overall data flow for streaming processing;
[0048] Figure 3-Figure 6 They are respectively another flow chart of a method for automatically implementing root cause analysis in stream processing provided in Embodiment 1 of the present application;
[0049] Figure 7 A schematic diagram of the structure of a device for automatically implementing root cause analysis in stream processing provided in Example 2 of the present application;
[0050] Figure 8 A schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present application;
[0051] Figure 9-14 They are respectively example diagrams of the application being applicable to automatic implementation of root cause analysis in streaming processing in the banking field. DETAILED DESCRIPTION
[0052] 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.
[0053] refer to Figure 1 As shown, it is a flowchart of a method for automatically implementing root cause analysis in streaming processing provided in Example 1 of the present application. The method can be applicable to electronic devices capable of data processing, such as computers or servers, which are connected to streaming processing devices. The technical solution in this embodiment is mainly used to perform alarm monitoring on business detail data in streaming processing and automatically implement root cause analysis to improve the efficiency of root cause analysis in streaming processing.
[0054] Specifically, the method in this embodiment may include the following steps:
[0055] Step 101: Obtain business detail data in stream processing.
[0056] In this embodiment, the business detail data that needs to be monitored for alarm can be read from the message queue in the stream processing.
[0057] It should be noted that the message queue here refers to the message queue in the message middleware in stream processing, such as Figure 2 As shown in the figure, it is the overall data flow flow chart in stream processing, in which, during the operation of the business application, Figure 2 The modules shown in the figure process transaction data in business applications, i.e., stream processing, as follows:
[0058] The data collector is used to send the qualified file content to the data forwarder by pre-configuring the collection rules and collection frequency, wherein the data collector can be deployed on the client of each business application, and the transaction data generated by the business application is collected by the data collector;
[0059] The data forwarder is used to receive the data files sent by the data collector, and perform file format verification, data analysis, data filtering, and filling in data-related information, and then send the processed transaction data to the message middleware;
[0060] Message middleware can be implemented using a high-throughput distributed publish-subscribe message architecture. Message queues are configured in the message middleware to store pending transaction data and the calculation results obtained from the processing.
[0061] The stream computing module is used to process the core business logic through the stream computing framework, process the transaction data in the message queue, and push the calculation results output by the stream processing to the message queue in the message middleware for caching;
[0062] The data storage device is used to store the streaming computing results in the message middleware. The data can be stored through a distributed full-text search engine.
[0063] Based on this, in this embodiment, during the streaming process, the business detail data in the message queue in the message middleware is read, so as to realize the alarm detection and root cause analysis of the business detail data during the streaming process.
[0064] Step 102: According to one or more business indicators obtained in advance, obtain indicator statistical data on each business indicator in the business detail data.
[0065] In this embodiment, multiple business indicators can be pre-set, and each business indicator represents an alarm monitoring dimension of the business application. Based on this, in actual applications, one or more required business indicators can be extracted from these pre-set business indicators according to the data content of the business detail data and the requirements of alarm monitoring. The extracted business indicators are related to the business detail data. Therefore, according to these extracted business indicators, the indicator statistical data on each business indicator is counted in the business detail data.
[0066] In a specific implementation, the business indicators extracted in step 102 may include any one or more of: transaction volume, business success rate, system success rate, average response time, average processing time, long transaction volume, long transaction rate, average transaction quality value, etc. Among them:
[0067] Transaction volume refers to the number of business transactions within a preset statistical time period, such as 1 minute (or 10 seconds);
[0068] The business success rate refers to the ratio of successful business transactions to the total transaction volume within a preset statistical period, such as 1 minute (or 10 seconds);
[0069] System success rate refers to the ratio of the number of successful transactions in the system to the total transaction volume within a preset statistical time period, such as 1 minute (or 10 seconds);
[0070] Average response time refers to the ratio of system response time to total transaction time within a preset statistical time period, such as 1 minute (or 10 seconds);
[0071] Average processing time refers to the proportion of business processing time to total transaction time within a preset statistical time period, such as 1 minute (or 10 seconds);
[0072] Long transaction volume refers to the number of business transactions whose transaction processing time is greater than a threshold within a preset statistical time period, such as 1 minute (or 10 seconds). Business transactions whose transaction processing time is greater than a threshold are called long transactions.
[0073] Long transaction rate refers to the proportion of long transactions in the total transaction volume within a preset statistical period, such as 1 minute (or 10 seconds);
[0074] The average transaction quality value refers to the average transaction quality value of the statistical transactions within the preset statistical time, such as 1 minute (or 10 seconds). Among them, the business system where each business application is located defines an Apdex threshold for processing, and determines the transaction quality based on this. If the processing time is greater than the Apdex threshold, the quality value is equal to 0; if the processing time is between 75% and 100% of the Apdex threshold, the quality value is 50; if the processing time is between 25% and 75% of the Apdex threshold, the quality value is 75; if the processing time is between 0% and 25% of the Apdex threshold, the quality value is 100.
[0075] Based on this, in step 102, the business detail data can be analyzed to obtain the indicator statistical data on each business indicator.
[0076] It should be noted that, in this embodiment, after obtaining the indicator statistical data on each business indicator, these indicator statistical data can be stored in the message middleware for stream processing.
[0077] Step 103: At least based on the indicator standard data corresponding to each business indicator, determine whether the indicator statistical data on each business indicator meets the indicator alarm rule corresponding to the business indicator to obtain alarm information. When the alarm information indicates that there is an indicator statistical data that meets the indicator alarm rule corresponding to the business indicator, execute step 104.
[0078] The indicator standard data is the baseline data generated based on the historical detailed data. These indicator standard data are stored in a pre-acquired baseline data set, which is generated based on the historical detailed data.
[0079] Specifically, when generating baseline data corresponding to each business indicator, you can first load historical detailed data such as historical data of no alarms and root cause analysis in the message queue, then eliminate the outliers in the historical detailed data, and then count the historical statistical data on the corresponding business indicators from these historical detailed data, and then generate baseline data based on these historical statistical data to form a baseline data set, that is, a baseline data set composed of indicator standard data.
[0080] The indicator alarm rule corresponding to each business indicator can be found in the indicator rule set obtained in advance. The indicator rule set contains multiple indicator alarm rules, each indicator alarm rule corresponds to a business indicator, and each indicator alarm rule is at least one or more rules about the alarm period, alarm level, whether to send alarm information, alarm suppression times, alarm upper and lower baseline thresholds, etc.
[0081] Based on this, in this embodiment, the indicator statistical data of each business indicator can be respectively used to judge whether the corresponding indicator statistical data meets the corresponding indicator alarm rules according to the indicator standard data corresponding to the business indicator. The obtained alarm information can indicate whether the indicator statistical data of the corresponding business indicator meets the indicator alarm rules, and also indicate whether there are any abnormalities in the indicator statistical data of the business indicator, that is, whether an alarm should be issued for the indicator statistical data of the business indicator.
[0082] Specifically, step 103 can be implemented in the following manner:
[0083] First, the indicator statistical data corresponding to each business indicator is compared with the indicator standard data to obtain the data comparison result corresponding to each business indicator, wherein the data comparison result at least represents the data deviation between the indicator statistical data and the indicator representative data; for example, in the transaction volume indicator, the transaction volume in the indicator statistical data is subtracted from the transaction volume in the indicator standard data to obtain the transaction volume deviation value;
[0084] Afterwards, it is determined whether the data comparison result corresponding to each business indicator satisfies the indicator alarm rule corresponding to the business indicator, so as to obtain the corresponding alarm information for each business indicator. For example, in the transaction volume indicator, the transaction volume deviation value is compared with the deviation threshold in the corresponding indicator alarm rule. If the transaction volume deviation value is greater than or equal to the deviation threshold in the indicator alarm rule, then the obtained transaction volume alarm information indicates that the indicator statistics on the transaction volume indicator meet the indicator alarm rule, and an alarm needs to be issued for the transaction volume indicator. If the transaction volume deviation value is less than the deviation threshold in the indicator alarm rule, then the obtained transaction volume alarm information indicates that the indicator statistics on the transaction volume indicator do not meet the indicator alarm rule, and an alarm does not need to be issued for the transaction volume indicator.
[0085] Step 104: Perform root cause analysis based on the alarm information and obtain the root cause analysis result.
[0086] Specifically, in this embodiment, the alarm information can be analyzed to obtain root cause analysis results such as which physical subsystems in the business system have alarms, which transaction codes of the businesses in the physical subsystem have alarms, and which business applications in the businesses corresponding to the transaction codes have alarms.
[0087] For example, in this embodiment, the alarm information can be first analyzed to obtain the alarm object in the alarm information, such as the entity or virtual object where the alarm occurs, such as a physical subsystem or a business application, and then, based on these alarm objects, the physical device information where the alarm occurs is determined. The physical device information here can include: the system identifier of the physical subsystem where the alarm occurs, such as a server identifier, etc., and it can also include the transaction code of the business where the alarm occurs in the physical subsystem where the alarm occurs, such as the transaction code of futures trading, etc., and it can also include the business application where the alarm occurs in the business corresponding to the transaction code where the alarm occurs, such as a payment application.
[0088] Based on this, after outputting the root cause analysis results to the operation and maintenance personnel, the operation and maintenance personnel can adjust the physical subsystems involved in these root cause analysis results, the businesses corresponding to the transaction codes, and the business applications, so as to correct the business system in time and meet the business transaction needs of users.
[0089] It can be seen from the above technical scheme that in a method for automatically implementing root cause analysis in a streaming process provided by the first embodiment of the present application, after obtaining the business detail data in the streaming process, the indicator statistical data on each business indicator in the business detail data can be obtained according to the pre-obtained multiple business indicators. Based on this, it is possible to judge whether the indicator statistical data on each business indicator meets the corresponding indicator alarm rule according to the indicator standard data corresponding to each business indicator, and these indicator standard data are baseline data generated according to the historical detail data, so the alarm information can be obtained by judgment. Correspondingly, when the alarm information indicates that there are indicator statistical data that meet the indicator alarm rule corresponding to the business indicator, the root cause analysis can be automatically performed according to the alarm information, thereby obtaining the root cause analysis result. It can be seen that in this embodiment, while keeping the streaming process uninterrupted, the process of root cause analysis can be automatically triggered, so that the operation and maintenance personnel do not need to perform root cause analysis in an offline (offline) manner, thereby avoiding the root cause analysis from consuming too much working time, thereby improving the efficiency of root cause analysis in streaming processing.
[0090] In one implementation, after the alarm information is obtained in step 103, the following steps may also be included: Figure 3 As shown in:
[0091] Step 105: Analyze the alarm information to obtain the alarm time in the alarm information.
[0092] The alarm time refers to the time when the corresponding indicator statistical data of the business indicator meets the indicator alarm rule, which represents the time when an abnormality exists in the business system.
[0093] Specifically, in this embodiment, the alarm time in the alarm information can be obtained by analyzing the time information in the alarm information.
[0094] Step 106: Obtain the target log corresponding to the alarm time in the log library.
[0095] The log library is stored in the form of distributed files. Based on this, after obtaining the alarm time, the log stored in the distributed file is retrieved in this embodiment to obtain the target log corresponding to the alarm time. These target logs are system logs generated when anomalies occur in the business system.
[0096] Step 107: According to the target log, obtain the alarm problem information corresponding to the alarm information.
[0097] Specifically, in this embodiment, the log content recorded in the target log can be analyzed for abnormal problems, and then alarm problem information can be obtained, so as to locate the abnormal problems in the business application that causes abnormalities in the business corresponding to the transaction code in the physical subsystem, such as users' illegal operations causing abnormalities in business applications or business applications being attacked maliciously causing abnormalities.
[0098] In one implementation, after step 102, the method in this embodiment may further include the following steps: Figure 4 As shown in:
[0099] Step 108: Determine whether there is an indicator alarm rule corresponding to each business indicator of the one or more business indicators obtained in advance in the pre-acquired indicator rule set. If there is an indicator alarm rule corresponding to each business indicator in the indicator rule set, execute step 109; otherwise, end the current root cause analysis process.
[0100] Among them, in this embodiment, by searching for business indicators, it is possible to search in the indicator rule set whether there is an indicator alarm rule corresponding to each business indicator. If there is an indicator alarm rule corresponding to each business indicator in the indicator rule set, then the subsequent root cause analysis process is continued to be executed, otherwise, the current root cause analysis process is directly terminated;
[0101] Step 109: Determine whether there is indicator standard data corresponding to each business indicator in the preset baseline data set. If there is indicator standard data corresponding to each business indicator in the baseline data set, then execute step 103; otherwise, end the current root cause analysis process.
[0102] Among them, in this embodiment, the business indicator search method can be used to search in the baseline data set to see whether there is indicator standard data corresponding to each business indicator. If there is indicator standard data corresponding to each business indicator in the baseline data set, then step 103 and the subsequent root cause analysis process can be executed, otherwise, the current root cause analysis process is directly terminated.
[0103] In one implementation, before step 103, the method in this embodiment may further include the following steps: Figure 5 As shown in:
[0104] Step 110: Read the indicator standard data corresponding to the indicator statistical data in the target time period in the preset baseline data set.
[0105] The corresponding indicator standard data in the target period is stored in the baseline data set in the previous period of the target period.
[0106] It should be noted that the time period here can be understood as a time period in a day, a time period in a month, or a time period in a year, such as 10:00 to 12:00 every day, the 1st to the 10th of each month, January to March of each year, and so on.
[0107] That is to say, in this embodiment, when judging whether the indicator statistical data meets the indicator alarm rule, the indicator standard data corresponding to the target time period is read from the baseline data set that caches the indicator standard data, and the target time period refers to the time period corresponding to the business detail data that needs to be monitored for alarms. The indicator standard data corresponding to the target time period is generated in the previous time period of the target time period, that is, the time period for alarm monitoring of the business detail data of the previous time period, and pre-loaded into the baseline data set. Based on this, the required indicator standard data can be directly read from the cached baseline data set in the current target time period, without waiting for the time for the indicator standard data to be generated, thereby improving efficiency.
[0108] Step 111: Obtain the corresponding index standard data for the next period of the target period and store the corresponding index standard data for the next period of the target period into the baseline data set.
[0109] Among them, when the corresponding indicator standard data in the current target time period is read and used for alarm monitoring, the corresponding indicator standard data in the next time period of the target time period is pre-generated and pre-loaded, and loaded into the baseline data set, thereby realizing the pre-loading of baseline data and further improving efficiency.
[0110] Step 112: Delete the indicator standard data corresponding to the previous period of the target period in the baseline data set.
[0111] Among them, in order to reduce the storage pressure of the baseline data set serving as the cache area in this embodiment, when performing alarm monitoring of the current target time period, the indicator standard data corresponding to the previous time period of the target time period for which alarm monitoring has been completed can be deleted, thereby increasing the storage space in the baseline cache set and reducing storage pressure.
[0112] In one implementation, after step 101, the method in this embodiment may further include the following steps: Figure 6 As shown in:
[0113] Step 113: parse the business detail data to obtain a parsing result.
[0114] Specifically, in this embodiment, dimensions such as data format, data dimension, quantity, etc. of the business detail data may be parsed to obtain parsing results in multiple dimensions such as data format, data dimension, quantity, etc. in the business detail data.
[0115] Step 114: Based on the analysis result, determine whether the business detail data meets the preset transaction legality rules to obtain a determination result. If the determination result indicates that the business detail data meets the transaction legality rules, execute step 102 and subsequent root cause analysis processes; otherwise, directly terminate the current root cause analysis process.
[0116] Specifically, the transaction legality rules are pre-set according to needs, and are configured with legal ranges or conditions in various dimensions such as data format, data dimension and quantity. In this embodiment, after obtaining the analysis results, the data in the analysis results can be compared with the ranges or conditions in the transaction legality rules respectively, so as to obtain a judgment result that can indicate whether the business detail data meets the transaction legality rules.
[0117] refer to Figure 7 , which is a structural diagram of a device for automatically implementing root cause analysis in streaming processing provided in Example 2 of the present application. The device can be applicable to electronic devices capable of data processing, such as computers or servers, which are connected to streaming processing devices. The technical solution in this embodiment is mainly used to perform alarm monitoring on business detail data in streaming processing and automatically implement root cause analysis to improve the efficiency of root cause analysis in streaming processing.
[0118] Specifically, the device in this embodiment may include the following units:
[0119] A detail obtaining unit 701 is used to obtain the service detail data in the stream processing;
[0120] A statistics obtaining unit 702 is used to obtain, according to one or more business indicators obtained in advance, indicator statistical data on each of the business indicators in the business detail data;
[0121] The alarm judgment unit 703 is used to judge whether the indicator statistical data on each of the business indicators meets the indicator alarm rule corresponding to the business indicator at least according to the indicator standard data corresponding to each of the business indicators, so as to obtain alarm information; the indicator standard data is the baseline data generated according to the historical detailed data;
[0122] The root cause triggering unit 704 is used to perform root cause analysis according to the alarm information to obtain a root cause analysis result when the alarm information indicates that the indicator statistical data meets the indicator alarm rule corresponding to the business indicator.
[0123] It can be seen from the above scheme that in a device for automatically implementing root cause analysis in a streaming process provided by the second embodiment of the present application, after obtaining the business detail data in the streaming process, the indicator statistical data on each business indicator in the business detail data can be obtained according to the pre-obtained multiple business indicators. Based on this, it is possible to judge whether the indicator statistical data on each business indicator meets the corresponding indicator alarm rule according to the indicator standard data corresponding to each business indicator, and these indicator standard data are baseline data generated according to the historical detail data, so the alarm information can be obtained by judgment. Correspondingly, when the alarm information indicates that there are indicator statistical data that meet the indicator alarm rule corresponding to the business indicator, the root cause analysis can be automatically performed according to the alarm information, thereby obtaining the root cause analysis result. It can be seen that in this embodiment, while keeping the streaming process uninterrupted, the process of root cause analysis can be automatically triggered, so that the operation and maintenance personnel do not need to perform root cause analysis in an offline (offline) manner, thereby avoiding the root cause analysis from consuming too much working time, thereby improving the efficiency of root cause analysis in streaming processing.
[0124] In one implementation, the root cause trigger unit 704 is specifically used to: analyze the alarm information to obtain the alarm object in the alarm information; determine the physical device information where the alarm occurs based on the alarm object, and the physical device information at least includes the system identifier of the physical subsystem where the alarm occurs, the transaction code of the business where the alarm occurs in the physical subsystem, and the business application where the alarm occurs in the business corresponding to the transaction code.
[0125] In one implementation, the device in this embodiment may further include:
[0126] The alarm locating unit 705 is used to: analyze the alarm information to obtain the alarm time in the alarm information; obtain the target log corresponding to the alarm time in the log library; and obtain the alarm problem information corresponding to the alarm information according to the target log.
[0127] In one implementation, the alarm judgment unit 703 is also used to: pre-obtain an indicator rule set, wherein the indicator rule set includes multiple indicator alarm rules, and the indicator alarm rules are at least any one or more of the rules regarding the alarm period, alarm level, whether to send alarm information, number of alarm suppressions, and alarm upper and lower baseline thresholds.
[0128] In one implementation, after the statistical acquisition unit 702 obtains the indicator statistical data on each business indicator in the business detail data based on one or more business indicators obtained in advance, the alarm judgment unit 703 is also used to: determine whether there is an indicator alarm rule corresponding to each of the one or more business indicators obtained in advance in the indicator rule set; if there is an indicator alarm rule corresponding to each of the business indicators in advance in the indicator rule set, determine whether there is indicator standard data corresponding to each of the business indicators in the preset baseline data set; if there is indicator standard data corresponding to each of the business indicators in the baseline data set, perform the steps of: at least based on the indicator standard data corresponding to each of the business indicators, determine whether each of the indicator statistical data satisfies the indicator alarm rule corresponding to the business indicator to obtain alarm information.
[0129] In one implementation, the alarm judgment unit 703 is specifically used to: respectively compare the indicator statistical data corresponding to each of the business indicators with the indicator standard data to obtain the data comparison result corresponding to each of the business indicators, and the data comparison result at least characterizes the data deviation between the indicator statistical data and the indicator standard data; respectively judge whether the data comparison result corresponding to each of the business indicators meets the indicator alarm rule corresponding to the business indicator, so as to obtain the corresponding alarm information on each of the business indicators.
[0130] In one implementation, the alarm judgment unit 703 is also used to: read the indicator standard data corresponding to the target time period where the indicator statistical data is located in a preset baseline data set before judging whether each of the indicator statistical data satisfies the indicator alarm rule corresponding to the business indicator at least based on the indicator standard data corresponding to each of the business indicators; the indicator standard data corresponding to the target time period is stored in the target storage area in the previous time period of the target time period; obtain the indicator standard data corresponding to the next time period of the target time period and store the indicator standard data corresponding to the next time period of the target time period in the baseline data set; and delete the indicator standard data corresponding to the previous time period of the target time period in the baseline data set.
[0131] In one implementation, after obtaining the business detail data in the streaming processing, the detail acquisition unit 701 is further used to: parse the business detail data to obtain a parsing result; based on the parsing result, judge whether the business detail data meets the preset transaction legality rules to obtain a judgment result; when the judgment result indicates that the business detail data meets the transaction legality rules, execute the steps of: obtaining indicator statistical data on each of the business indicators in the business detail data based on multiple business indicators obtained in advance.
[0132] It should be noted that the specific implementation of each unit in this embodiment can refer to the corresponding content in the previous text and will not be described in detail here.
[0133] refer to Figure 8 , is a structural diagram of an electronic device provided in Example 3 of the present application. The electronic device may be an electronic device capable of data processing, such as a computer or a server, etc. The electronic device is connected to a streaming processing device. The technical solution in this embodiment is mainly used to perform alarm monitoring on business detail data in streaming processing and automatically perform root cause analysis to improve the efficiency of root cause analysis in streaming processing.
[0134] Specifically, the electronic device in this embodiment may include the following structure:
[0135] The memory 801 is used to store the application and the data generated by the running of the application;
[0136] Processor 802 is used to execute the application to achieve: obtaining business detail data in streaming processing; obtaining indicator statistical data on each business indicator in the business detail data based on one or more business indicators obtained in advance; judging whether the indicator statistical data on each business indicator meets the indicator alarm rule corresponding to the business indicator at least based on the indicator standard data corresponding to each business indicator to obtain alarm information; the indicator standard data is baseline data generated based on historical detail data; when the alarm information indicates that the indicator statistical data meets the indicator alarm rule corresponding to the business indicator, performing root cause analysis based on the alarm information to obtain a root cause analysis result.
[0137] It can be seen from the above scheme that in an electronic device provided in the third embodiment of the present application, after obtaining the business detail data in the streaming processing, the indicator statistical data on each business indicator in the business detail data can be obtained according to the pre-obtained multiple business indicators. Based on this, it is possible to judge whether the indicator statistical data on each business indicator meets the corresponding indicator alarm rule according to the indicator standard data corresponding to each business indicator, and these indicator standard data are baseline data generated according to the historical detail data, so the alarm information can be obtained by judgment. Correspondingly, when the alarm information indicates that there are indicator statistical data that meet the indicator alarm rule corresponding to the business indicator, the root cause analysis can be automatically performed according to the alarm information to obtain the root cause analysis result. It can be seen that in this embodiment, while keeping the streaming processing uninterrupted, the process of root cause analysis can be automatically triggered, so that the operation and maintenance personnel do not need to perform root cause analysis in an offline manner, thereby avoiding the root cause analysis from consuming too much working time, thereby improving the efficiency of root cause analysis in streaming processing.
[0138] It should be noted that the specific implementation of the processor in this embodiment can refer to the corresponding content in the previous text and will not be described in detail here.
[0139] Taking the electronic device as a server as an example, the program implemented by the technical solution of the present application is applicable to the technical solution of automatic root cause analysis triggering for streaming processing in the banking field as an example:
[0140] Combination Figure 2 The overall data flow process shown in FIG. 1 is first described below. The method of obtaining the baseline data set in the program implemented in this embodiment is described below.
[0141] like Fig. 9As shown in , in this embodiment, when obtaining the baseline data set, firstly, historical data is loaded, such as historical transaction details data in the bank server, etc., and then, these historical data are processed by data preprocessing, data extraction, data calculation, etc. to obtain the baseline data baseline, that is, the indicator standard data mentioned in the previous text, and finally, these baseline data are stored, specifically, they can be stored in the baseline data set, and the baseline data set can be stored in the message middleware;
[0142] The following describes the triggering process of alarm monitoring and root cause analysis in streaming processing:
[0143] like Fig.10 As shown in , in this embodiment, when performing alarm monitoring, the following process may be included:
[0144] First, load the baseline regularly. Among them, the prerequisite work for streaming computing is the calculation and storage of the baseline. Load the historical data into the program implemented in this embodiment, and then calculate and generate the baseline data for streaming computing. The method for calculating the baseline is determined according to the business scenario. For example, the average value of the transaction volume in the same time period in the past 15 days is the baseline value in that time period. In order to make the system robust, in this embodiment, outliers can be eliminated and the baseline can be calculated by integrating multiple algorithms;
[0145] It should be noted that, since the baseline changes continuously over time and the amount of baseline data is huge, the baseline within a period of time needs to be loaded periodically when the program implemented in this embodiment is started.
[0146] Based on this, the subsequent core process of stream computing is as follows:
[0147] Read transaction detail data: After reading the business detail data from the message queue, it is necessary to process and supplement the related information to provide statistical data of each dimension indicator in the business detail data.
[0148] Data analysis: Analyze whether the business details data is legal. If the business details data is legal, execute the subsequent processes.
[0149] Detailed data is stored in the message middleware: Business detail data is stored in the message middleware for backup and caching.
[0150] Business indicator extraction: Indicator extraction is performed based on detailed information and business rules. In this embodiment, eight business indicators that can be extracted are as follows:
[0151] Transaction volume, business success rate, system success rate, average response time, average processing time, long transaction volume, long transaction rate, and average transaction quality value.
[0152] Business indicator statistics: Obtain statistical data on each business indicator.
[0153] Statistical data is stored in the message middleware: Statistical data for the current period is stored in the distributed full-text search engine through the message middleware, providing historical query and baseline calculation.
[0154] Alarm rule loading: Various alarm rules can be configured through the web page, including time period, alarm level, whether to send alarm information, configuration suppression times, upper and lower baseline thresholds, etc. For the same alarm rule configuration on different systems, this embodiment can use a package to unify the configuration management, which can greatly reduce the configuration workload.
[0155] Check whether there are corresponding alarm rules for the business indicators: Check whether there are corresponding alarm rules for each business indicator in the loaded alarm rules.
[0156] Whether there is a baseline corresponding to the business indicator: Check whether there is a corresponding baseline for each business indicator in the loaded baseline.
[0157] Trigger alarm: When there is a corresponding alarm rule for each business indicator in the loaded alarm rules and a corresponding baseline for each business indicator in the loaded baseline, the alarm triggering logic judgment is implemented according to the baseline and alarm rules, that is, whether the statistical data on each business indicator and the corresponding baseline meet the alarm rules. If so, the generated alarm notification is pushed, that is, the alarm message mentioned above.
[0158] Whether to trigger root cause analysis: Determine whether the alarm message indicates that the statistical data on each business indicator and the corresponding baseline meet the alarm rules. If so, trigger root cause analysis.
[0159] Root cause analysis: Based on the generated alarm information, analyze the cause of the alarm and generate the analysis results to locate the problem log. The detailed process of locating the problem log is as follows: Fig.11 The root cause analysis module in the program implemented in this embodiment obtains the alarm information, determines which machine and which machine has the problem according to the alarm object in the alarm information, and retrieves the log stored in the distributed file according to the alarm time, and records the location log result information, thereby realizing rapid problem location.
[0160] The following combination Fig.12 , Fig.13 and Fig.14 The example diagram shown in the figure illustrates the process of root cause analysis.
[0161] When the monitoring system implemented in this embodiment finds a system (such as Fig.12 When the business success rate of the overview view (shown in FIG. 1 ) is only 89% and is lower than the normal requirement (such as 99%), the system implemented in this embodiment automatically drills down to the secondary view transaction code view (such as FIG. 1 ). Fig.13 The secondary view shown in the figure is arranged in reverse order according to the business success rate. It is found that the business success rate of some transaction codes is low. Based on this, the business application view (such as Fig.14 The three-level view shown in the figure is sorted in reverse order according to the business success rate to locate which specific business applications have a low business success rate. Then, the problem is located by searching the logs of the corresponding business applications and searching for error keywords.
[0162] It can be seen that the solution of automatic triggering of root cause analysis of real-time data streaming processing implemented in the present application integrates real-time data streaming processing, alarms, alarm rule configuration and automatic triggering of root cause analysis after the alarm occurs, which reduces the time for operation and maintenance personnel to analyze and troubleshoot problems, improves department work efficiency, better ensures the stability of the system, and basically realizes full process automation of the entire process, reducing manual participation.
[0163] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0164] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0165] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0166] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for automatically implementing root cause analysis in streaming processing, characterized in that: The method comprises: Obtain detailed business data in streaming processing; According to one or more business indicators obtained in advance, obtaining indicator statistical data on each of the business indicators in the business detail data; At least according to the indicator standard data corresponding to each of the business indicators, determine whether the indicator statistical data on each of the business indicators meets the indicator alarm rule corresponding to the business indicator to obtain alarm information; the indicator standard data is the baseline data generated according to the historical detailed data; In a case where the alarm information indicates that the indicator statistical data satisfies the indicator alarm rule corresponding to the business indicator, performing a root cause analysis according to the alarm information to obtain a root cause analysis result; After obtaining, according to one or more pre-acquired business indicators, indicator statistical data on each of the business indicators in the business detail data, the method further includes: Determining whether there is an indicator alarm rule corresponding to each of the one or more business indicators obtained in advance in the indicator rule set obtained in advance; In the case where there is an indicator alarm rule corresponding to each of the business indicators in the indicator rule set, determining whether there is indicator standard data corresponding to each of the business indicators in the preset baseline data set; In the case where there are indicator standard data corresponding to each of the business indicators in the baseline data set, execute the steps of: at least based on the indicator standard data corresponding to each of the business indicators, determine whether each of the indicator statistical data meets the indicator alarm rule corresponding to the business indicator to obtain alarm information.
2. The method according to claim 1, characterized in that Perform root cause analysis according to the alarm information to obtain root cause analysis results, including: Analyze the alarm information to obtain the alarm object in the alarm information; According to the alarm object, the physical device information where the alarm occurs is determined, wherein the physical device information at least includes the system identifier of the physical subsystem where the alarm occurs, the transaction code of the business where the alarm occurs in the physical subsystem, and the business application where the alarm occurs in the business corresponding to the transaction code.
3. The method according to claim 1 or 2, characterized in that: Also includes: Analyze the alarm information to obtain the alarm time in the alarm information; Obtain the target log corresponding to the alarm time in the log library; According to the target log, alarm problem information corresponding to the alarm information is obtained.
4. The method according to claim 1, characterized in that: Also includes: An indicator rule set is obtained in advance, wherein the indicator rule set includes multiple indicator alarm rules, and the indicator alarm rules are at least any one or more of the rules regarding the alarm period, alarm level, whether to send alarm information, alarm suppression times, and alarm upper and lower baseline thresholds.
5. The method according to claim 1, characterized in that At least according to the indicator standard data corresponding to each of the business indicators, judging whether each of the indicator statistical data satisfies the indicator alarm rule corresponding to the business indicator, including: Comparing the indicator statistical data corresponding to each of the business indicators with the indicator standard data respectively to obtain a data comparison result corresponding to each of the business indicators, wherein the data comparison result at least represents a data deviation between the indicator statistical data and the indicator standard data; It is determined whether the data comparison result corresponding to each of the business indicators satisfies the indicator alarm rule corresponding to the business indicator, so as to obtain the corresponding alarm information on each of the business indicators.
6. The method according to claim 1, characterized in that Before respectively judging whether each of the indicator statistical data satisfies the indicator alarm rule corresponding to the business indicator at least according to the indicator standard data corresponding to each of the business indicators, the method further includes: Reading the index standard data corresponding to the target period where the index statistical data is located in the preset baseline data set; the index standard data corresponding to the target period is stored in the target storage area in the previous period of the target period; Obtaining the index standard data corresponding to the next period of the target period and storing the index standard data corresponding to the next period of the target period in the baseline data set; Delete the indicator standard data corresponding to the previous period of the target period in the baseline data set.
7. The method according to claim 1, characterized in that After obtaining the business detail data in the stream processing, the method further includes: Parsing the business detail data to obtain a parsing result; According to the analysis result, whether the business detail data meets the preset transaction legality rules is judged to obtain a judgment result; When the judgment result indicates that the business detail data meets the transaction legality rules, the step of obtaining indicator statistical data on each of the business indicators in the business detail data according to a plurality of business indicators obtained in advance is performed.
8. A device for automatically implementing root cause analysis in stream processing, characterized in that: The device comprises: A detail acquisition unit is used to obtain the business detail data in the stream processing; A statistics obtaining unit, used to obtain, according to one or more business indicators obtained in advance, indicator statistical data on each of the business indicators in the business detail data; An alarm judgment unit is used to judge whether the indicator statistical data on each of the business indicators meets the indicator alarm rule corresponding to the business indicator at least according to the indicator standard data corresponding to each of the business indicators, so as to obtain alarm information; the indicator standard data is the baseline data generated according to the historical detailed data; A root cause triggering unit, configured to perform a root cause analysis according to the alarm information to obtain a root cause analysis result when the alarm information indicates that the indicator statistical data satisfies the indicator alarm rule corresponding to the business indicator; After the statistical obtaining unit obtains the indicator statistical data on each of the business indicators in the business detail data according to the one or more business indicators obtained in advance, the alarm judgment unit is further used to: Determining whether there is an indicator alarm rule corresponding to each of the one or more business indicators obtained in advance in the indicator rule set obtained in advance; In the case where there is an indicator alarm rule corresponding to each of the business indicators in the indicator rule set, determining whether there is indicator standard data corresponding to each of the business indicators in the preset baseline data set; In the case where there are indicator standard data corresponding to each of the business indicators in the baseline data set, execute the steps of: at least based on the indicator standard data corresponding to each of the business indicators, determine whether each of the indicator statistical data meets the indicator alarm rule corresponding to the business indicator to obtain alarm information.
9. An electronic device, characterized in that: include: A memory, used to store applications and data generated by the operation of the applications; A processor is used to execute the application program to achieve: obtaining the business detail data in the streaming process; obtaining the indicator statistical data on each of the business indicators in the business detail data according to one or more business indicators obtained in advance; At least according to the indicator standard data corresponding to each of the business indicators, determine whether the indicator statistical data on each of the business indicators meets the indicator alarm rule corresponding to the business indicator to obtain alarm information; The indicator standard data is the baseline data generated based on the historical detailed data; In a case where the alarm information indicates that the indicator statistical data satisfies the indicator alarm rule corresponding to the business indicator, performing a root cause analysis according to the alarm information to obtain a root cause analysis result; After obtaining the indicator statistical data on each of the business indicators in the business detail data according to the one or more business indicators obtained in advance, determining whether there is an indicator alarm rule corresponding to each of the one or more business indicators obtained in advance in the indicator rule set obtained in advance; In the case where there is an indicator alarm rule corresponding to each of the business indicators in the indicator rule set, determining whether there is indicator standard data corresponding to each of the business indicators in the preset baseline data set; In the case where there are indicator standard data corresponding to each of the business indicators in the baseline data set, execute the steps of: at least based on the indicator standard data corresponding to each of the business indicators, determine whether each of the indicator statistical data meets the indicator alarm rule corresponding to the business indicator to obtain alarm information.
Citation Information
Patent Citations
A monitoring analysis system and method for an operation state of an enterprise information system
CN109783322A
Fault source determination method and device, electronic equipment and readable storage medium
CN110351150A
Business system fault positioning method based on correlation analysis model
CN110955575A
Data monitoring method, device and equipment
CN111639011A
Identification of distinguishable anomalies extracted from real time data streams
US20170277582A1
