Operation monitoring method and device, electronic equipment and storage medium

By constructing a job lineage link diagram, determining the relationship between jobs and identifying the scope of abnormal impacts, the problem that job monitoring in the existing technology cannot accurately identify abnormal impacts is solved, and the efficiency of problem location is improved.

CN118567937APending Publication Date: 2024-08-30SHENZHEN HEYTAP TECHNOLOGY CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310217834.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing job monitoring methods cannot accurately determine the scope of impact of abnormal jobs, resulting in low efficiency in problem location.

Method used

By constructing a job lineage link graph, the upstream and downstream relationships between jobs are determined, and when an abnormal job is discovered, its scope of influence is determined based on the graph.

Benefits of technology

It improves the efficiency of problem location and can accurately identify abnormal operations and their impact scope, so as to quickly solve the problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567937A
    Figure CN118567937A
Patent Text Reader

Abstract

The embodiment of the invention provides a job monitoring method and device, electronic equipment and a storage medium, and the method comprises the steps: determining abnormal jobs in a job consanguinity link diagram, wherein the job consanguinity link diagram comprises the upstream and downstream relationship between the jobs; and under the condition of determining that the target job in the job consanguinity link map is the abnormal job, determining the influence range of the downstream job related to the target job as the target job based on the job consanguinity link map. According to the embodiment of the invention, the influence range of the abnormal operation can be accurately determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software technology, and in particular to a method, device, electronic device and storage medium for job monitoring. Background Art

[0002] At present, the automated operation and maintenance platform model based on containers and big data, based on the principles of containers and big data, uses container scheduling to ensure container scheduling analysis, ensures that the scheduled containers are on reasonable nodes, ensures that the business system can be disaster-tolerant and backed up, and strengthens system security. The indicator monitoring component completes the monitoring of business systems and servers and pushes them to the big data platform for analysis. By automatically configuring elastic scaling algorithms, the business system monitoring data is analyzed to achieve elastic scaling of the business system. The access traffic is shared through load strategies to ensure normal user access. The platform system makes intelligent decisions based on business application scenarios, such as restarting, expanding, and shrinking.

[0003] In open source projects, the main task is to monitor the jobs running in the engine. Current job monitoring often monitors a single job itself, and an abnormality in a single job may not only affect the job, but also other jobs. The current single job monitoring method can only determine the abnormal job, but cannot determine the impact range of the abnormal job. Summary of the invention

[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for monitoring an operation, which can accurately determine the impact scope of an abnormal operation.

[0005] A first aspect of an embodiment of the present application provides a job monitoring method, comprising:

[0006] Determine an abnormal job in a job lineage link diagram, wherein the job lineage link diagram includes upstream and downstream relationships between jobs;

[0007] When it is determined that the target job in the job lineage link diagram is an abnormal job, a downstream job related to the target job is determined as an impact scope of the target job based on the job lineage link diagram.

[0008] A second aspect of an embodiment of the present application provides a work monitoring device, including:

[0009] A first determining unit, configured to determine an abnormal job in a job lineage link diagram, wherein the job lineage link diagram includes upstream and downstream relationships between jobs;

[0010] The second determining unit is used to determine that the downstream job related to the target job is the impact scope of the target job based on the job lineage link diagram when the first determining unit determines that the target job in the job lineage link diagram is an abnormal job.

[0011] A third aspect of an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiment of the present application.

[0012] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiments of the present application.

[0013] The fifth aspect of the embodiments of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program is operable to enable a computer to execute part or all of the steps described in the first aspect of the embodiments of the present application.

[0014] In an embodiment of the present application, an abnormal job is determined in a job lineage chain diagram, and the job lineage chain diagram includes upstream and downstream relationships between jobs; when it is determined that the target job in the job lineage chain diagram is an abnormal job, the downstream job related to the target job is determined as the impact range of the target job based on the job lineage chain diagram. In an embodiment of the present application, after the abnormal job is determined in the job lineage chain diagram, since the job lineage chain diagram includes upstream and downstream relationships between jobs, the downstream job related to the abnormal job can be determined as the impact range of the abnormal job based on the job lineage chain diagram, and the abnormal job and the impact range of the abnormal job can be accurately determined, thereby improving the efficiency of problem locating. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 This is an overall architecture diagram of link monitoring and abnormality diagnosis provided by an embodiment of the present application;

[0017] Figure 2 It is a flowchart of a method for monitoring a job provided by an embodiment of the present application;

[0018] Figure 3 It is a schematic diagram of a job lineage link diagram provided in an embodiment of the present application;

[0019] Figure 4 It is a flowchart of another operation monitoring method provided in an embodiment of the present application;

[0020] Figure 5 It is a schematic diagram of a service link diagram provided in an embodiment of the present application;

[0021] Figure 6 It is a flowchart of another operation monitoring method provided in an embodiment of the present application;

[0022] Figure 7 It is a flowchart of another operation monitoring method provided in an embodiment of the present application;

[0023] Figure 8 This is a flow chart of abnormal log diagnosis provided by an embodiment of the present application;

[0024] Fig. 9 This is a schematic diagram of a process for automatically processing a job accumulation situation provided by an embodiment of the present application;

[0025] Fig.10 A schematic diagram of the structure of an operation monitoring device provided in an embodiment of the present application;

[0026] Fig.11 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0029] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0030] The electronic devices involved in the embodiments of the present application may include various computing devices with communication functions, vehicle-mounted devices, wearable devices or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile stations (MS), electronic devices (terminal devices), etc. For the convenience of description, the above-mentioned devices are collectively referred to as electronic devices.

[0031] In order to facilitate understanding of the embodiments of the present application, the embodiments of the present application provide a link monitoring and abnormality diagnosis overall architecture diagram. Figure 1 , Figure 1 This is a diagram of the overall architecture of link monitoring and abnormal diagnosis provided by the embodiment of the present application. Figure 1 As shown, the process of job monitoring and exception analysis is as follows.

[0032] (1) Users develop jobs on the platform and submit them to the computing cluster (the platform can support two mainstream computing clusters: Yarn cluster and K8S cluster). The job can be a Flink job. The platform can be a real-time job submission and operation and maintenance management platform, such as OStream, which is the self-developed Flink real-time job submission platform. Flink is a new generation of big data processing engine. For Flink jobs, users need to write Flink Structured Query Language (SQL), and the written Flink SQL is the content of the Flink job.

[0033] The job runs on the Yarn cluster or K8S cluster, and the job itself can read and write data to the Kafka cluster or HDFS cluster. Since the job interacts with the Kafka cluster or HDFS cluster, the health of the Kafka cluster or HDFS cluster directly affects whether the job can run normally.

[0034] (2) After the platform is running normally, the job's indicator data (for example, all JM indicators and TM indicators of the job) will be reported to the unified time series database (TsHouse) according to the indicator reporting configuration set uniformly by the platform; at the same time, the logs output by the job on the computing cluster will be uniformly collected into the log receipt library (LogHouse). After unified collection and reporting, users can uniformly view job monitoring and job logs on the platform. TsHouse is a self-developed time series database, and LogHouse is a self-developed log storage database.

