Information pushing method and system based on big data service
By constructing a crash flow path diagram and using the target program crash root cause location network, combined with multiple retrieval program crash vector sequences, crash repair push information is generated, which solves the problem of low efficiency of application crash analysis in big data services and achieves more accurate Locating the cause of the crash and quickly repairing it improves system stability and user experience.
Patent Information
- Application Number
- CN202411187902.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing application crash analysis methods in big data services are inefficient and difficult to accurately locate the cause of the crash. Moreover, traditional methods ignore the propagation path and data processing process of crash events within the application, resulting in inaccurate and comprehensive analysis results.
By constructing a crash flow path diagram, using the target program crash root cause to locate the characteristic reconstruction unit in the network, combined with multiple retrieval program crash vector sequences and crash flow path diagrams, the reconstruction retrieval program crash vector is determined, and then a reconstruction retrieval program crash vector is generated for big data service applications. Crash repair push information, including a detailed description of the cause of the crash and the repair plan.
Significantly improves the analysis efficiency and repair speed of application crash problems, improves the stability and user experience of big data service applications, provides more accurate and detailed crash root cause analysis, and ensures that system administrators or developers can respond quickly and Solve problems.
Smart Images

Figure CN118869449A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to an information push method and system based on big data services. Background Art
[0002] With the rapid development of big data technology, big data service applications have become an indispensable part of all walks of life. However, during the operation of big data service applications, application crashes often occur, which not only affects the normal operation of the service, but may also cause user data loss or system security risks. Therefore, how to quickly and accurately locate the cause of application crashes and provide effective repair solutions has become an urgent problem to be solved in the field of big data services.
[0003] Traditional application crash analysis methods mainly rely on the experience of developers and code review, which is not only inefficient but also easy to miss important crash causes. In addition, with the increasing complexity of applications and the amount of data, traditional analysis methods can no longer meet actual needs.
[0004] In recent years, crash analysis methods based on big data and machine learning have gradually emerged. These methods collect and analyze application crash logs, build a correlation model of crash events, and use machine learning algorithms to automatically identify and locate the cause of the crash. However, existing crash analysis methods based on big data often ignore the propagation path and data processing flow of crash events within the application when building a crash event correlation model, resulting in inaccurate and incomplete analysis results. Summary of the invention
[0005] In view of the above-mentioned problems, in combination with the first aspect of the present application, an embodiment of the present application provides an information push method based on big data service, the method comprising: Determine the crash flow path graph corresponding to the application crash log in the big data service application; Using a target feature reconstruction unit in a target program crash root cause location network, based on a plurality of retrieval program crash vector sequences and the crash flow path diagram, a reconstructed retrieval program crash vector corresponding to each retrieval program crash vector in the plurality of retrieval program crash vector sequences is determined; the plurality of retrieval program crash vector sequences are generated by clustering each candidate retrieval program crash vector corresponding to the target feature reconstruction unit; the candidate retrieval program crash vector is determined based on an initial retrieval program crash vector, or is generated by selecting from each reconstructed retrieval program crash vector generated by a previous feature reconstruction unit of the target feature reconstruction unit according to a critical condition, and the target feature reconstruction unit is a feature reconstruction unit in the target program crash root cause location network; Classify each reconstructed retrieval program crash vector generated by the last feature reconstruction unit in the target program crash root cause location network to determine the target crash root cause node location data corresponding to the application crash log; Crash repair push information for the big data service application is generated based on the target crash root cause node location data corresponding to the application crash log.
[0006] For example, in a possible implementation of the first aspect, the step of generating crash repair push information for the big data service application based on the target crash root cause node location data corresponding to the application crash log includes: According to the target crash root cause node location data, the crash causes are classified, and after the crash causes are prioritized according to their impact on user experience and system stability, a corresponding crash repair solution is generated according to each type of crash cause in the priority ranking result; Generate corresponding push information content according to the crash repair solution, the push information content includes a description of the crash problem, a brief description of the repair solution, and the actions that the user needs to take; The push information content is sent to affected users through the push system of the big data service platform, and after the push information content is pushed, user feedback is collected and uploaded to the big data service platform.
[0007] On the other hand, an embodiment of the present application also provides an information push system based on big data services, including a processor and a machine-readable storage medium, wherein the machine-readable storage medium is connected to the processor, the machine-readable storage medium is used to store programs, instructions or codes, and the processor is used to execute the programs, instructions or codes in the machine-readable storage medium to implement the above method.
[0008] Based on the above aspects, the embodiments of the present application significantly improve the analysis efficiency and repair speed of application crash problems. By constructing a crash flow path diagram, the propagation path and data processing flow of the crash event within the big data service application can be clearly displayed, providing strong support for the precise positioning of the root cause of the crash. By utilizing the feature reconstruction unit in the target program crash root cause positioning network, combined with multiple retrieval program crash vector sequences and crash flow path diagrams, a more accurate and detailed reconstructed retrieval program crash vector can be generated, further improving the accuracy of the crash root cause analysis. In addition, based on the classification of the reconstructed retrieval program crash vector generated by the last feature reconstruction unit of the target program crash root cause positioning network, the target crash root cause node positioning data corresponding to the application crash log can be quickly determined, providing a clear direction for crash repair. The crash repair push information generated based on these positioning data not only includes a detailed description of the cause of the crash, but also provides corresponding repair solutions or temporary measures, so that system administrators or developers can respond and solve problems quickly, effectively improving the stability and user experience of big data service applications. Therefore, by constructing a crash flow path diagram, using the target program crash root cause location network to perform crash root cause analysis and generate crash repair push information, the processing efficiency and repair speed of application crash problems in big data service applications are significantly improved, thereby improving system stability and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is a schematic diagram of the execution flow of the information push method based on big data service provided in an embodiment of the present application.
[0010] Figure 2 It is a schematic diagram of the hardware architecture of the information push system based on big data services provided in an embodiment of the present application. DETAILED DESCRIPTION
[0011] The present application will be described in detail below with reference to the accompanying drawings. Figure 1 This is a flow chart of an information push method based on big data service provided by an embodiment of the present application. The information push method based on big data service is introduced in detail below.
[0012] Step S110, determining a crash flow path graph corresponding to an application crash log in a big data service application.
[0013] In detail, the application crash log is information about the crash event automatically generated and recorded by the system when the software or application suddenly stops running or anomalies occur for some reason. It usually includes the time when the crash occurred, the crash location (such as the line number of the code), the system state at the time of the crash, the call stack, etc., which are used for subsequent problem location and troubleshooting. For example, in the background management system of an e-commerce website, when a user tries to access a certain page, the system suddenly crashes and displays an error page. At this time, the system will generate a crash log, which may contain the following information: "Crash time: 2023-10-23 15:00:00, crash location: ProductListController.java line 123, call stack:...".
[0014] The crash flow path diagram is based on the key information in the application crash log, and it visually displays the process path diagram of the occurrence, propagation and impact of the crash event within the application. It can help developers clearly understand the entire processing flow of the crash event from occurrence to capture, as well as the system components and data processing steps involved in this process. For example, suppose an online payment system crashes. After the server parses the crash log, it constructs a crash flow path diagram. The crash flow path diagram shows that after the user initiates a payment request, the request flows from the front-end page to the back-end service. After a series of operations such as payment verification, account balance query, and database transaction record update, a crash occurs in the database query stage, causing the entire payment process to be interrupted.
[0015] That is, in this embodiment, the server receives an application crash log in a big data service application, and first parses these application crash logs to extract key information such as the time, location, and program code running relationship of the crash. Then, the server uses this key information to build a crash flow path diagram, which can clearly show the call relationship and data processing flow within the big data service application when the crash occurs. For example, when the server processes an application crash log of an e-commerce website, the crash flow path diagram may show the user request flowing from the front-end page to the back-end service, and then after a series of operations such as database query, at which link the crash finally occurred.
[0016] Step S120, using the target feature reconstruction unit in the target program crash root cause location network, based on multiple retrieval program crash vector sequences and the crash flow path diagram, determine the reconstructed retrieval program crash vectors corresponding to each retrieval program crash vector in the multiple retrieval program crash vector sequences. The multiple retrieval program crash vector sequences are generated by clustering the candidate retrieval program crash vectors corresponding to the target feature reconstruction unit. The candidate retrieval program crash vector is determined based on the initial retrieval program crash vector, or is selected and generated from the reconstructed retrieval program crash vectors generated by the previous feature reconstruction unit of the target feature reconstruction unit according to the criticality condition. The target feature reconstruction unit is a feature reconstruction unit in the target program crash root cause location network.
[0017] In detail, the target program crash root cause location network is a machine learning or deep learning network model specifically used to analyze application crash logs and locate the root cause of the crash. It usually contains multiple feature reconstruction units, each of which is responsible for processing crash data at different levels, gradually narrowing the scope of the crash cause in a layer-by-layer progressive manner, and ultimately locating the root cause of the crash.
[0018] For example, in an intelligent logistics system, in order to quickly locate and resolve crash problems, the system maintenance team deployed a target program crash root cause location network. The network consists of multiple feature reconstruction units, each of which is specially trained and optimized to handle different types of crash data.
[0019] The target feature reconstruction unit is a component of the target program crash root cause location network, responsible for processing specific crash data and outputting the reconstructed retrieval program crash vector. Each feature reconstruction unit is specially trained and optimized to adapt to different crash scenarios and data features.
[0020] For example, in the target program crash root cause location network, there may be multiple feature reconstruction units, each optimized for different crash features or patterns. For example, the first feature reconstruction unit may focus on processing database-related crash data, while the second feature reconstruction unit may focus more on crash issues such as memory leaks and network communications.
[0021] The retrieval program crash vector sequence is a set of ordered sequences generated after clustering the candidate retrieval program crash vectors. Each ordered sequence contains a set of similar candidate retrieval program crash vectors, and these candidate retrieval program crash vectors may point to a certain type of crash problem in common. Through clustering, similar crash events can be grouped to facilitate subsequent feature reconstruction and crash cause analysis. For example, after the server obtains a set of candidate retrieval program crash vectors from the target feature reconstruction unit, it uses a clustering algorithm (such as K-means) to cluster these candidate retrieval program crash vectors to generate multiple retrieval program crash vector sequences. The vectors in each retrieval program crash vector sequence have similar crash features or patterns, such as database connection problems, memory leaks, etc.
[0022] The reconstructed retrieval program crash vector is a new vector generated by processing the original retrieval program crash vector or the reconstructed retrieval program crash vector output by the previous feature reconstruction unit through a certain reconstruction algorithm (such as machine learning or deep learning model), which contains more detailed information about the crash context and is used to more accurately locate the cause of the crash. For example, in the crash analysis of an online payment system, the server inputs the crash vector of the payment process (such as transaction verification failure, account balance query abnormality, etc.) into the feature reconstruction unit. The feature reconstruction unit reconstructs these crash vectors in combination with the crash flow path diagram to generate reconstructed retrieval program crash vectors. These reconstructed retrieval program crash vectors contain more information about the crash context, such as the system state when the crash occurred, the call relationship of related components, etc.
[0023] The critical condition is a condition or threshold used to screen candidate retrieval program crash vectors or reconstructed retrieval program crash vectors, and is usually related to the confidence, sample reference value or other relevant indicators of the candidate retrieval program crash vectors or reconstructed retrieval program crash vectors, and is used to determine which candidate retrieval program crash vectors or reconstructed retrieval program crash vectors are more important or representative for crash cause analysis. For example, when screening candidate retrieval program crash vectors, the server may set a confidence threshold as a critical condition. Only vectors with a confidence higher than the threshold will be selected as input data for the target feature reconstruction unit. Similarly, when allocating retrieval program crash vector sequences, critical conditions can also be set based on the sample reference value of the vector to ensure that each sequence contains a certain number of important crash events.
[0024] That is, in this embodiment, the server now has a constructed crash flow path diagram, and then can use a pre-trained target program crash root cause location network to analyze the crash cause. In this target program crash root cause location network, a specific feature reconstruction unit is activated, and this feature reconstruction unit will process clustered retrieval program crash vector sequences, which are obtained by screening and clustering the initial retrieval program crash vector or the reconstructed retrieval program crash vector output by the previous feature reconstruction unit.
[0025] For example, when a server processes a crash of an online payment system, the server can input the crash vectors of the payment process (such as transaction verification failure, abnormal account balance query, etc.) into the feature reconstruction unit, which will reconstruct these crash vectors in combination with the crash flow path diagram to more accurately locate the root cause of the crash. The reconstructed retrieval program crash vector will contain more detailed information about the crash context.
[0026] Step S130 , classifying each reconstructed retrieval program crash vector generated by the last feature reconstruction unit in the target program crash root cause location network, and determining the target crash root cause node location data corresponding to the application crash log.
[0027] In detail, the target crash root cause node location data is one of the results output by the target program crash root cause location network, which is used to indicate the node or location where the root cause of the crash occurs. It is classified and summarized based on the reconstructed retrieval program crash vector, and includes the classification information of the crash cause, confidence, and related system components or code locations, etc.
[0028] For example, in the crash analysis of the intelligent logistics system, the server classifies and processes the reconstructed retrieval program crash vectors through the target program crash root cause location network, and obtains the target crash root cause node location data. These target crash root cause node location data clearly indicate that the crash is caused by a database connection timeout, and provide relevant system component and code location information, which facilitates developers to quickly locate and fix problems.
[0029] That is, in this embodiment, after the last feature reconstruction unit of the target program crash root cause location network completes its work, the server obtains a series of reconstructed retrieval program crash vectors, which are now used for classification tasks to determine specific crash root cause node location data, which means that the server must identify which crashes are caused by the same root cause and classify these causes.
[0030] Taking the crash analysis of the smart logistics system as an example, the server may find that multiple crash events are related to database connection timeout. Through classification, the server can accurately attribute these crash events to the same type of problem and generate corresponding crash root cause node location data, clearly pointing out that database connection timeout is the main cause.
[0031] Step S140: Generate crash repair push information for the big data service application based on the target crash root cause node location data corresponding to the application crash log.
[0032] In detail, the crash repair push information is generated based on the target crash root cause node location data, and is used to notify affected users or system administrators of the cause of the crash and the corresponding repair plan or temporary measures, usually including a description of the crash problem, a brief description of the repair plan, and the actions that the user needs to take.
[0033] For example, after identifying that the intelligent logistics system crashed due to a database connection timeout, the server generated a crash repair push message and sent it to the system administrator through the push system of the big data service platform. This information describes the cause of the crash (database connection timeout), the recommended repair plan (checking the database server performance and network connection status), and possible temporary measures (increasing the database connection timeout setting) so that the administrator can take quick action to resolve the problem. In this embodiment, once the server determines the root cause of the crash, it can generate crash repair push information based on the target crash root cause node location data. These crash repair push messages not only describe the specific cause of the crash, but also provide solutions or temporary repair measures for these problems.
[0034] Based on the above steps, the embodiment of the present application significantly improves the analysis efficiency and repair speed of application crash problems. By constructing a crash flow path diagram, the propagation path and data processing flow of the crash event within the big data service application can be clearly displayed, providing strong support for the precise positioning of the root cause of the crash. By utilizing the feature reconstruction unit in the target program crash root cause positioning network, combined with multiple retrieval program crash vector sequences and crash flow path diagrams, a more accurate and detailed reconstructed retrieval program crash vector can be generated, further improving the accuracy of the crash root cause analysis. In addition, based on the classification of the reconstructed retrieval program crash vector generated by the last feature reconstruction unit of the target program crash root cause positioning network, the target crash root cause node positioning data corresponding to the application crash log can be quickly determined, providing a clear direction for crash repair. The crash repair push information generated based on these positioning data not only includes a detailed description of the cause of the crash, but also provides corresponding repair solutions or temporary measures, so that system administrators or developers can respond and solve problems quickly, effectively improving the stability and user experience of big data service applications. Therefore, by constructing a crash flow path diagram, using the target program crash root cause location network to perform crash root cause analysis and generate crash repair push information, the processing efficiency and repair speed of application crash problems in big data service applications are significantly improved, thereby improving system stability and user experience.
[0035] In a possible implementation manner, when the target feature reconstruction unit is a non-starting feature reconstruction unit in the target program crash root cause location network, the step of determining each candidate retrieval program crash vector corresponding to the target feature reconstruction unit includes: Step A110, based on each reconstructed retrieval program crash vector generated by the previous feature reconstruction unit, determine the target crash root cause node location data corresponding to each reconstructed retrieval program crash vector. The target crash root cause node location data includes the confidence corresponding to the program crash root cause node represented by the reconstructed retrieval program crash vector.
[0036] In this embodiment, when the target feature reconstruction unit is located at a non-starting position in the target program crash root cause location network, the determination process of its corresponding candidate retrieval program crash vector will depend on the output result of the previous feature reconstruction unit.
[0037] Assume that the online payment system occasionally crashes due to various complex reasons. In order to analyze the causes of these crashes, a target program crash root cause location network is established, which contains multiple feature reconstruction units, each of which is responsible for processing crash data at different levels.
[0038] In this scenario, we focus on the target feature reconstruction unit (assuming it is the Nth feature reconstruction unit), which is not the first feature reconstruction unit in the target program crash root cause location network. The task of this target feature reconstruction unit is to further refine the analysis of the crash cause based on the output of the previous feature reconstruction unit (the N-1th feature reconstruction unit).
[0039] In detail, the server first obtains each reconstruction retrieval program crash vector generated by the previous feature reconstruction unit (the N-1th feature reconstruction unit), and these reconstruction retrieval program crash vectors have been preliminarily processed and analyzed and contain certain crash cause information.
[0040] For each reconstructed retrieval program crash vector output from the N-1th feature reconstruction unit, the server can analyze and determine their respective corresponding target crash root cause node location data. These target crash root cause node location data describe the crash cause represented by each reconstructed retrieval program crash vector and include a confidence value indicating the credibility of the crash cause.
[0041] For example, a reconstruction retrieval program crash vector might represent a "database connection timeout" problem with a confidence of 0.8, meaning the server is 80% sure that this problem is the root cause of the crash.
[0042] Step A120, based on the confidence in the target crash root cause node positioning data corresponding to each of the reconstruction retrieval program crash vectors, determine the reconstruction retrieval program crash vector that meets the criticality condition from each of the reconstruction retrieval program crash vectors, and output it as a candidate retrieval program crash vector corresponding to the target feature reconstruction unit.
[0043] The server then sets a criticality condition, which is usually associated with a confidence level. For example, you may only be interested in crash causes with a confidence level above a certain threshold (such as 0.7).
[0044] The server traverses all the reconstructed retrieval program crash vectors and selects the vectors that meet the criticality criteria based on the confidence in their respective target crash root cause node location data.
[0045] For example, all crash reason vectors for "Database connection timeout" with a confidence level higher than 0.7 will be selected.
[0046] Finally, the server outputs the screened reconstruction retrieval program crash vectors as candidate retrieval program crash vectors of the target feature reconstruction unit (the Nth feature reconstruction unit), and these vectors will be used as inputs of the Nth feature reconstruction unit for further analysis and processing.
[0047] Through the above steps, the server can analyze the cause of the crash layer by layer in the target program crash root cause location network, gradually narrow the scope of the problem, and finally locate the root cause of the crash. This gradually refined analysis method helps to improve the accuracy and efficiency of crash analysis.
[0048] In a possible implementation manner, the unit loading part of the previous feature reconstruction unit includes a plurality of retrieval program crash vector sequences generated by clustering the candidate retrieval program crash vectors corresponding to the previous feature reconstruction unit. The unit generating part of the previous feature reconstruction unit includes reconstructed retrieval program crash vector sequences corresponding to the plurality of retrieval program crash vector sequences.
[0049] Step A120 includes: for each of the reconstruction retrieval program crash vector sequences, based on the confidence in the target crash root cause node positioning data corresponding to each of the reconstruction retrieval program crash vectors, determining a reconstruction retrieval program crash vector that meets the criticality condition from the reconstruction retrieval program crash vector sequence, and outputting it as a candidate retrieval program crash vector corresponding to the target feature reconstruction unit.
[0050] In this embodiment, it is assumed that a big data service application of an online retail system is being processed. The online retail system has recently encountered some application crash problems. In order to locate and solve these crash problems, a target program crash root cause location network is used. The target program crash root cause location network is composed of multiple feature reconstruction units, each of which is responsible for processing crash data at different levels.
[0051] The server first receives the output data from the previous feature reconstruction unit (assuming it is the N-1th feature reconstruction unit), which includes a series of candidate retrieval program crash vectors, each of which represents a possible crash cause or pattern. In order to process these vectors more efficiently, the server can cluster them.
[0052] In detail, the server obtains all candidate retrieval program crash vectors from the N-1th feature reconstruction unit. These candidate retrieval program crash vectors may contain information on various crash causes such as "database query timeout" and "memory leak".
[0053] Next, the server uses a clustering algorithm (such as K-means) to cluster these candidate retrieval program crash vectors. The goal of clustering is to group vectors based on their similarity so that vectors in the same group have similar crash characteristics or causes. After clustering, the server obtains multiple retrieval program crash vector sequences. Each retrieval program crash vector sequence contains a group of similar candidate retrieval program crash vectors, which may point to a certain type of crash problem.
[0054] After clustering to generate multiple retrieval program crash vector sequences, the server may further process the retrieval program crash vector sequences and generate a corresponding reconstructed retrieval program crash vector sequence for each retrieval program crash vector sequence.
[0055] In detail, the server processes each retrieval program crash vector sequence in turn. For each retrieval program crash vector sequence, the server can analyze the candidate retrieval program crash vectors therein and try to more accurately reconstruct these candidate retrieval program crash vectors so as to more accurately describe the crash cause.
[0056] The server reconstructs the candidate retrieval program crash vectors in each sequence using a reconstruction algorithm (possibly based on machine learning or deep learning methods). The reconstruction process may include operations such as feature extraction, feature transformation, or feature enhancement, which aims to highlight the key information in the candidate retrieval program crash vectors while removing noise or redundant data. After the reconstruction process, the server generates a corresponding reconstructed retrieval program crash vector sequence for each original retrieval program crash vector sequence, and these reconstructed vector sequences contain more accurate and targeted crash cause information.
[0057] After having multiple reconstruction retrieval program crash vector sequences, the server needs to determine which vectors meet the criticality condition based on the vectors in these reconstruction retrieval program crash vector sequences, so as to use these vectors as candidate retrieval program crash vectors of the target feature reconstruction unit (the Nth feature reconstruction unit).
[0058] In detail, the server first analyzes the target crash root cause node location data corresponding to each vector in the reconstructed retrieval program crash vector sequence. These target crash root cause node location data contain the confidence of the crash cause represented by each vector, that is, the server's trust level in the cause.
[0059] The server sets a criticality condition, usually associated with a confidence threshold. For example, the server may only care about crash causes with a confidence higher than 0.8. For each sequence of reconstructed retrieval program crash vectors, the server iterates over all vectors in it and filters them based on the confidence in their respective target crash root cause node location data. Only vectors with a confidence higher than the set threshold are selected.
[0060] The server outputs the screened reconstruction retrieval program crash vectors as candidate retrieval program crash vectors of the target feature reconstruction unit (the Nth feature reconstruction unit), and these vectors will be used as input data of the Nth feature reconstruction unit for further analysis and processing.
[0061] Through the above steps, the server can process a large amount of crash data more effectively and gradually narrow down the scope of the crash cause, providing more targeted input data for subsequent crash root cause location.
[0062] In a possible implementation, when the target feature reconstruction unit is the first feature reconstruction unit in the target program crash root cause location network, the step of determining each candidate retrieval program crash vector corresponding to the target feature reconstruction unit includes: The initial retrieval program crash vectors are output as candidate retrieval program crash vectors corresponding to the target feature reconstruction unit.
[0063] In detail, in the case of the first feature reconstruction unit (i.e., the first unit to process crash data), since it is the entry point of the entire target program crash root cause location network, there is no output of the previous feature reconstruction unit for reference. Therefore, the server usually directly uses the initial retrieved program crash vector as the candidate retrieved program crash vector.
[0064] The server first parses the collected application crash logs to extract key information, such as the time, location, call stack, etc. of the crash, and generates initial retrieval program crash vectors based on this information. These vectors contain the original features of the crash event.
[0065] Since this is the first feature reconstruction unit, the server has no data from other sources for reference. Therefore, all initial retrieval program crash vectors can be directly output as candidate retrieval program crash vectors corresponding to this unit.
[0066] Alternatively, determine the sample reference value corresponding to each of the initial retrieval program crash vectors, and based on the sample reference values respectively corresponding to each of the initial retrieval program crash vectors, determine the initial retrieval program crash vector that meets the set reference value requirements from each of the initial retrieval program crash vectors, and output it as a candidate retrieval program crash vector corresponding to the target feature reconstruction unit.
[0067] In this embodiment, in some cases, in order to more accurately focus on important or representative crash events, the server may filter each initial retrieval program crash vector based on its sample reference value.
[0068] In detail, the server can calculate a sample reference value for each initial retrieval program crash vector, which may be based on a variety of factors, such as the frequency of crashes, the number of users affected, the importance of the code modules involved, etc. According to the needs of the analysis, the server can set one or more reference value requirements. For example, you can focus on crash events whose sample reference values are higher than a certain threshold. The server traverses all initial retrieval program crash vectors and filters them according to their respective sample reference values. Only vectors that meet the set reference value requirements will be selected.
[0069] The server outputs the screened initial retrieval program crash vectors as candidate retrieval program crash vectors corresponding to the first feature reconstruction unit. These candidate retrieval program crash vectors will be used as input data of the first feature reconstruction unit for subsequent analysis and processing.
[0070] For example, suppose the server collects 100 initial retrieval program crash vectors, which represent 100 different crash events. The server first calculates the sample reference value for these initial retrieval program crash vectors and sets a reference value threshold of 80 (out of 100). After screening, the server finds that 20 initial retrieval program crash vectors have sample reference values higher than 80, so it outputs these 20 initial retrieval program crash vectors as candidate retrieval program crash vectors of the first feature reconstruction unit for further analysis and processing by subsequent units.
[0071] In a possible implementation manner, the retrieval program crash vector sequence is obtained by any of the following methods: Step B110 : randomly and evenly distribute each candidate retrieval program crash vector corresponding to the target feature reconstruction unit to the plurality of retrieval program crash vector sequences according to the set number of clusters.
[0072] When the server is dealing with application crash issues in big data service applications, building a sequence of retrieval program crash vectors is a key step because it helps group similar crash events for more efficient analysis.
[0073] For example, the server has determined a plurality of candidate retrieval program crash vectors corresponding to the target feature reconstruction unit, and wishes to randomly assign these candidate retrieval program crash vectors to a certain number of retrieval program crash vector sequences for cluster analysis.
[0074] The server first sets the number of clusters according to the analysis requirements, for example, deciding to divide the candidate retrieval program crash vectors into 5 sequences. Next, all candidate retrieval program crash vectors corresponding to the target feature reconstruction unit are randomly shuffled and then evenly distributed according to the set number of clusters. For example, if there are 100 candidate retrieval program crash vectors, each sequence will be assigned approximately 20 candidate retrieval program crash vectors.
[0075] After the server completes the allocation, it generates 5 retrieval program crash vector sequences, each of which contains a set of randomly assigned candidate retrieval program crash vectors.
[0076] Step B120, determining the sample reference values corresponding to each candidate retrieval program crash vector corresponding to the target feature reconstruction unit.
[0077] Step B130 , according to the set number of clusters and based on the sample reference values respectively corresponding to each of the candidate retrieval program crash vectors, each of the candidate retrieval program crash vectors is loaded into the plurality of retrieval program crash vector sequences.
[0078] In this embodiment, unlike random allocation, this method takes into account the sample reference value of each candidate retrieval program crash vector, that is, their importance and representativeness. The server will allocate vectors to different sequences based on this sample reference value.
[0079] In detail, the server first calculates a sample reference value for each candidate retrieval program crash vector corresponding to the target feature reconstruction unit, and the sample reference value may be based on factors such as the frequency of the crash event, the scope of impact, and the difficulty of repair in historical data.
[0080] Similarly, the server needs to set the number of clusters to determine the number of search program crash vector sequences to be generated. The server sorts each candidate search program crash vector according to its sample reference value and then allocates them according to the set number of clusters. Vectors with higher sample reference values may be preferentially allocated to the same sequence to ensure that each sequence contains a certain number of important crash events.
[0081] After completing the allocation, the server generates a plurality of retrieval program crash vector sequences, each of which includes a set of candidate retrieval program crash vectors allocated according to the sample reference value.
[0082] Step B140, determining the position of each candidate retrieval program crash vector corresponding to the target feature reconstruction unit in the vector cluster, and loading each candidate retrieval program crash vector into the plurality of retrieval program crash vector sequences based on the position of each candidate retrieval program crash vector in the vector cluster according to the set number of clusters.
[0083] In this embodiment, the server first uses a clustering algorithm (such as K-means) to pre-cluster the candidate retrieval program crash vectors to determine their positions in the vector clusters, and then assigns them to different retrieval program crash vector sequences based on these positions.
[0084] In detail, the server uses a clustering algorithm to pre-cluster all candidate retrieval program crash vectors corresponding to the target feature reconstruction unit to form several vector clusters. For each candidate retrieval program crash vector, the server determines the vector cluster to which it belongs and its position in the cluster (such as the distance from the center of the cluster). Next, the number of retrieval program crash vector sequences to be generated is set, and each candidate retrieval program crash vector is assigned to different retrieval program crash vector sequences according to its position in the vector cluster. For example, vectors that are closer to the center of a cluster can be assigned to the same sequence. After the assignment is completed, the server generates multiple retrieval program crash vector sequences, each of which contains a set of candidate retrieval program crash vectors assigned based on the position of the vector cluster.
[0085] Through these methods, the server can effectively organize candidate retrieval program crash vectors and provide strong support for subsequent feature reconstruction and crash cause analysis.
[0086] In a possible implementation, step S120 may include: Step S121, using the target feature reconstruction unit, according to the internal correlation strategy, based on each of the retrieval program crash vector sequences, determine a temporary retrieval program crash vector sequence corresponding to each of the retrieval program crash vector sequences. The temporary retrieval program crash vector sequence includes temporary retrieval program crash vectors corresponding to each of the retrieval program crash vector sequences.
[0087] When explaining in detail how to utilize the target feature reconstruction unit in the target program crash root cause location network to determine the process of reconstructing the retrieval program crash vector based on multiple retrieval program crash vector sequences and crash flow path graphs, a specific scenario is used to illustrate the operation of each step.
[0088] In detail, suppose there is an online banking system that has recently experienced frequent application crashes. In order to locate the root cause of the crash, the server has collected a large number of crash logs and has generated multiple search program crash vector sequences and crash flow path graphs through the previous steps. The crash flow path graph clearly shows a series of data processing flows from user requests to crashes.
[0089] The target feature reconstruction unit first sets the relevant parameters of the internal correlation strategy, which may include a correlation threshold and the number of iterations, etc. The correlation threshold is used to determine whether the correlation between two retrieval program crash vectors is strong enough, while the number of iterations limits the number of times the strategy is executed.
[0090] For each retrieval program crash vector sequence, the target feature reconstruction unit analyzes the correlation between each retrieval program crash vector within the sequence. This correlation may be evaluated based on factors such as feature similarity of the vectors and the context in which the crash occurred.
[0091] According to the set correlation threshold, the target feature reconstruction unit screens out target retrieval program crash vector pairs whose correlation exceeds the threshold. These target retrieval program crash vector pairs represent highly correlated crash events and may have similar crash causes.
[0092] The target feature reconstruction unit uses the selected target retrieval program crash vector pairs to construct a correlation graph. The nodes in the correlation graph represent the target retrieval program crash vectors, and the edges represent the correlation between the vectors. Then, a graph theory algorithm (such as depth-first search, breadth-first search, etc.) is used to traverse the correlation graph to identify significant connected components or dense subgraphs in the correlation graph. These connected components or subgraphs represent a set of highly correlated crash events. For each significant connected component or dense subgraph, the target feature reconstruction unit aggregates the target retrieval program crash vectors therein to generate a temporary retrieval program crash vector, which is a refined representation of the original vector set and contains the main features of the original vector set.
[0093] After the above processing, each retrieval program crash vector sequence corresponds to a temporary retrieval program crash vector sequence, which includes a group of temporary retrieval program crash vectors.
[0094] Step S122, using the target feature reconstruction unit, according to the focus relevance strategy, based on each of the temporary retrieval program crash vector sequences and the crash flow path diagram, determine a reconstructed retrieval program crash vector sequence corresponding to each of the temporary retrieval program crash vector sequences. The reconstructed retrieval program crash vector sequence includes the reconstructed retrieval program crash vectors corresponding to each of the temporary retrieval program crash vectors in the corresponding temporary retrieval program crash vector sequence.
[0095] In this embodiment, after determining the temporary retrieval program crash vector sequence, the target feature reconstruction unit sets the parameters of the focus correlation strategy, which may include a correlation threshold, a maximum number of iterations, and a convergence threshold, etc. These parameters are used to guide subsequent correlation analysis based on the crash flow path diagram.
[0096] For each temporary retrieval program crash vector, the target feature reconstruction unit searches for the corresponding target path segment in the crash flow path graph. This path segment may represent the key link or process where the crash occurs and is the "focus" of the temporary retrieval program crash vector.
[0097] For each temporary retrieval procedure crash vector, the target feature reconstruction unit calculates its relevance to each waypoint on the focal path segment, and this relevance may be evaluated based on the similarity between the features of the vector and the attributes of the waypoints.
[0098] According to the set correlation threshold, the target feature reconstruction unit selects the target path points whose correlation with the temporary retrieval program crash vector is greater than the threshold as the key path points related to the temporary vector. These key path points may reveal the direct cause or influencing factors of the crash.
[0099] The target feature reconstruction unit aggregates the screened key path points to generate an updated temporary retrieval program crash vector, which incorporates the key information on the focal path segment and further refines and enhances the temporary vector.
[0100] The updated temporary retrieval program crash vector is used as a new temporary vector, and the above process of searching the focus path, calculating the correlation, screening the key path points and generating the update vector is repeated. Each iteration makes the temporary vector closer to the real cause of the crash. The iteration process ends when the maximum number of iterations is reached or the change in the update vector is less than the convergence threshold.
[0101] After iterative updating, each temporary retrieval program crash vector sequence will correspond to a reconstructed retrieval program crash vector sequence, which contains a set of reconstructed retrieval program crash vectors. These reconstructed vectors are highly refined and summarized of the original crash events, providing strong support for the subsequent root cause location of the crash.
[0102] In a possible implementation, step S121 includes: Step S1211, setting relevant parameters of the internal correlation strategy, wherein the relevant parameters include a correlation threshold and a number of iterations.
[0103] In this embodiment, the server first sets a correlation threshold of the internal correlation policy, which is used to determine whether the correlation between two search program crash vectors is strong enough to form a meaningful relationship pair. For example, the threshold can be set to 0.7, indicating that only when the correlation score of two vectors is higher than 0.7, they will be considered as a correlation pair.
[0104] The server also needs to set the number of iterations, which is used to control the number of executions of the internal correlation strategy to ensure that the strategy can complete the processing of all sequences in a reasonable time. For example, the number of iterations can be set to 5.
[0105] Step S1212 : for each retrieval program crash vector sequence, according to the internal correlation strategy, analyzing the correlation between the retrieval program crash vectors in the retrieval program crash vector sequence, and screening out the target retrieval program crash vector pair according to the set correlation threshold.
[0106] In this embodiment, the server starts to traverse each retrieval program crash vector sequence. For each retrieval program crash vector sequence, the following operations are performed.
[0107] Analyze the correlation between each search program crash vector and other vectors within the search program crash vector sequence. This correlation can be calculated by comparing the features, crash context or other attributes of the vectors. For example, the server can use cosine similarity or Pearson correlation coefficient to quantify the correlation between vectors.
[0108] The calculated correlation is compared with the set correlation threshold. If the correlation score of two vectors is higher than the threshold, they are considered as a target retrieval program crash vector pair and recorded.
[0109] Step S1213, based on the screened target retrieval program crash vector pairs, construct a corresponding correlation graph, in which nodes represent target retrieval program crash vectors, and edges represent the correlation between target retrieval program crash vectors, and use a graph theory algorithm to traverse the correlation graph to identify significant connected components or dense subgraphs in the correlation graph.
[0110] For each retrieval program crash vector sequence, the server constructs a correlation graph based on the selected target retrieval program crash vector pairs. In this correlation graph, each node represents a target retrieval program crash vector, and the edge represents the correlation between the vectors. The weight of the edge can be set according to the correlation score.
[0111] The server uses graph theory algorithms (such as depth-first search DFS or breadth-first search BFS) to traverse the association graph. These algorithms can help the server identify key structures or patterns in the graph.
[0112] During the traversal process, the server can look for significant connected components or dense subgraphs in the graph. These connected components or subgraphs usually contain a set of highly correlated target retrieval program crash vectors that collectively point to a specific crash cause or pattern.
[0113] Step S1214: for each salient connected component or dense subgraph, aggregate the target retrieval program crash vectors in the salient connected component or dense subgraph to generate the temporary retrieval program crash vector.
[0114] For each identified significant connected component or dense subgraph, the server aggregates the target retrieval program crash vectors therein. The aggregation method can be defined according to specific needs, for example, a new temporary retrieval program crash vector can be generated by calculating the average or median of all vectors in the subgraph.
[0115] After aggregation processing, each original retrieval program crash vector sequence will correspond to a temporary retrieval program crash vector sequence, and each temporary retrieval program crash vector in the temporary retrieval program crash vector sequence is a refined representation of the original vector set, which contains the main features and correlation information of the original vector set.
[0116] The server can further process and analyze the original retrieval program crash vector sequence based on the internal correlation strategy to generate a more representative and meaningful temporary retrieval program crash vector sequence, providing more accurate and effective input data for subsequent crash root cause location.
[0117] In a possible implementation, step S122 includes: Step S1221, setting the strategy parameters of the focus relevance strategy, wherein the strategy parameters include a relevance threshold, a maximum number of iterations, and a convergence threshold.
[0118] In this embodiment, the server first sets a correlation threshold of the focus correlation strategy, which is used to determine whether the correlation between the temporary search program crash vector and the path point in the crash flow path graph is strong enough. For example, the correlation threshold can be set to 0.8.
[0119] The server also needs to set the maximum number of iterations, which is used to control the number of executions of the focus relevance strategy to ensure that the strategy can complete the processing of all temporary vectors in a reasonable time. For example, the maximum number of iterations can be set to 3 times.
[0120] The convergence threshold is used to determine whether the iteration process has converged. If the difference between the results of two consecutive iterations is less than the convergence threshold, the iteration process is considered to have converged and the iteration can be stopped. For example, the convergence threshold can be set to 0.01.
[0121] Step S1222, for each temporary retrieval program crash vector, by comparing the characteristic value of the temporary retrieval program crash vector and the path point attributes in each path segment in the crash flow path graph, search for the target path segment corresponding to the temporary retrieval program crash vector in the crash flow path graph, and the target path segment serves as the focus path of the temporary retrieval program crash vector.
[0122] In this embodiment, the server starts to traverse the temporary retrieval program crash vectors in each temporary retrieval program crash vector sequence. For each temporary retrieval program crash vector, the server can compare its feature value with the path point attributes in each path segment in the crash flow path diagram. The feature value may include information such as the crash type and the location of occurrence, while the path point attributes describe the various links and states in the data processing flow. Through comparison, the server searches for the target path segment that best matches the temporary retrieval program crash vector feature in the crash flow path diagram. This path segment usually represents the key link or process where the crash occurs, and is therefore called a focus path.
[0123] Step S1223: for each temporary retrieval program crash vector, calculate the correlation between the temporary retrieval program crash vector and each path point on the focus path segment.
[0124] For each temporary retrieval program crash vector, the server can calculate the correlation between it and each path point on the focus path segment. The correlation can be calculated by comparing the properties, states and other information of the two. According to the set correlation threshold, the server selects the path points whose correlation with the temporary retrieval program crash vector is greater than the threshold as key path points. These key path points may directly cause the crash or are closely related to the crash.
[0125] Step S1224 , according to the set correlation threshold, select the target path points whose correlation with the temporary search program crash vector is greater than the correlation threshold as the key path points related to the temporary search program crash vector.
[0126] The server aggregates the filtered key path points. The aggregation method can be defined according to specific needs. For example, a new update temporary retrieval program crash vector can be generated by calculating the average, median or weighted average of the key path points. The update temporary retrieval program crash vector integrates the key information on the focus path segment and more accurately describes the cause and context of the crash.
[0127] Step S1225 , aggregating the selected key path points to generate a corresponding update temporary retrieval program crash vector, wherein the update temporary retrieval program crash vector incorporates key information on the focus path segment.
[0128] The server will update the temporary retrieval program crash vector as a new temporary retrieval program crash vector, and repeat the process from step S1222 to step S1224. This process will continuously update the temporary retrieval program crash vector to make it closer and closer to the actual crash cause.
[0129] After each iteration, the server can determine whether the iteration process has converged. If the difference between the results of two consecutive iterations is less than the convergence threshold, or the maximum number of iterations has been reached, the iteration process is considered to have converged and the iteration can be stopped.
[0130] Step S1226, taking the updated temporary retrieval program crash vector as a new temporary retrieval program crash vector, repeating the above process until the maximum number of iterations and the convergence threshold are met, and then arranging the finally obtained updated temporary retrieval program crash vector in the order of the temporary retrieval program crash vector sequence to form a reconstructed retrieval program crash vector sequence.
[0131] When the iterative process converges, the server arranges the final updated temporary retrieval program crash vector in the order of the original temporary retrieval program crash vector sequence to form a reconstructed retrieval program crash vector sequence. Each reconstructed retrieval program crash vector in the reconstructed retrieval program crash vector sequence has been processed and optimized by the focus relevance strategy, which more accurately describes the cause and context of the crash, providing strong support for the subsequent root cause location of the crash.
[0132] In a possible implementation, each feature reconstruction unit in the target program crash root cause location network is the target feature reconstruction unit. Alternatively, the first x feature reconstruction units in the target program crash root cause location network are the target feature reconstruction unit. The x is not less than 1 and less than the total number of feature reconstruction units in the target program crash root cause location network.
[0133] In this embodiment, when it comes to the feature reconstruction units in the target program crash root cause location network, there are two possible configurations: one is that each feature reconstruction unit in the network performs the same task, that is, each feature reconstruction unit is a target feature reconstruction unit; the other is that the first x feature reconstruction units in the network perform specific tasks, while the subsequent units may perform different tasks or perform higher-level analysis. The following is an example of detailed scenario description of these two configurations.
[0134] Scenario 1: Each feature reconstruction unit is a target feature reconstruction unit Assume that an e-commerce platform is using a target program crash root cause location network to process the crash logs of its application. The network consists of multiple feature reconstruction units, each of which is responsible for processing the crash data and outputting the reconstructed retrieved program crash vector. In this scenario, all feature reconstruction units are configured to perform the same task, that is, they are all target feature reconstruction units.
[0135] When the server receives the crash logs, it can parse them into initial retrieval program crash vectors. These initial retrieval program crash vectors are then input into the first feature reconstruction unit in the network.
[0136] The first feature reconstruction unit processes the input retrieval program crash vector based on the internal correlation strategy and the focus correlation strategy, combined with the crash flow path graph. The first feature reconstruction unit analyzes the correlation between the retrieval program crash vectors, constructs a correlation graph, identifies significant connected components or dense subgraphs, and generates a temporary retrieval program crash vector. Then, it further searches for the focus path in the crash flow path graph based on the focus correlation strategy, and selects the key path points to generate and update the temporary retrieval program crash vector. This process is repeated until the iterative convergence condition is met.
[0137] Once the first feature reconstruction unit has completed its task, the generated reconstruction retrieval program collapse vector is passed to the next feature reconstruction unit. Since all feature reconstruction units are target feature reconstruction units, they all perform the same processing flow. Each feature reconstruction unit repeats the process of internal correlation analysis and focal correlation analysis based on the vector it receives and outputs a new reconstruction retrieval program collapse vector.
[0138] Finally, the last feature reconstruction unit will output the final reconstructed retrieval program crash vector sequence. These reconstructed retrieval program crash vector sequences contain the crash cause information after multiple rounds of reconstruction and optimization, providing accurate data support for locating the root cause of the crash.
[0139] Scenario 2: The first x feature reconstruction units are the target feature reconstruction units In another scenario, the first x feature reconstruction units of the target program crash root location network are configured to perform specific tasks, i.e., they are the target feature reconstruction units, while the subsequent units perform different tasks.
[0140] The server first parses the crash logs and generates initial retrieval program crash vectors, which are fed into the first feature reconstruction unit in the network.
[0141] The first x feature reconstruction units serve as target feature reconstruction units, and process the input vectors based on the internal correlation strategy and the focus correlation strategy. These units analyze the correlation between vectors, construct a correlation graph, identify significant connected components or dense subgraphs, and generate an updated temporary retrieval program crash vector based on the focus path screening key path points. The process is iterated until the convergence condition is met.
[0142] Once the first x target feature reconstruction units have completed their tasks, the first x target feature reconstruction units can pass the generated reconstructed retrieval program crash vector to subsequent units, which may perform higher-level analysis such as pattern recognition, anomaly detection, or causal reasoning. The first x target feature reconstruction units use the reconstructed vectors to identify potential patterns of crashes, detect abnormal behaviors, or infer the root cause of crashes. Finally, the entire network outputs the localization result of the root cause of the crash.
[0143] In a possible implementation, the method further includes: Step S101, determining a template crash flow path graph corresponding to a template application crash log.
[0144] In this embodiment, the server first selects a series of representative crash events from historical crash logs as templates. For each template crash event, the server parses its crash log, extracts key information, such as the time, location, and code execution path of the crash, and then constructs a template crash flow path diagram based on this information. These template crash flow path diagrams clearly show the call relationship and data processing flow of the template crash event within the application.
[0145] Step S102, using the target feature reconstruction unit in the target program crash root cause location network, based on multiple template retrieval program crash vector sequences and the template crash flow path diagram, determine the template reconstruction retrieval program crash vectors corresponding to each template retrieval program crash vector in the multiple template retrieval program crash vector sequences. The multiple template retrieval program crash vector sequences are generated by clustering the candidate retrieval program crash vectors corresponding to the target feature reconstruction unit. The candidate retrieval program crash vector is determined based on the template initial retrieval program crash vector, or is selected and generated from the template reconstruction retrieval program crash vectors generated by the previous feature reconstruction unit of the target feature reconstruction unit according to the criticality condition. The target feature reconstruction unit is a feature reconstruction unit in the target program crash root cause location network.
[0146] In this embodiment, the server determines candidate retrieval program crash vectors corresponding to the target feature reconstruction unit based on the template initial retrieval program crash vector or the template reconstruction retrieval program crash vector generated by the previous feature reconstruction unit, and these vectors represent possible crash causes or patterns.
[0147] The server clusters the candidate retrieval program crash vectors using a clustering algorithm (such as K-means) to generate multiple template retrieval program crash vector sequences. Each template retrieval program crash vector sequence contains a group of similar candidate retrieval program crash vectors.
[0148] For each template retrieval program crash vector sequence, the server uses the target feature reconstruction unit to determine the template reconstruction retrieval program crash vector corresponding to each template retrieval program crash vector in the sequence based on the internal correlation strategy and the focus correlation strategy, combined with the template crash flow path diagram. These reconstruction vectors more accurately describe the crash cause and context information.
[0149] Step S103 , for each of the template retrieval program crash vector sequences, classification prediction is performed based on the template reconstruction retrieval program crash vectors corresponding to each of the template retrieval program crash vectors in the template retrieval program crash vector sequence, to determine crash root cause node prediction data corresponding to each of the template reconstruction retrieval program crash vectors.
[0150] For each template retrieval program crash vector sequence, the server performs classification prediction based on each template reconstruction retrieval program crash vector. The classification process uses a pre-trained classifier or model to map each corresponding template reconstruction retrieval program crash vector to a specific crash root cause node. The classifier outputs the crash root cause node prediction data, that is, the prediction result for each crash cause.
[0151] Step S104, based on the bipartite graph maximum matching strategy, based on each of the crash root cause node prediction data and the program crash root cause annotation data, determine the target pairing sequence corresponding to the template retrieval program crash vector sequence. The target pairing sequence represents the optimal pairing method between each of the crash root cause node prediction data and the program crash root cause annotation data.
[0152] In this embodiment, the server prepares a set of program crash root cause annotation data, which are known crash causes and their corresponding root cause nodes, and are used to verify the accuracy of classification prediction.
[0153] The server treats the crash root cause node prediction data and the labeled data as two sets of bipartite graphs and establishes edges between them. The weight of the edge represents the matching degree or similarity between the prediction data and the labeled data.
[0154] The server uses a bipartite graph maximum matching strategy (such as the Hungarian algorithm) to find the optimal pairing method, that is, to obtain a pairing sequence with the largest total matching weight. This pairing sequence represents the optimal correspondence between the predicted data and the labeled data.
[0155] Step S105 : determining the network learning error corresponding to the template retrieval program crash vector sequence according to the target pairing sequence.
[0156] Step S106, determining the network learning error corresponding to the target feature reconstruction unit based on the network learning errors respectively corresponding to the plurality of template retrieval program crash vector sequences.
[0157] Step S107 , optimizing parameters of the target program crash root cause location network according to network learning errors corresponding to the respective feature reconstruction units in the target program crash root cause location network.
[0158] For each template-retrieved program crash vector sequence, the server calculates the network learning error based on its corresponding target paired sequence. The network learning error measures the degree of inconsistency between the classification prediction results and the program crash root cause annotation data.
[0159] The server summarizes the network learning errors of multiple template retrieval program crash vector sequences, and then distributes them to each target feature reconstruction unit to determine the network learning error corresponding to each target feature reconstruction unit.
[0160] Finally, the server uses optimization algorithms such as gradient descent to adjust the parameters of the target program crash root cause location network based on the network learning error of each feature reconstruction unit. This process aims to reduce the network learning error and improve the accuracy of crash root cause location.
[0161] Through the above steps, the server can use the template learning method to optimize the performance of the target program crash root cause location network and improve the accuracy and efficiency of crash root cause location.
[0162] In a possible implementation, the method further includes: determining a matching weight between the program crash root cause annotation data and the crash root cause node prediction data based on a current convergence progress of the target program crash root cause location network.
[0163] Step S104 includes: determining a target pairing sequence corresponding to the template retrieval program crash vector sequence based on the bipartite graph maximum matching strategy, according to the matching weight, and based on each of the crash root cause node prediction data and the program crash root cause annotation data.
[0164] In this embodiment, the server will continuously monitor the convergence progress of the network while running the target program crash root cause location network. The convergence progress reflects the state and effect of network learning, which can be measured by indicators such as network training loss and verification accuracy.
[0165] When the server needs to execute the bipartite graph maximum matching strategy to determine the pairing relationship between the crash root cause node prediction data and the program crash root cause annotation data, it first determines the matching weight based on the current convergence progress of the network. If the network has converged to a good state, the server can give the annotation data a higher matching weight because the network's prediction results are more reliable at this time; conversely, if the network has not yet converged or the convergence effect is poor, the server can appropriately reduce the matching weight of the annotation data to avoid over-reliance on potentially inaccurate annotation data.
[0166] Prepare data: The server prepares crash root cause node prediction data and program crash root cause annotation data. The prediction data is the classification prediction result of the target program crash root cause location network on the template retrieval program crash vector sequence, while the annotation data is the known crash cause and its corresponding root cause node.
[0167] The server treats the predicted data and the labeled data of the crash root cause nodes as two sets of a bipartite graph, namely the left set and the right set. Then, an edge is established between each node in the predicted data set and each node in the labeled data set to form a complete bipartite graph.
[0168] The server sets a weight for each edge in the bipartite graph based on the matching weight determined in step 1. If the matching weight between a predicted data and a labeled data is high, the weight of the edge between them will be set higher accordingly; conversely, if the matching weight is low, the weight of the edge will be reduced accordingly.
[0169] The server uses a bipartite graph maximum matching strategy (such as the Hungarian algorithm) to find an optimal match in the bipartite graph, that is, a pairing sequence with the largest total matching weight. This pairing sequence represents the optimal correspondence between the predicted data and the labeled data.
[0170] The server outputs the found target pairing sequence, where each pair of matches in the target pairing sequence represents the optimal pairing between a crash root cause node prediction data and a program crash root cause annotation data.
[0171] For example, suppose that the target program crash root cause location network has been trained for multiple rounds, the current convergence progress is good, and the verification accuracy is stable at more than 90%. After receiving a batch of new template retrieval program crash vector sequences, the server first uses the network for classification prediction to obtain a series of crash root cause node prediction data. Then, based on the current convergence progress of the network, the server sets a higher matching weight (such as 0.8) for the labeled data. Next, the server constructs a bipartite graph and sets the weights of the edges. Finally, by executing the bipartite graph maximum matching algorithm, the server finds an optimal pairing sequence, in which most of the predicted data can be accurately matched with the labeled data, and only a few predicted data fail to fully match the labeled data due to the uncertainty of the network. The server outputs this pairing sequence for reference and analysis by the system maintenance team.
[0172] For example, in a possible implementation, step S140 includes: Step S141, classify the crash causes according to the target crash root cause node location data, and prioritize the crash causes according to their impact on user experience and system stability, and generate a corresponding crash repair solution according to each type of crash cause in the priority ranking result.
[0173] In this embodiment, after receiving the target crash root cause node location data, the server will first classify the crash cause. For example, according to the location data, the crash cause may be divided into the following categories: database connection problem, server overload, front-end code error, third-party service dependency failure, etc.
[0174] Next, the server can prioritize the crash causes based on their impact on user experience and system stability. For example, a database connection problem may prevent users from accessing a page, which has a huge impact on user experience, so it will be given the highest priority. Front-end code errors may only affect the use of some functions, so they have a relatively low priority.
[0175] Step S142: Generate corresponding push information content according to the crash repair solution, wherein the push information content includes a description of the crash problem, a brief description of the repair solution, and the operations that the user needs to take.
[0176] In this embodiment, the server generates a corresponding repair plan for each type of crash cause based on the priority sorting results. For database connection problems, the repair plan may include checking the database server status, optimizing database query statements, increasing the database connection pool size, etc. For front-end code errors, the repair plan may involve code review, bug fixing, hot update patch release, etc.
[0177] The server constructs the push information content based on the generated crash repair plan. The push information usually contains the following parts: Description of the crash: briefly describe the context, time, and scope of the crash. For example: "We detected a database connection issue that caused some users to have difficulty accessing the page." Brief description of the repair plan: Summarize the main content and goals of the repair plan. For example: "We are urgently repairing the database connection problem and expect to complete it within a few hours." User action required: If the user needs to take some action (such as restarting the app, clearing the cache, etc.), explain it here. In this case, since the repair is automatic, no additional user action may be required.
[0178] Step S143, sending the push information content to affected users through the push system of the big data service platform, and after the push information content is pushed, collecting user feedback and uploading it to the big data service platform.
[0179] The server sends the constructed push information content to the affected users through the push system of the big data service platform of the online payment platform. The push method may include in-app notification, email notification, SMS notification, etc.
[0180] After the push message is sent, the server can collect user feedback, which can be achieved by users clicking the feedback link in the push message, filling out a questionnaire, or submitting feedback directly in the app. The collected feedback will be uploaded to the big data service platform for further analysis and improvement by the platform maintenance team.
[0181] Suppose an online payment platform detects a large number of users reporting that they cannot access the page during the evening peak hours. The server quickly locates the cause as a database connection failure through the crash analysis system. The server first classifies the cause of the crash as a "database connection problem" and sets its priority to the highest. Next, the server generates a repair plan, including restarting the database server, checking the network connection, etc., and constructs a push message to notify users that an emergency repair is in progress. Finally, the server sends the information to the affected users through the push system and collects user feedback after the repair is completed to ensure that the problem is properly resolved.
[0182] Figure 2 The hardware structure of the information push system 100 based on big data service for implementing the above-mentioned information push method based on big data service provided in the embodiment of the present application is shown as follows: Figure 2 As shown, the information push system 100 based on big data service may include a processor 110 , a machine-readable storage medium 120 , a bus 130 , and a communication unit 140 .
[0183] In one possible design, the information push system 100 based on big data services can be a single server or a server group. The server group can be centralized or distributed (for example, the information push system 100 based on big data services can be a distributed system). In some embodiments, the information push system 100 based on big data services can be local or remote. For example, the information push system 100 based on big data services can access information and / or data stored in a machine-readable storage medium 120 via a network. For another example, the information push system 100 based on big data services can be directly connected to the machine-readable storage medium 120 to access the stored information and / or data. In some embodiments, the information push system 100 based on big data services can be implemented on an information push system based on big data services. As an example only, the information push system based on big data services can include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-layer cloud, etc. or any combination thereof.
[0184] The machine-readable storage medium 120 may store data and / or instructions. In some embodiments, the machine-readable storage medium 120 may store data obtained from an external terminal. In some embodiments, the machine-readable storage medium 120 may store data and / or instructions that the information push system 100 based on big data services uses to execute or use to complete the exemplary methods described in this application.
[0185] During the specific implementation process, one or more processors 110 execute computer executable instructions stored in the machine-readable storage medium 120, so that the processor 110 can execute the information push method based on big data service in the above method embodiment. The processor 110, the machine-readable storage medium 120 and the communication unit 140 are connected through the bus 130, and the processor 110 can be used to control the sending and receiving actions of the communication unit 140.
[0186] The specific implementation process of the processor 110 can refer to the various method embodiments executed by the above-mentioned information push system 100 based on big data services. The implementation principles and technical effects are similar, and this embodiment will not be repeated here.
[0187] In addition, an embodiment of the present application also provides a readable storage medium, in which computer executable instructions are preset. When the processor executes the computer executable instructions, the above-mentioned information push method based on big data service is implemented.
[0188] It should be noted that in order to simplify the description disclosed in the present application and thereby facilitate the understanding of one or more embodiments of the invention, in the foregoing description of the embodiments of the present application, various features are sometimes grouped into one embodiment, drawing or description thereof.
Claims
1. A method for pushing information based on big data services, characterized in that: The method comprises: Determine the crash flow path graph corresponding to the application crash log in the big data service application; Using a target feature reconstruction unit in a target program crash root cause location network, based on a plurality of retrieval program crash vector sequences and the crash flow path diagram, a reconstructed retrieval program crash vector corresponding to each retrieval program crash vector in the plurality of retrieval program crash vector sequences is determined; the plurality of retrieval program crash vector sequences are generated by clustering each candidate retrieval program crash vector corresponding to the target feature reconstruction unit; the candidate retrieval program crash vector is determined based on an initial retrieval program crash vector, or is generated by selecting from each reconstructed retrieval program crash vector generated by a previous feature reconstruction unit of the target feature reconstruction unit according to a critical condition, and the target feature reconstruction unit is a feature reconstruction unit in the target program crash root cause location network; Classify each reconstructed retrieval program crash vector generated by the last feature reconstruction unit in the target program crash root cause location network to determine the target crash root cause node location data corresponding to the application crash log; Crash repair push information for the big data service application is generated based on the target crash root cause node location data corresponding to the application crash log.
2. The information push method based on big data service according to claim 1, characterized in that: When the target feature reconstruction unit is a non-starting feature reconstruction unit in the target program crash root cause location network, the step of determining each candidate retrieval program crash vector corresponding to the target feature reconstruction unit includes: Based on each reconstructed retrieval program crash vector generated by the previous feature reconstruction unit, determine the target crash root cause node positioning data corresponding to each of the reconstructed retrieval program crash vectors; the target crash root cause node positioning data includes the confidence corresponding to the program crash root cause node represented by the reconstructed retrieval program crash vector; Based on the confidence in the target crash root cause node positioning data corresponding to each of the reconstruction retrieval program crash vectors, a reconstruction retrieval program crash vector that meets the criticality condition is determined from each of the reconstruction retrieval program crash vectors and output as a candidate retrieval program crash vector corresponding to the target feature reconstruction unit.
3. The information push method based on big data service according to claim 2 is characterized in that: The unit loading part of the previous feature reconstruction unit includes a plurality of retrieval program crash vector sequences generated by clustering the candidate retrieval program crash vectors corresponding to the previous feature reconstruction unit; the unit generating part of the previous feature reconstruction unit includes the reconstructed retrieval program crash vector sequences corresponding to the plurality of retrieval program crash vector sequences respectively; The method of determining a reconstruction retrieval program crash vector that meets the criticality condition from each of the reconstruction retrieval program crash vectors based on the confidence in the target crash root cause node positioning data corresponding to each of the reconstruction retrieval program crash vectors, and outputting the result as a candidate retrieval program crash vector corresponding to the target feature reconstruction unit, comprises: For each of the reconstruction retrieval program crash vector sequences, based on the confidence in the target crash root cause node positioning data corresponding to each of the reconstruction retrieval program crash vectors, a reconstruction retrieval program crash vector that meets the criticality condition is determined from the reconstruction retrieval program crash vector sequence and output as a candidate retrieval program crash vector corresponding to the target feature reconstruction unit.
4. The information push method based on big data service according to claim 1, characterized in that: When the target feature reconstruction unit is the first feature reconstruction unit in the target program crash root cause location network, the step of determining each candidate retrieval program crash vector corresponding to the target feature reconstruction unit includes: Outputting each of the initial retrieval program crash vectors as each candidate retrieval program crash vector corresponding to the target feature reconstruction unit; Alternatively, determine the sample reference value corresponding to each of the initial retrieval program crash vectors, and based on the sample reference values respectively corresponding to each of the initial retrieval program crash vectors, determine the initial retrieval program crash vector that meets the set reference value requirements from each of the initial retrieval program crash vectors, and output it as a candidate retrieval program crash vector corresponding to the target feature reconstruction unit.
5. The information push method based on big data service according to any one of claims 1 to 4, characterized in that: The retrieval program crash vector sequence is obtained by any of the following methods: According to a set number of clusters, each candidate retrieval program crash vector corresponding to the target feature reconstruction unit is randomly and evenly distributed to the plurality of retrieval program crash vector sequences; Determine the sample reference values corresponding to each candidate retrieval program crash vector corresponding to the target feature reconstruction unit; According to the set number of clusters, and based on the sample reference values respectively corresponding to the candidate retrieval program crash vectors, each of the candidate retrieval program crash vectors is loaded into the plurality of retrieval program crash vector sequences; Determine the position of each candidate retrieval program crash vector corresponding to the target feature reconstruction unit in the vector cluster, and load each candidate retrieval program crash vector into the plurality of retrieval program crash vector sequences based on the position of each candidate retrieval program crash vector in the vector cluster according to a set number of clusters.
6. The information push method based on big data service according to any one of claims 1 to 4, characterized in that: The target feature reconstruction unit in the target program crash root cause location network determines, based on multiple retrieval program crash vector sequences and the crash flow path graph, a reconstructed retrieval program crash vector corresponding to each retrieval program crash vector in the multiple retrieval program crash vector sequences, including: Using the target feature reconstruction unit, according to the internal correlation strategy, based on each of the retrieval program crash vector sequences, determine a temporary retrieval program crash vector sequence corresponding to each of the retrieval program crash vector sequences; the temporary retrieval program crash vector sequence includes temporary retrieval program crash vectors corresponding to each of the retrieval program crash vector sequences; Using the target feature reconstruction unit, according to the focus relevance strategy, based on each of the temporary retrieval program crash vector sequences and the crash flow path diagram, a reconstructed retrieval program crash vector sequence corresponding to each of the temporary retrieval program crash vector sequences is determined; the reconstructed retrieval program crash vector sequence includes the reconstructed retrieval program crash vectors corresponding to each of the temporary retrieval program crash vectors in the corresponding temporary retrieval program crash vector sequence; The step of using the target feature reconstruction unit to determine a temporary retrieval program crash vector sequence corresponding to each retrieval program crash vector sequence based on each retrieval program crash vector sequence according to an internal correlation strategy includes: Setting relevant parameters of the internal correlation strategy, wherein the relevant parameters include a correlation threshold and a number of iterations; For each retrieval program crash vector sequence, analyzing the correlation between the retrieval program crash vectors within the retrieval program crash vector sequence according to the internal correlation strategy, and screening out the target retrieval program crash vector pair according to the set correlation threshold; Based on the selected target retrieval program crash vector pairs, a corresponding correlation graph is constructed, wherein nodes in the correlation graph represent target retrieval program crash vectors, and edges represent correlations between target retrieval program crash vectors, and a graph theory algorithm is used to traverse the correlation graph to identify significant connected components or dense subgraphs in the correlation graph; For each salient connected component or dense subgraph, aggregating the target retrieval program collapse vectors in the salient connected component or dense subgraph to generate the temporary retrieval program collapse vector; The step of using the target feature reconstruction unit to determine the reconstructed retrieval program crash vector sequence corresponding to each temporary retrieval program crash vector sequence based on each temporary retrieval program crash vector sequence and the crash flow path diagram according to the focus relevance strategy includes: Setting strategy parameters of the focus relevance strategy, wherein the strategy parameters include a relevance threshold, a maximum number of iterations, and a convergence threshold; For each temporary retrieval program crash vector, by comparing the characteristic value of the temporary retrieval program crash vector with the path point attributes of each path segment in the crash flow path graph, searching for a target path segment corresponding to the temporary retrieval program crash vector in the crash flow path graph, the target path segment being used as a focus path of the temporary retrieval program crash vector; For each temporary retrieval program crash vector, calculating the correlation between the temporary retrieval program crash vector and each path point on the focus path segment; According to a set correlation threshold, a target path point whose correlation with the temporary retrieval program crash vector is greater than the correlation threshold is selected as a key path point related to the temporary retrieval program crash vector; Aggregating the selected key path points to generate a corresponding update temporary retrieval program crash vector, wherein the update temporary retrieval program crash vector incorporates key information on the focus path segment; The updated temporary retrieval program crash vector is used as a new temporary retrieval program crash vector, and the above process is repeated until the maximum number of iterations and the convergence threshold are met, and the finally obtained updated temporary retrieval program crash vector is arranged in the order of the temporary retrieval program crash vector sequence to form a reconstructed retrieval program crash vector sequence.
7. The information push method based on big data service according to any one of claims 1 to 4, characterized in that: Each feature reconstruction unit in the target program crash root cause location network is the target feature reconstruction unit; Alternatively, the first x feature reconstruction units in the target program crash root cause location network are the target feature reconstruction units; and x is not less than 1 and less than the total number of feature reconstruction units in the target program crash root cause location network.
8. The information push method based on big data service according to any one of claims 1 to 4, characterized in that: The method further comprises: Determine the template crash flow path map corresponding to the template application crash log; Using a target feature reconstruction unit in a target program crash root cause location network, based on a plurality of template retrieval program crash vector sequences and the template crash flow path diagram, determine the template reconstruction retrieval program crash vectors corresponding to each template retrieval program crash vector in the plurality of template retrieval program crash vector sequences; the plurality of template retrieval program crash vector sequences are generated by clustering each candidate retrieval program crash vector corresponding to the target feature reconstruction unit; the candidate retrieval program crash vector is determined based on a template initial retrieval program crash vector, or is generated by selecting from each template reconstruction retrieval program crash vector generated by a previous feature reconstruction unit of the target feature reconstruction unit according to a critical condition; the target feature reconstruction unit is a feature reconstruction unit in the target program crash root cause location network; For each of the template retrieval program crash vector sequences, classification prediction is performed based on template reconstruction retrieval program crash vectors corresponding to each of the template retrieval program crash vectors in the template retrieval program crash vector sequence, to determine crash root cause node prediction data corresponding to each of the template reconstruction retrieval program crash vectors; Based on the bipartite graph maximum matching strategy, based on each of the crash root cause node prediction data and the program crash root cause annotation data, determining the target pairing sequence corresponding to the template retrieval program crash vector sequence; the target pairing sequence represents the optimal pairing method between each of the crash root cause node prediction data and the program crash root cause annotation data; Determining a network learning error corresponding to a template retrieval program crash vector sequence according to the target pairing sequence; Determining a network learning error corresponding to the target feature reconstruction unit based on network learning errors respectively corresponding to the plurality of template retrieval program crash vector sequences; According to the network learning errors respectively corresponding to the feature reconstruction units in the target program crash root cause location network, the parameters of the target program crash root cause location network are optimized.
9. The information push method based on big data service according to claim 8, characterized in that: The method further comprises: Determining a matching weight between the program crash root cause annotation data and the crash root cause node prediction data based on a current convergence progress of the target program crash root cause location network; The method of determining the target pairing sequence corresponding to the program crash vector sequence retrieved by the template based on the bipartite graph maximum matching strategy and the crash root cause node prediction data and the program crash root cause annotation data includes: Based on the bipartite graph maximum matching strategy, according to the matching weight, based on the prediction data of each crash root cause node and the program crash root cause annotation data, a target pairing sequence corresponding to the template retrieval program crash vector sequence is determined.
10. An information push system based on big data service, characterized in that: The information push system based on big data service includes a processor and a memory, the memory is connected to the processor, the memory is used to store programs, instructions or codes, and the processor is used to execute the programs, instructions or codes in the memory to implement the information push method based on big data service described in any one of claims 1 to 9.