[0035] Among them, JM is the Flink task manager and TM is the Flink job manager.

[0036] (3) Using the cloud monitoring capabilities of the cloud monitoring platform, set up alarm strategies for each key indicator of the job. Once the value of a certain indicator of the job exceeds the set threshold, an alarm will be triggered, which will notify the user who developed the job. In addition, the alarm callback (WebHook) configured on the alarm strategy will be used to notify the callback interface to complete the notification of the alarm event.

[0037] (4) After receiving the exception notification event of the job, the exception parser parses the original log of the job.

[0038] (5) If there is an exception log in the original log of the job, the exception parser will extract the exception log, parse the log keywords, associate the exception cause analyzer with the exception solution library, and provide diagnostic advice for problem solving.

[0039] The exception parser extracts the key exception log from the original log of the job, and the exception cause analyzer matches the cause and solution of the exception according to the key exception log.

[0040] See also Figure 2 , Figure 2 Schematic diagram of a process flow of a method for monitoring a job provided by an embodiment of the present application. Figure 2 As shown, the method includes the following steps.

[0041] 201, the electronic device determines an abnormal operation in an operation lineage link diagram, where the operation lineage link diagram includes upstream and downstream relationships between operations.

[0042] In an embodiment of the present application, the job lineage link diagram contains the upstream and downstream relationships between jobs. The job lineage link diagram may include multiple job nodes, each job node corresponds to a job, and there is a relative relationship between each job node. The job can run on a Yarn cluster or a K8S cluster. If the job needs to read and write data to a kafka cluster or an hdfs cluster, the job lineage link diagram may also include multiple table nodes, each table node corresponds to a table.

[0043] See also Figure 3 , Figure 3 Schematic diagram of a job lineage link diagram provided in an embodiment of the present application. Figure 3 As shown, the job lineage link diagram includes multiple jobs (such as Figure 3 J_1, J_2, J_3, J_4, J_5, J_6, J_7, J_8...) and multiple tables (such as Figure 3 K_1, K_2, K_3, K_4, K_5, K_6, K_7, K_8, K_9, K_10, K_11 ...) as shown.

[0044] Figure 3 The processing flow of the job in is: read a table, write a table. For example: K_1->J_1->K_2, job J_1 reads the data of Kafka table K_1, and writes it to Kafka table K_2 after some processing.

[0045] For example, in the link K_1->J_1->K_2->J_2->K_5->J_3->K_5, job J_1 is the upstream job of job J_2, and job J_3 is the downstream job of job J_2. If job J_2 fails, it may affect job J_3, causing J_3 to fail.

[0046] Among them, the job lineage link diagram is a pre-established link diagram that includes the upstream and downstream relationships of all jobs on the platform; the job lineage link diagram includes at least two jobs and the upstream and downstream relationships of at least two jobs.

[0047] The electronic device may include a display screen on which a job bloodline chain diagram may be displayed, making it easy to understand the upstream and downstream relationships of each job.

[0048] The electronic device can determine whether each job in the job lineage chain diagram is abnormal based on the alarm strategy.

[0049] Figure 1 In the example, all the job indicator data are collected in a unified manner in the time series database TsHouse. You can use the unified cloud monitoring platform to configure a unified alarm strategy for the core indicators of the job and add callbacks. Please refer to Table 1. The specific configuration of the alarm strategy for the Flink job is shown in Table 1.

[0050] Table 1

[0051]

[0052]

[0053] Figure 1 The real-time job submission and operation and maintenance management platform, cloud monitoring platform, exception parser, and exception cause analyzer can run on electronic devices.

[0054] 202. When it is determined that the target job in the job lineage link diagram is an abnormal job, the electronic device determines, based on the job lineage link diagram, the downstream jobs related to the target job as the impact scope of the target job.

[0055] In the present application embodiment, Figure 3 For example, if the target job J_1 in the job lineage link diagram is an abnormal job, the downstream jobs related to the target job J_1 include: job J_2, job J_3, job J_4, and job J_5. Then jobs J_2, job J_3, job J_4, and job J_5 are the impact range of the target job J_1.

[0056] Since the target job J_1 is an abnormal job, although jobs J_2, J_3, J_4, and J_5 have not been detected as abnormal for the time being, the abnormality of the target job J_1 will have a certain impact on jobs J_2, J_3, J_4, and J_5, and abnormalities may be detected in future detections. At this time, determining the impact range of the target job J_1 can remind the user to conduct further detection on the impact range of the target job J_1, so that problems can be discovered in a timely and accurate manner, thereby improving the efficiency of problem location.

[0057] exist Figure 3 In this multi-level and complex upstream and downstream dependent job lineage link diagram (the job lineage link diagram is a real-time stream processing link), it is difficult to detect problems in a timely and accurate manner, and it is also difficult to assess its impact scope with only single-point job monitoring. In the embodiment of the present application, after determining the abnormal job in the job lineage link diagram, since the job lineage link diagram contains the upstream and downstream relationships between jobs, the downstream job related to the abnormal job can be determined as the impact scope of the abnormal job based on the job lineage link diagram, and the abnormal job and the impact scope of the abnormal job can be accurately determined, thereby improving the efficiency of problem location.

[0058] See also Figure 4 , Figure 4 FIG. 1 is a flow chart of another operation monitoring method provided in an embodiment of the present application. Figure 4 As shown, the method includes the following steps.

[0059] 401, the electronic device receives a job submitted by a user.

[0060] The job can be a Flink job. Users can submit Flink jobs on the real-time job submission and operation and maintenance management platform. After the platform receives the job submitted by the user, it runs the job submitted by the user on the computing cluster (Yarn cluster or K8S cluster) supported by the platform.

[0061] 402, the electronic device parses the job submitted by the user to obtain a parsing result of the job submitted by the user, where the parsing result includes: data source and data flow.

[0062] The data source of a job is the upstream of the job, and the data flow direction of a job is the downstream of the job. Figure 3 For example, K_2->J_2->K_5, job J_2 reads the data from Kafka table K_2, and after some processing, writes it to Kafka table K_5. The data source of job J_2 is Kafka table K_2, and the data flow direction of job J_2 is Kafka table K_5.

[0063] 403, the electronic device stores the parsing result of the job submitted by the user in a time series database.

[0064] Among them, the time series database can be found in Figure 1 Time series database.

[0065] 404, the electronic device builds a job lineage link graph based on the analysis results of each job submitted by the user stored in the time series database.

[0066] In the embodiment of the present application, since the analysis results of each job submitted by the user are stored in the time series database, a job lineage chain diagram can be constructed based on the analysis results of each job submitted by the user stored in the time series database. Figure 3 .by Figure 3 For example, job J_1 reads data from Kafka table K_1, and after certain processing, writes it to Kafka table K_2. The data source of job J_1 is Kafka table K_1, and the data flow of job J_1 is Kafka table K_2. Then the job lineage link constructed is: K_1->J_1->K_2. Job J_2 reads data from Kafka table K_2, and after certain processing, writes it to Kafka table K_5. The data source of job J_2 is Kafka table K_2, and the data flow of job J_2 is Kafka table K_5. Then the job lineage link constructed based on job J_1 and job J_2 submitted by the user is: K_1->J_1-K_2->J_2->K_5.

[0067] It should be noted that, since the jobs submitted by users occur in real time, the job lineage link diagram is a real-time stream processing link, and the job lineage link diagram can be updated in real time.

[0068] After executing step 404, if the user submits a new job, the job lineage link graph can be updated.

[0069] When executing step 404, the operation lineage chain diagram may be displayed via a display device (eg, a display screen).

[0070] 405, the electronic device determines an abnormal operation in an operation lineage link diagram, where the operation lineage link diagram includes upstream and downstream relationships between operations.

[0071] Wherein, step 405 is executed after step 404 .

[0072] 406. When it is determined that the target job in the job lineage link diagram is an abnormal job, the electronic device determines, based on the job lineage link diagram, the downstream jobs related to the target job as the impact scope of the target job.

[0073] The specific implementation of step 405 to step 406 can be found in Figure 2 The relevant descriptions of step 201 to step 202 in will not be repeated here.

[0074] In an embodiment of the present application, the jobs submitted by the user can be parsed to obtain the data source and data flow of the jobs submitted by the user, and a job lineage chain diagram can be constructed according to the data source and data flow of each job, so that an accurate job lineage chain diagram can be generated. After determining the abnormal job in the job lineage chain diagram, since the job lineage chain diagram contains the upstream and downstream relationships between jobs, the downstream job related to the abnormal job can be determined as the impact scope of the abnormal job based on the job lineage chain diagram, and the abnormal job and the impact scope of the abnormal job can be accurately determined, thereby improving the efficiency of problem location.

[0075] Below, we take OStream as an example of a real-time job submission and operation and maintenance management platform, and Flink as an example of a job. We will explain in detail the process of building a job lineage graph.

[0076] (1) The process for users to submit FlinkSQL jobs on OStream is: create a new library table (a library table is a virtual mapping of a source) -> write SQL statements for data processing logic -> submit the job.

[0077] (2) The platform parses the SQL statements of the job to find out the data source, data flow, and associated data (dimension tables) of each SQL statement. The associated data can be the tables that the job reads and writes, such as Figure 3 The kafka table shown.

[0078] (3) By persisting the results of each job analysis to the time series database, we can obtain the lineage relationship of all FlinkSQL jobs on the entire platform. The lineage relationship of a job is a set of relationships between the source and destination of the data stream processed by the job.

[0079] (4) By using the front-end link plug-in, the blood relationship data stored in the database can be rendered to obtain the job blood relationship link diagram.

[0080] Through the above steps (1) to (4), a blood relationship diagram of all real-time processing flows of the platform can be obtained, such as Figure 3 The job lineage link diagram can be used to quickly locate the downstream impact range of a job node or table node after a problem occurs.

[0081] Optionally, after executing step 401, the following steps may also be executed:

[0082] (11) The electronic device reports the indicator data of the job submitted by the user to the time series database;

[0083] (12) The electronic device monitors whether the index data of the operation in the time series database is abnormal based on the alarm strategy;

[0084] (13) when there is an abnormality in the indicator data of the first job, the electronic device analyzes the abnormality type of the first job, the first job being any one of the jobs in the time series database;

[0085] (14) The electronic device updates the state of the first job to an abnormal state on the job lineage link diagram according to the abnormality type; the abnormal job is a job in an abnormal state in the job lineage link diagram.

[0086] In the embodiment of the present application, the indicator data of the job may include: the duration of the accumulation of upstream data consumed by the job, the number of complete restarts or internal restarts, etc.

[0087] All job indicator data are reported at set intervals (for example, 30 seconds).

[0088] Some of the metrics are as follows (there are hundreds of metrics in total): flink_taskmanager_job_task_operator_records_lag_max, flink_taskmanager_job_task_operator_records_consumed_rate; flink_jobmanager_job_fullRestarts, flink_jobmanager_job_uptime, flink_taskmanager_job_task_operator_Kafka Consumer_kafka To OStream Delay, flink_jobmanager_job_number OfFailed Checkpoints, flink_taskmanager_job_task_buffers_outPool Usage, flink_taskmanager_Status_JVM_Garbage Collector_PS_MarkSweep_Count.

[0089] Exception types may include: delay exception, restart exception, back pressure exception, memory recovery exception, etc. The color mark of the job displayed in the job lineage chain diagram may be different for different exception types. Users can determine whether the job is abnormal and the type of exception when an exception occurs by the color mark of each job displayed in the job lineage chain diagram.

[0090] For example, for jobs with delay exceptions (which will issue delay alarms), you can analyze the cause of the delay, which may be that the increase in upstream traffic exceeds the maximum output capacity of the job, etc. For jobs with restart exceptions (which will issue restart alarms), you can analyze the logs to find out what caused the job to fail and restart.

[0091] Among them, steps (11) to (14) can be performed after step 404 and before step 405. At this time, when executing step 405, the abnormal job in the job lineage chain diagram can be directly determined based on the job in the abnormal state in the job lineage chain diagram obtained in step (14).

[0092] Steps (11) to (14) may be performed before step 404. At this time, when executing step 405, the abnormal job in the job lineage link diagram may be directly obtained according to step (14) to determine the abnormal job in the job lineage link diagram.

[0093] Steps (11) to (14) may be performed after step 405. At this time, when step 405 is performed, it may be determined whether each job in the job lineage link diagram is abnormal based on the alarm strategy.

[0094] Through steps 401 to 404, a job lineage link diagram is constructed, which can realize the establishment and rendering display of the lineage relationship of the job. Although the table read and written by a job and its mapping can be quickly determined, once a problem occurs in the link, it is still impossible to quickly locate which node or nodes have problems. If it is a single job job monitoring and alarm, the problem cannot be located quickly and accurately. By adopting steps (11) to (14), jobs with abnormal status can be fed back on the job lineage link diagram. By more closely integrating the job lineage link diagram with link monitoring and directly feeding back jobs with abnormal status in the job lineage link diagram, faster feedback will be achieved, and abnormal jobs in the job lineage link diagram can be displayed faster and more comprehensively. Abnormal jobs and the scope of influence of abnormal jobs can be accurately determined, thereby improving the efficiency of locating abnormal problems.

[0095] The ideal running state of real-time jobs is: in the absence of human interference, the job continues to run stably without consumption accumulation (for example, the consumption of upstream data delay does not exceed 5 minutes). Once accumulation or restart occurs, it is unacceptable to the business and can be defined as abnormal.

[0096] pass Figure 3 The establishment and rendering display of the job lineage link diagram in the job lineage link diagram can realize the establishment and rendering display of the job lineage relationship. Although the table read and written by a job and its mapping can be quickly determined, once a problem occurs in the link, it is still difficult to quickly locate which node or nodes have problems. If it is a single job job monitoring and alarm, the problem cannot be located quickly and accurately. Integrating the job lineage link diagram with link monitoring more closely and directly feeding back jobs in abnormal states in the job lineage link diagram will achieve faster feedback, and abnormal jobs in the job lineage link diagram can be displayed faster and more comprehensively. Abnormal jobs and the scope of impact of abnormal jobs can be accurately determined, thereby improving the efficiency of locating abnormal problems.

[0097] The following are the monitoring steps of the event-driven abnormal monitoring system provided in the embodiment of the present application.

[0098] (1) By Figure 1 It can be seen that all job indicators are uniformly collected in the time series database TsHouse. Using the cloud monitoring system, a unified alarm strategy is configured for the core indicators of Flink jobs and callbacks are added. The specific configured alarm strategy is shown in Table 1.

[0099] (2) When a job triggers an alarm, the alarm strategy will notify the self-developed exception parser of the alarm / recovery event in the form of an interface callback. The exception parser uses the alarm event as a state to mark the job in the job lineage diagram.

[0100] (3) The abnormal cause analyzer periodically polls the unresolved alarm events in the database, obtains the metadata information of the alarm event (including the job location, job name, alarm event type, alarm occurrence time, etc.), and further analyzes the alarm cause. Metadata refers to the description data of the Flink job, JM node address, port, job parallelism, number of peripheral component expansion slots, number of TM cores, TM storage (memory), etc.

[0101] (4) After analyzing the cause, the job status preview field in the job lineage diagram is synchronized, and the front end renders different colors according to different types to distinguish them.

[0102] (5) After the above steps, a relatively dynamic full-link monitoring diagram can be obtained, which can reflect in real time whether the operation in the operation lineage link diagram is abnormal or not.

[0103] Optionally, in step 201 or step 405, the electronic device determines an abnormal operation in the operation lineage link diagram, which may include the following steps:

[0104] When an abnormality of the target business is detected, the electronic device generates a target business chain diagram based on the job lineage chain diagram, and determines the abnormal job in the target business chain diagram; the target business chain diagram includes: a chain diagram composed of jobs related to the target business in the job lineage chain diagram.

[0105] The target business is the business that users care about. The target business link diagram is the link that users care about. The job lineage link diagram contains many jobs and has a lot of content. When a business (target business) is detected to be abnormal, and it is necessary to specifically locate which jobs of a certain business have abnormalities, the target business link diagram can be generated based on the job lineage link diagram, so as to accurately locate the abnormal jobs in the target business link diagram.

[0106] See also Figure 5 , Figure 5 is a schematic diagram of a service link diagram provided by an embodiment of the present application. Figure 5 For example: color-code the nodes with abnormalities in the link, such as Figure 5When business line B_1 (i.e., target business link diagram) finds data delay, any node on the data source link may have problems, such as: J_1, J_2, and J_3 may all have problems. When there is no complete operation lineage link diagram, it may be necessary to check them one by one. Through the above full-link monitoring method, it can be quickly located that J_2 is dark in color, which means there is an abnormality. You only need to analyze the cause of the problem of J_2 as soon as possible.

[0107] Among them, after obtaining the job lineage link diagram based on the job lineage relationship, if it is detected that a consumption accumulation exception occurs in job J_2 at a certain time and exceeds the configured alarm threshold, an alarm callback will be triggered to the interface, and the job consumption accumulation exception will be notified to the interface. The interface has analysis logic to analyze the cause of the consumption accumulation and write the alarm status and cause of the job into the database. When the front end views it, if the job has an alarm, it will be rendered in a specific color, and jobs without alarms will not be marked with colors.

[0108] A business line refers to a business purpose, and a job exists for a certain business. For example, business line xxx (bussiness_xxx). Figure 5 In the example, there is only one business line B_1 when the tracking point is written into the service, and there are multiple business lines (business line B_1, business line B_2, business line B_3) when the business is consumed. For example, when a user opens an application (application, APP), it needs to be reported as a tracking point for user behavior analysis. However, this data may be used in many places. That is, when it is reported, it has one purpose, and when it is used, it may be used in many places. Figure 5 The B in it is an abbreviation for business line.

[0109] See also Figure 6 , Figure 6 FIG. 1 is a flow chart of another operation monitoring method provided in an embodiment of the present application. Figure 6 As shown, the method includes the following steps.

[0110] 601, the electronic device determines an abnormal operation in an operation lineage link diagram, where the operation lineage link diagram includes upstream and downstream relationships between operations.

[0111] 602. When it is determined that the target job in the job lineage link diagram is an abnormal job, the electronic device determines, based on the job lineage link diagram, the downstream jobs related to the target job as the impact scope of the target job.

[0112] The specific implementation of step 601 to step 602 may refer to the above-mentioned step 201 to step 202, which will not be repeated here.

[0113] 603, the electronic device diagnoses the target operation and determines an abnormal solution for the target operation.

[0114] In the embodiment of the present application, after determining that the target operation is an abnormal operation, the target can also be diagnosed to determine an abnormal solution for the target operation.

[0115] For some abnormal operations, the cause of the abnormal operation can be found through the monitoring alarm of the core indicators of the operation, so as to determine the abnormal solution of the operation. However, the cause of some abnormal operation problems often needs to be combined with the abnormal operation log to be specifically located.

[0116] Through the above event-driven exception monitoring system, it can be seen that a unified alarm strategy is configured for several groups of core indicators in view of the data processing characteristics of the Flink engine streaming job. It should be noted that the monitoring alarm of the core indicators of the job can discover most of the job abnormalities, but the causes of some abnormalities often need to be combined with the job abnormality log to be specifically located. For example, for the consumption delay alarm (CONSUME_DELAY alarm) in Table 1, the job abnormality is caused by the accumulation of upstream data of the job. The job abnormality can be discovered by monitoring the core indicators of the job. For another example, for the internal restart alarm (INNER_RESTART alarm) in Table 1, it means that the job has encountered an execution abnormality. The abnormal cause of the execution abnormality cannot be discovered through the monitoring alarm of the core indicators of the job. The abnormal cause of the execution abnormality of the job will be output in the form of an abnormal log, that is, the Exception reported when the program is running.

[0117] Monitoring based on alarm strategies mainly refers to the changes in the indicator values ​​of the job. If the indicator value is not in the normal range, it means that something has caused the abnormality, but the specific reason needs to be found in the output abnormal log. For example, if a submitted job fails due to lack of permission to read MySQL, the indicator can only show whether the job succeeded or failed within a certain time range, but not the reason. Only by looking at the log can we see that the reason is: lack of permission to read MySQL.

[0118] See also Figure 7 , Figure 7 FIG. 1 is a flow chart of another operation monitoring method provided in an embodiment of the present application. Figure 7 As shown, the method includes the following steps.

[0119] 701, the electronic device receives a job submitted by a user.

[0120] 702, the electronic device parses the job submitted by the user to obtain a parsing result of the job submitted by the user, where the parsing result includes: data source and data flow.

[0121] 703, the electronic device stores the parsing result of the job submitted by the user in the time series database, and stores the log data of the job submitted by the user in the log database.

[0122] During the operation of a job, log data will be generated, and the log data of the job can be stored in a log database (LogHouse).

[0123] 704, the electronic device builds a job lineage link diagram based on the analysis results of each job submitted by the user stored in the time series database.

[0124] 705, the electronic device determines an abnormal operation in an operation lineage link diagram, where the operation lineage link diagram includes upstream and downstream relationships between operations.

[0125] 706. When it is determined that the target job in the job lineage link diagram is an abnormal job, the electronic device determines, based on the job lineage link diagram, the downstream jobs related to the target job as the impact scope of the target job.

[0126] The specific implementation of steps 701 to 706 may refer to the above steps 401 to 406, which will not be described again here.

[0127] At 707, the electronic device diagnoses the target operation and determines an abnormal solution for the target operation.

[0128] The specific implementation of step 707 may refer to the above step 603 and will not be described in detail here.

[0129] Optionally, step 707 may include the following steps.

[0130] (21) when the target job is in a running state, the electronic device obtains an exception log output by the target job through an application programming interface (API), and determines an exception solution for the target job based on the exception log;

[0131] (22) When the target job is not in operation, the electronic device obtains an exception log of the target job from the log database, and determines an exception solution for the target job based on the exception log.

[0132] In the embodiment of the present application, jobs that require the combination of exception logs to specifically locate problems can be divided into two categories for processing. If the job is in a running state, the exception log output by the job can be obtained through the API, and the exception solution for the target job can be determined based on the exception log. If the job is not in a running state, the exception log of the job can be obtained from the log database, and the exception solution for the job can be determined based on the exception log.

[0133] The embodiment of the present application can ensure that when the exception log of a job needs to be obtained, the exception log of the job can be quickly obtained, so as to quickly determine the exception solution of the job.

[0134] Optionally, before executing step 707, the following steps may also be executed.

[0135] The electronic device generates an abnormal operation knowledge base based on the collected abnormal operation information; the abnormal information includes: abnormal type, abnormal log information, abnormal cause, abnormal solution, and frequency of abnormal occurrence.

[0136] In step 707, the electronic device determines an abnormal solution for the target job based on the abnormal log, including:

[0137] When the abnormality log is associated with the abnormal operation knowledge base, the electronic device determines the abnormality solution corresponding to the abnormality log through the abnormal operation knowledge base.

[0138] The abnormal operation knowledge base can be Figure 1 Exception solution library.

[0139] See also Figure 8 , Figure 8 FIG. 1 is a flow chart of abnormal log diagnosis provided by an embodiment of the present application. Figure 8 As shown, the method includes the following steps.

[0140] After the cloud monitoring INNER_RESTART alarm is triggered, the job metadata is obtained from the job platform. The job instance (instance, programming language, refers to an example in a directory) is checked for activity (i.e., whether the job is alive, that is, whether the job is in a running state). When the job is alive (i.e., the job is in a running state), the exception log is obtained through the API. When the job is not alive, the exception log is obtained from the log database (LogHouse). The exception log is then parsed. If the exception log is associated with the exception knowledge base, the task exception cause of the task is determined through the exception knowledge base, and the task exception cause of the task is identified.

[0141] Figure 8 The dotted box in the figure can be an exception parser and an exception cause analyzer.

[0142] When a job is executed abnormally, an abnormal log will be printed in the log file. There is another way to obtain these abnormal logs and analyze them.

[0143] (1) When the job instance is in the running state, you can obtain the exception log of the job output through the API provided by Flink. The API is: http: / / {rmAddress:rmPort} / {jobId} / jobs / {jid}. The parameters in the curly brackets can be directly obtained after submitting the job to the computing cluster and stored locally as metadata, such as in MySQL.

[0144] (2) When a job instance fails due to an exception, the exception log that caused the job failure can be obtained by parsing the full job log stored in LogHouse. When obtaining the exception log that caused the job failure, only the log before the job status switch needs to be parsed, thus avoiding the problem of low efficiency caused by too large a log volume of long-running jobs.

[0145] Among them, the key regular expression used to extract abnormal logs is:

[0146] i.Caused by:([^:\s>]*?Exception|[^:\s]*?Error)(.*?)(\n\s*|$)

[0147] ii.([\w.]*Exception|[^:\s>\n]*Error)(.*?)(\n|$)

[0148] (3) After the above two steps, the exceptions encountered by all jobs of the real-time computing platform can be extracted and collected into the database. With these valuable data (precious data may include: which jobs have alarms every day, what are the types of alarms, the proportion of each alarm type, the trend change of each alarm type, what are the causes of alarms, the proportion of each alarm cause, the trend change of each alarm cause, and the corresponding solution for each alarm cause), the jobs that often have problems, the frequency of abnormalities, common abnormal problems, etc. can be summarized and ranked, so as to build the platform's abnormal knowledge base. For abnormalities that need to be handled by the business side, such as parameter configuration, permission problems, resource configuration problems, etc., the platform personnel will identify the cause and input the solution, and the business side can directly adjust according to the relevant solutions. For abnormalities caused by dependency abnormalities, such as version, dependent components, computing nodes, etc., the platform operation needs to optimize the platform in a targeted manner to improve the platform stability.

[0149] Among them, at a certain point in time, the job goes from running normally to encountering an exception and then failing. The status switch log will be printed before and after this time point, and the specific abnormality of the job will be printed at the same time. The normal operation of the job is in the running state (RUNNING), and the failure becomes the failed state (FAILED). A paragraph of text "job status switch to failed from running" can be printed in the log. The abnormal log can be printed before this paragraph of text. For example, if a job fails after running for one day, it runs normally for a long time before. You don't need to pay attention to the logs of the normal operation period, but only pay attention to the abnormal logs before the moment of status switching.

[0150] In the embodiment of the present application, only a small number of logs before the job status switch need to be paid attention to to analyze the abnormal reasons for the job failure. For example, if a job runs for a month and outputs a large number of logs, if all logs are analyzed, the amount of logs to be analyzed will be huge, and the analysis will be inefficient and useless. Only the logs before the job status switch need to be analyzed to avoid the problem of low efficiency caused by too large a number of job logs running for a long time.

[0151] In the embodiment of the present application, if the text in the exception log matches the key regular expression, it can be extracted. Through the above key regular expression, most of the original exception logs can be extracted.

[0152] Among them, exceptions that need to be handled by the business side, such as exceptions caused by dirty data, need to be handled by the business. Exceptions caused by dependency exceptions, such as exceptions caused by services provided by the platform, need to be handled by the platform, and these exceptions are shielded from the business.

[0153] In the embodiment of the present application, by collecting and classifying the abnormal situations encountered by all real-time operations of the platform, a complete abnormal operation knowledge base is formed. As shown in Table 2, Table 2 shows the statistics of Kafka-related abnormalities that occurred on the platform, mainly showing five key items: abnormality type, abnormality log information, abnormality cause, solution, and frequency of abnormality. In addition, an editing operation is provided on the platform, which allows platform personnel to enter the abnormality cause and solution after analyzing the abnormality, thereby forming a complete closed loop.

[0154] In addition to the most basic exception list, statistics can also be collected on exceptions in the past month, week, and day, and recent frequent operation exceptions can be analyzed to support problem discovery and targeted problem solving, thereby improving the overall quality of the platform and serving as an important support for improving platform stability and quality construction.

[0155] Table 2

[0156]

[0157]

[0158] The topics in Table 2 are Kafka topics, and applications can subscribe to and publish messages based on Kafka topics.

[0159] The number of exceptions can be the number of exceptions counted within a set period of time (for example, the most recent day, the most recent week, the most recent 10 days, etc.).

[0160] In the abnormal operation knowledge base of Table 2, for some abnormal types, there are corresponding abnormal causes and solutions, and for other abnormal types, there are no corresponding abnormal causes and solutions. The abnormal operation knowledge base cannot provide corresponding solutions for all types of abnormalities. When the abnormal log is associated with the abnormal operation knowledge base (that is, the abnormal operation knowledge base exists in the abnormal causes and solutions corresponding to the abnormal types of the abnormal log), the electronic device determines the abnormal solution corresponding to the abnormal log through the abnormal operation knowledge base. When the abnormal log is not associated with the abnormal operation knowledge base (that is, the abnormal operation knowledge base does not exist in the abnormal causes and solutions corresponding to the abnormal types of the abnormal log), the platform personnel can analyze and determine the abnormal causes and solutions.

[0161] Please refer to Table 3, which shows some exceptions of various related components and the platform itself in a common real-time processing provided by an embodiment of the present application. The following Table 3 is an example of exceptions regarding consumption of Kafka.

[0162] Table 3

[0163]

[0164] Through the unified convergence of alarms and the extraction and analysis of exception logs, the platform has a complete process of monitoring, notification, status display, and automatic diagnosis of causes when abnormal operations occur. With the identification and summarization of abnormalities, the platform's abnormalities generally meet the 80 / 20 rule, that is, 20% of the abnormal types account for 80% of the proportion. And most of these 20% common abnormalities can be processed by automated processes. In the entire abnormality diagnosis process, an automated processing module is added to the link after identifying the cause of the abnormal operation, so as to more efficiently improve the performance of the platform. The implementation of the automated processing module is mainly through the form of a decision tree, with layer-by-layer judgment and processing.

[0165] In most business scenarios, consumption accumulation is unacceptable, but in actual production, consumption accumulation is difficult to avoid due to various factors. Therefore, reducing the amount of accumulation and reducing the duration of accumulation are the most critical treatment methods to reduce the impact of consumption accumulation.

[0166] See also Fig. 9 , Fig. 9 This is a flow chart of an automated processing of a job accumulation situation provided by an embodiment of the present application. Fig. 9 shown.

[0167] In the first step, when consumption accumulation occurs in the job, the CONSUME_DELAY strategy in Table 1 will be triggered. After being triggered, the preset abnormal automatic diagnosis interface will be called back to notify the callback interface of the job consumption accumulation event.

[0168] The second step is to determine whether the job has been restarted.

[0169] When a job is restarted, the data that stops being consumed during the period from when the job is stopped to when it is fully started is the accumulated consumption. When the Flink job is running, it periodically reports the flink_jobmanager_job_uptime (flink job continuous running time) indicator to the indicator storage system. The PROMQL expression max(flink_jobmanager_job_uptime{}) represents the running time of the job. The diagnostic system uses the above PROMQL to check whether the job has been restarted. If the value of the above PROMQL is less than 600, that is, the running time is less than 10 minutes, then a restart has occurred, otherwise no restart has occurred.

[0170] The third step is to determine whether the job is restarted manually when the job is restarted.

[0171] When a job is restarted due to manual adjustments, the automatic processing process needs to be skipped. The platform's metadata information will store the submission information of each job instance. If the submission information is submitted by the system, the system will automatically start the job, otherwise it will be restarted manually.

[0172] The fourth step is to determine whether the job consumption rate exceeds the upstream rate limit threshold.

[0173] When the upstream topic is set with a consumption rate limit and the topic's comprehensive write rate is greater than the rate limit threshold, jobs will accumulate. During runtime, Flink jobs periodically report the flink_taskmanager_job_task_operator_KafkaConsumer_bytes_consumed_rate (the rate at which the flink job operator consumes Kafka) metric to the metric storage system. The PROMQL expression sum(link_taskmanager_job_task_operator_KafkaConsumer_bytes_consumed_rate{}) represents the sum of the job's consumption rates. If the above PROMQL is close to kafka_topic_quota (the consumption rate limit threshold set for the Kafka topic), the consumption rate limit threshold set for the upstream topic needs to be increased.

[0174] The fifth step is to determine whether the upstream write data is skewed.

[0175] When data skew exists in the writing of upstream topics, although the downstream Flink job uses multiple distributed TMs for consumption, the data processing capabilities of each TM of the same job are equivalent, and the number of partitions of the TM subscribed to the upstream topic will be evenly distributed, and there will not be a situation where a certain TM is allocated with too many partitions. Therefore, when data skew occurs in the upstream writing, the TM that consumes the partition with a larger amount of written data will first experience consumption accumulation. The Kafka system will periodically pull the write rate indicator kafka.server:type=BrokerTopicMetrics,name={BytesInPerSec} of each partition of the topic and store the indicator in the indicator storage system (the rate at which the flink job operator consumes kafka). By calculating the standard deviation of the write rate of each partition, if the standard deviation is greater than the threshold, it indicates that there is skew in the upstream writing and the upstream writing needs to be adjusted.

[0176] Step 6: Determine whether the upstream topic is abnormal.

[0177] When an abnormality occurs in the upstream topic, such as the input / output (I / O) usage rate of the node where the partition is located has reached 100%, it may also affect the situation where the consumer job cannot pull data.

[0178] Step 7: Determine whether the computing cluster nodes are abnormal.

[0179] The working nodes for job data processing are running on nodes of computing clusters such as Yarn or Kubernetes. When running on Yarn, since Yarn does not isolate CPU resources, if the CPU utilization of some jobs is very high, the CPU utilization of the node will be fully utilized, which will inevitably affect the allocation of CPUs for other tasks on the node, reducing its TM processing efficiency and causing consumption accumulation.

[0180] Step 8: Determine whether the CPU utilization of TM is too high.

[0181] When the CPU utilization of a job is close to 100%, it means that the CPU resources allocated to the job have been exhausted, and its data processing capacity will reach the processing peak of the current resources. It is necessary to increase CPU resources to improve the data processing capacity of the TM. When the Flink job is running, it will periodically report the flink_taskmanager_Status_JVM_CPU_Time indicator to the indicator storage system. The flink_taskmanager_Status_JVM_CPU_Time indicator represents the CPU consumption time of each TM. The PROMQL expression avg(rate(flink_taskmanager_Status_JVM_CPU_Time{}[1m]) / 1000000000) represents the CPU utilization of each TM. Use the PROMQL expression avg(rate(flink_taskmanager_Status_JVM_CPU_Time{}[1m]) / 1000000000) to obtain CPU utilization data from the indicator storage system and calculate the recent CPU utilization of the job.

[0182] The ninth step is to determine whether the memory utilization of TM is too high.

[0183] Similarly, like CPU utilization, when the job memory utilization is close to 100%, it means that the memory resources allocated to the job have been exhausted, and its data processing capacity will reach the processing peak of the current resources, which may cause frequent GC of TM or even Full GC, thus affecting the data processing capacity of TM. It is necessary to increase the job memory resources to improve the data processing capacity of TM. When running, Flink jobs will periodically report the flink_taskmanager_Status_Flink_Memory_Managed_Used indicator to the indicator storage system. The PROMQL expression max(flink_taskmanager_Status_Flink_Memory_Managed_Used{}) represents the memory usage value of TM. The above PROMQL obtains the memory data in the recent time range and calculates whether the maximum value of managed memory usage manage_memory_usage_max in the diagnostic time range is close to the memory value configured for the job.

[0184] Step 10: Determine whether the operation back pressure is too high.

[0185] Back pressure is a key indicator used by the Flink engine to measure whether a job has a bottleneck operator. Its value range is 0 to 1. The official recommendation is that the back pressure of a job should be as small as possible. A value greater than 0.8 often indicates that the job has an operator bottleneck and needs to be analyzed and optimized. When a Flink job is running, it will periodically report the flink_taskmanager_job_task_isBackPressured indicator to the indicator storage system. The PROMQL expression max(flink_taskmanager_job_task_isBackPressured{}) represents the back pressure of a job. Whether the value is greater than 0.8 is used to determine whether the job has a bottleneck operator.

[0186] In the embodiment of the present application, by analyzing the lineage of all SQL jobs on the platform, a comprehensive picture of the lineage data of the jobs is formed, and the link monitoring diagram of each business line is drawn in combination with the platform's alarm and abnormal diagnosis capabilities, and the upstream and downstream of the job, abnormal status, and key indicators are visualized. For problematic jobs on the business line link, the abnormal nodes are given real-time correlation feedback, which assists the business and platform operation and maintenance to quickly identify the abnormal nodes and locate the problem, and the overall positioning time is reduced from tens of minutes to minutes.

[0187] This application implementation supports the following functions:

[0188] 1. Support user-friendly configuration, import and generation of business links based on blood relationship;

[0189] 2. Abnormal states such as node operation delays can be clearly fed back in the link, and combined with the abnormal diagnosis function, the abnormal information can be clearly displayed on the link node;

[0190] 3. The key indicators of node operations and tables are clearly displayed in the link;

[0191] 4. The blood relationship of jobs or tables is clarified, and the impact scope of the problem node is quickly determined;

[0192] 5. For some abnormal scenarios, we have realized automatic exception handling and tuning. In the future, we will gradually expand the scenarios of automatic processing and self-healing, which will significantly improve the platform performance.

[0193] Figure 3 or Figure 5 In the real-time job, some data is received, processed, and some data is output. Receiving some data is also called consuming some data. The professional name for receiving some data is: consuming data. The usual processing flow is: consuming upstream data and writing to downstream. Data is mapped into tables. That is: the job consumes a table upstream and writes to a table downstream. For example, table_a->job_a->table_b, if job_b consumes the data output by job_a, that is, consumes table_b, they can be connected in series. Form: table_a->job_a->table_b->job_b->table_c. Figure 3 and Figure 5 In other words, the operations are linked together through common data, like a blood relationship. Figure 1 Sample.

[0194] The embodiment of the present application can perform lineage analysis on Flink SQL jobs, build a lineage link map of jobs for the entire platform, and support users to easily configure and import lineage link maps. The abnormal status of job nodes and table nodes can be clearly fed back in the link, integrating the key indicators of the main dependencies, and combining the abnormal diagnosis function to clearly display the abnormal information on the lineage link nodes, thereby building efficient and visual full-link monitoring, which can quickly and accurately determine the impact range of the problem node. By classifying and analyzing the abnormal logs of abnormal jobs and building an abnormal knowledge base, the operation and maintenance of real-time jobs can be more efficient and automated; it has a foothold and sufficient data support for improving the quality of the platform. An automated diagnosis process and automated processing process for Flink real-time job processing of common abnormal situations have been built, which can realize automated operation and maintenance to handle online problems to a certain extent and improve the platform's automated processing capabilities.

[0195] The Flink engine of the embodiment of the present application can support streaming data processing and batch processing jobs. The current platform can perform lineage analysis on Flink SQL and Flink Jar jobs. The above embodiment mainly describes in detail the establishment of the lineage link of the FlinkSQL job. Similarly, for the Flink Jar job, it is analyzed which data sources the FlinkJar job reads and writes, and the same data sources can be connected in series to form a lineage link graph.

[0196] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0197] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0198] See also Fig.10 , Fig.10 This is a schematic diagram of the structure of an operation monitoring device provided in an embodiment of the present application. The operation monitoring device 1000 is applied to an electronic device. The operation monitoring device 1000 may include a first determining unit 1001 and a second determining unit 1002, wherein:

[0199] The first determining unit 1001 is used to determine an abnormal job in a job lineage link diagram, where the job lineage link diagram includes upstream and downstream relationships between jobs;

[0200] The second determining unit 1002 is used to determine that the downstream job related to the target job is the impact scope of the target job based on the job lineage link diagram when the first determining unit determines that the target job in the job lineage link diagram is an abnormal job.

[0201] Optionally, the operation monitoring device 1000 may further include a receiving unit 1003 , a parsing unit 1004 , a storage unit 1005 and a construction unit 1006 .

[0202] The receiving unit 1003 is used to receive the job submitted by the user;

[0203] The parsing unit 1004 is used to parse the job submitted by the user to obtain the parsing result of the job submitted by the user, and the parsing result includes: data source and data flow direction;

[0204] The storage unit 1005 is used to store the parsing result of the job submitted by the user in a time series database;

[0205] The construction unit 1006 is used to construct the job lineage link graph based on the analysis results of each job submitted by the user stored in the time series database.

[0206] Optionally, the operation monitoring device 1000 may further include a reporting unit 1007 , a monitoring unit 1008 , an analyzing unit 1009 and an updating unit 1010 .

[0207] A reporting unit 1007, configured to report the indicator data of the job submitted by the user to the time series database;

[0208] A monitoring unit 1008 is used to monitor whether the index data of the job in the time series database is abnormal based on an alarm strategy;

[0209] An analyzing unit 1009 is used to analyze the abnormality type of the first job when there is an abnormality in the indicator data of the first job, where the first job is any one of the jobs in the time series database;

[0210] An updating unit 1010 is used to update the state of the first job to an abnormal state on the job lineage link diagram according to the abnormal type; the abnormal job is a job in an abnormal state in the job lineage link diagram.

[0211] Optionally, the operation monitoring device 1000 may further include a diagnostic unit 1011 .

[0212] The diagnosis unit 1011 is used to diagnose the target job and determine an abnormal solution for the target job.

[0213] Optionally, the storage unit 1005 is further used to store the log data of the job submitted by the user in a log database;

[0214] The diagnosis unit 1011 diagnoses the target job and determines an abnormal solution to the target job, including:

[0215] When the target job is in a running state, obtaining an exception log output by the target job through an application program interface (API), and determining an exception solution for the target job based on the exception log;

[0216] When the target job is not in a running state, an exception log of the target job is obtained from the log database, and an exception solution for the target job is determined based on the exception log.

[0217] Optionally, the operation monitoring device 1000 may further include a generating unit 1012 .

[0218] A generating unit 1012 is used to generate an abnormal job knowledge base based on the collected abnormal job information; the abnormal information includes: abnormal type, abnormal log information, abnormal cause, abnormal solution, and abnormal frequency;

[0219] The diagnosis unit 1011 determines an exception solution for the target job based on the exception log, including: when the exception log is associated with the abnormal job knowledge base, determining an exception solution corresponding to the exception log through the abnormal job knowledge base.

[0220] Optionally, the first determination unit 1001 determines abnormal jobs in the job lineage link graph, including: when an abnormality is detected in the target business, generating a target business link graph based on the job lineage link graph, and determining the abnormal jobs in the target business link graph; the target business link graph includes: a link graph composed of jobs related to the target business in the job lineage link graph.

[0221] Among them, the first determination unit 1001, the second determination unit 1002, the parsing unit 1004, the construction unit 1006, the monitoring unit 1008, the analysis unit 1009, the update unit 1010, the diagnosis unit 1011, and the generation unit 1012 in the embodiment of the present application can be processors in electronic devices. The receiving unit 1003 and the reporting unit 1007 can be communication modules in electronic devices. The storage unit 1005 can be a memory in an electronic device.

[0222] In an embodiment of the present application, after determining the abnormal job in the job lineage link diagram, since the job lineage link diagram contains the upstream and downstream relationships between jobs, the downstream job related to the abnormal job can be determined as the impact scope of the abnormal job based on the job lineage link diagram, and the abnormal job and the impact scope of the abnormal job can be accurately determined, thereby improving the efficiency of problem locating.

[0223] See also Fig.11 , Fig.11is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Fig.11 As shown, the electronic device 1100 includes a processor 1101 and a memory 1102, and the processor 1101 and the memory 1102 can be connected to each other via a communication bus 1103. The communication bus 1103 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 1103 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 The memory 1102 is used to store computer programs. The computer programs include program instructions. The processor 1101 is configured to call the program instructions. The program includes instructions for executing Figure 2 to Figure 7 Some or all of the steps in the method shown.

[0224] The processor 1101 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.

[0225] The memory 1102 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.

[0226] The electronic device 1100 may also include a display screen, which may be used to display a job lineage chain diagram and a target business chain diagram.

[0227] The electronic device 1100 may further include a communication module, which may include common components such as a communication interface and an antenna.

[0228] In an embodiment of the present application, after determining the abnormal job in the job lineage link diagram, since the job lineage link diagram contains the upstream and downstream relationships between jobs, the downstream job related to the abnormal job can be determined as the impact scope of the abnormal job based on the job lineage link diagram, and the abnormal job and the impact scope of the abnormal job can be accurately determined, thereby improving the efficiency of problem locating.

[0229] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the job monitoring methods recorded in the above method embodiments.

[0230] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0231] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0232] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.

[0233] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0234] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.

[0235] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.

[0236] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.

[0237] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for monitoring an operation, characterized in that: include: Determine an abnormal job in a job lineage link diagram, wherein the job lineage link diagram includes upstream and downstream relationships between jobs; When it is determined that the target job in the job lineage link diagram is an abnormal job, a downstream job related to the target job is determined as an impact scope of the target job based on the job lineage link diagram.

2. The method according to claim 1, characterized in that Before determining the abnormal operation in the operation lineage link diagram, the method further includes: Receive jobs submitted by users; Parsing the job submitted by the user to obtain a parsing result of the job submitted by the user, wherein the parsing result includes: a data source and a data flow direction; Storing the parsing results of the job submitted by the user in a time series database; The job lineage link graph is constructed based on the analysis results of each job submitted by the user and stored in the time series database.

3. The method according to claim 2, characterized in that After receiving the job submitted by the user, the method further includes: Reporting the indicator data of the job submitted by the user to the time series database; Based on the alarm strategy, monitor whether there is any abnormality in the indicator data of the job in the time series database; When there is an abnormality in the indicator data of the first job, analyzing the abnormality type of the first job, the first job being any one of the jobs in the time series database; The state of the first job is updated to an abnormal state on the job lineage link diagram according to the abnormal type; the abnormal job is a job in an abnormal state in the job lineage link diagram.

4. The method according to claim 2 or 3, characterized in that: After determining, based on the job lineage link diagram, that the downstream job related to the target job is the impact scope of the target job, the method further includes: The target job is diagnosed to determine an abnormal solution for the target job.

5. The method according to claim 4, characterized in that After receiving the job submitted by the user, the method further includes: Storing the log data of the job submitted by the user in a log database; The diagnosing the target job and determining an abnormal solution to the target job includes: When the target job is in a running state, obtaining an exception log output by the target job through an application program interface (API), and determining an exception solution for the target job based on the exception log; When the target job is not in a running state, an exception log of the target job is obtained from the log database, and an exception solution for the target job is determined based on the exception log.

6. The method according to claim 5, characterized in that Before determining the exception solution of the target job based on the exception log, the method further includes: Generate an abnormal job knowledge base based on the collected abnormal information of the job; the abnormal information includes: abnormal type, abnormal log information, abnormal cause, abnormal solution, and frequency of abnormal occurrence; The determining the exception solution of the target job based on the exception log includes: When the exception log is associated with the abnormal operation knowledge base, an exception solution corresponding to the exception log is determined through the abnormal operation knowledge base.

7. The method according to claim 1, characterized in that The determining of abnormal operations in the operation lineage link diagram includes: When an abnormality of the target business is detected, a target business chain diagram is generated based on the job lineage chain diagram to determine the abnormal job in the target business chain diagram; the target business chain diagram includes: a chain diagram composed of jobs related to the target business in the job lineage chain diagram.

8. An operation monitoring device, characterized in that: include: A first determining unit, configured to determine an abnormal job in a job lineage link diagram, wherein the job lineage link diagram includes upstream and downstream relationships between jobs; The second determining unit is used to determine that the downstream job related to the target job is the impact scope of the target job based on the job lineage link diagram when the first determining unit determines that the target job in the job lineage link diagram is an abnormal job.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is enabled to perform the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Business object risk early warning method and device, electronic equipment and program product

    CN119848303A

  • Business object risk early warning method and device, electronic equipment and program product

    CN119848303B