Job monitoring method, device, medium and electronic equipment for job scheduling system

By burying points in the job scheduling system to obtain job status information and aggregate and push it, the problem of interface differences between different big data frameworks is solved, and a job monitoring system supported by multiple frameworks is realized, which simplifies development and improves monitoring efficiency.

CN114020566BActive Publication Date: 2024-08-27CCB FINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111266458.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2024-08-27
Estimated Expiration
2041-10-28

AI Technical Summary

Technical Problem

Existing job scheduling systems need to separately develop and connect different big data framework service interfaces, resulting in difficulty and development complexity in supporting multiple big data frameworks.

Method used

By pre-embedding key path points of the job in the job scheduling system, using pre-set monitoring data acquisition rules to obtain job status information, and aggregating execution unit information, job pipeline information and status information and pushing them to the monitoring database for storage. This avoids the problem of differences in interface docking.

Benefits of technology

The job monitoring system achieves universal support for a variety of big data frameworks, simplifies the development process, and improves the efficiency and consistency of job monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114020566B
    Figure CN114020566B
Patent Text Reader

Abstract

The embodiments of the present application disclose a method, device, medium and electronic device for job monitoring of a job scheduling system. The embodiments relate to the field of big data technology. Among them, the method includes: if it is detected that the job execution unit is created, the execution unit information is obtained; if it is detected that the job pipeline is initialized, the job pipeline information is obtained; during the execution of the job, the status information of the job is obtained by pre-embedded points of the key path of the job in the job scheduling system, and the pre-set monitoring data acquisition rules are used to obtain the status information of the job; the execution unit information, job pipeline information and status information are aggregated, and the aggregated results are pushed to the monitoring database for storage. The technical solution provided by the present application solves the technical problem that if the job scheduling system needs to support multiple big data frameworks, they need to be developed and connected separately, and achieves the effect of universal and effective job monitoring for the job monitoring system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of big data technology, and in particular to a job monitoring method, device, medium and electronic equipment for a job scheduling system. Background Art

[0002] With the rapid development of Internet big data platforms, job scheduling systems or workflow systems have become an important part of most big data platforms. The job scheduling system provides job monitoring functions to monitor the real-time status of job operations, collect and report indicators such as job operation time and resource consumption, and provide support for statistical resource consumption and optimization of job pipelines.

[0003] In the prior art, by connecting to the relevant services of the big data framework, the real-time status of the job operation is collected using the service interface, and the indicators provided by the service interface are obtained. However, connecting to the relevant services of the big data framework has the following defects: if customized indicators need to be collected, the relevant service components need to be redeveloped. In addition, the service interfaces supported by different big data frameworks are different. If the job scheduling system needs to support multiple big data frameworks, they need to be developed and connected separately. Summary of the invention

[0004] The embodiments of the present application provide a job monitoring method, device, medium and electronic device for a job scheduling system, which solves the technical problem that if the job scheduling system is required to support multiple big data frameworks, they need to be developed and connected separately, thereby achieving the effect of universal and effective job monitoring for the job monitoring system.

[0005] In a first aspect, an embodiment of the present application provides a method for monitoring a job in a job scheduling system, the method comprising:

[0006] If it is detected that the job execution unit is created, obtaining the execution unit information;

[0007] If the job pipeline initialization is detected, the job pipeline information is obtained;

[0008] During the execution of the job, the job status information is obtained by using the preset monitoring data acquisition rules through the key path of the job embedded in the job scheduling system.

[0009] The execution unit information, job pipeline information and status information are aggregated, and the aggregation result is pushed to the monitoring database for storage.

[0010] In a second aspect, an embodiment of the present application provides a job monitoring device for a job scheduling system, the device comprising:

[0011] An execution unit information acquisition module, configured to acquire the execution unit information if it is detected that a job execution unit is created;

[0012] The operation pipeline information acquisition module is used to acquire the operation pipeline information if the operation pipeline initialization is detected;

[0013] The status information acquisition module is used to acquire the status information of the job by using the preset monitoring data acquisition rules through the embedded points of the key path of the job pre-embedded in the job scheduling system during the job execution process;

[0014] The aggregation storage module is used to aggregate the execution unit information, job pipeline information and status information, and push the aggregation results to the monitoring database for storage.

[0015] In a third aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the job monitoring method of the job scheduling system as described in the embodiment of the present application is implemented.

[0016] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the job monitoring method of the job scheduling system as described in the embodiment of the present application is implemented.

[0017] The technical solution provided in the embodiment of the present application is as follows: if it is detected that a job execution unit is created, the execution unit information is obtained; if it is detected that a job pipeline is initialized, the job pipeline information is obtained; during the job execution process, the job status information is obtained by pre-embedding the key path of the job in the job scheduling system and using pre-set monitoring data acquisition rules; the execution unit information, job pipeline information and status information are aggregated, and the aggregation results are pushed to the monitoring database for storage. Since the method of embedding points in the key path of the job instead of interface docking is adopted, the service interfaces supported by different big data frameworks are different. If the job scheduling system is required to support multiple big data frameworks, the technical problem that they need to be developed and docked separately is solved, thereby achieving the effect of universal and effective job monitoring for the job monitoring system. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flow chart of a job monitoring method of a job scheduling system provided in Embodiment 1 of the present application;

[0019] Figure 2 A flowchart of a job monitoring method of a job scheduling system provided in Embodiment 2 of the present invention;

[0020] Figure 3A flowchart of a job monitoring method of a job scheduling system provided in Embodiment 3 of the present invention;

[0021] Figure 4 A structural block diagram of a job monitoring device of a job scheduling system provided in a fourth embodiment of the present invention;

[0022] Figure 5 This is a structural diagram of an electronic device provided in Example 6 of the present application. DETAILED DESCRIPTION

[0023] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

[0024] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0025] Embodiment 1

[0026] Figure 1 It is a flowchart of the job monitoring method of the job scheduling system provided in Example 1 of the present application. This embodiment can be applicable to the scenario of monitoring the operation status of jobs in a big data platform. The method can be executed by the job monitoring device of the job scheduling system provided in the embodiment of the present application. The device can be implemented by software and / or hardware and can be integrated into an electronic device.

[0027] like Figure 1 As shown, the job monitoring method of the job scheduling system includes:

[0028] S110: If it is detected that a job execution unit is created, the execution unit information is obtained.

[0029] In this application, the term "job execution unit" and "execution unit" have the same meaning. The job execution unit (EU) represents a virtual module that executes the job logic code. For example, it can be a job execution container, a job loading process, or a logically defined executor unit, such as Flink's Task Slot. In other words, a job execution unit refers to a functional module that can complete a certain function, which is equivalent to a process or virtual machine that can execute a certain job, resident in the scheduling system, and performs specific job scheduling tasks.

[0030] The job scheduling system creates a job execution unit for completing the job during system initialization, and generates execution unit information of the execution unit. The execution unit information mentioned here mainly includes the execution unit identity document (EUID), and a good random algorithm can be used to generate the execution unit ID, and different execution unit IDs are assigned to distinguish different execution units.

[0031] In practice, after a job is completed in a certain execution unit, it may enter another execution unit for further processing, that is, a pending job involves multiple execution units. For example, the original pending job is first processed by execution unit A to obtain the second job, and the second job is further processed by execution unit B to obtain the third job, and finally the third job is processed by execution unit C to complete the pending job. At this time, the job monitoring device described in the present invention will assign different execution unit IDs, namely EUIDs, to execution unit A, execution unit B and execution unit C. The reason for this design is that if execution unit A, execution unit B and execution unit C use the same execution unit ID, it will increase the complexity of the system and increase resource consumption.

[0032] S120: If the job pipeline is detected to be initialized, the job pipeline information is obtained.

[0033] After receiving a pending job, the job scheduling system establishes a job pipeline for the pending job. Generally, the job pipeline will be executed in stages in multiple execution units. For example, if the pending job needs to pass through execution unit A, execution unit B, and execution unit C in sequence to be finally completed, a job pipeline is created for the pending job, and corresponding information is set for the job pipeline. The job pipeline information here mainly includes the job pipeline ID (Trace ID). While the pending job is circulated in each execution unit in the job pipeline, the job pipeline ID is also circulated in each execution unit, thereby identifying which execution unit among the multiple execution units the pending job is processed in, and being able to reflect which step in the job pipeline the job pipeline has reached. If the job monitoring device detects that the job pipeline is initialized, the corresponding job pipeline ID is obtained.

[0034] S130, during the execution of the job, the job status information is acquired by using the preset monitoring data acquisition rules through the embedded points of the job key path embedded in the job scheduling system.

[0035] In the present technical solution, optionally, a method for embedding the tracking points of the job critical path in the job scheduling system includes: determining the job critical nodes in the job execution path to form a critical path; registering a callback function for each job critical node; wherein the callback function is used to be triggered when executing to the job critical node to form the tracking points of the critical path.

[0036] The job execution path described here refers to the entire process that a pending job goes through from the start of the job to the completion of the job. For example, after a pending job enters the execution unit A, it will go through one or more events of job creation, job completion, job suspension, job resumption, and job sampling in the execution unit A. The time points when these events occur are regarded as the key time nodes of the pending job, and these key time nodes can also be called job key nodes. All job key nodes together constitute the key path of the pending job.

[0037] Register callback functions for each key node of the job. These callback functions are the key path embedding points. For example, register callback functions for job creation, job completion, job suspension, job recovery, and job sampling. When the pending job enters the execution unit A and is in the job suspension state, the corresponding callback function of the job suspension will be triggered. The triggered callback function obtains the status information of the pending job according to the pre-set settings.

[0038] The advantage of this setting is that there is no need to use an interface for docking, and the transformation of the original system under the big data framework is smaller.

[0039] S140, aggregate the execution unit information, job pipeline information and status information, and push the aggregation result to the monitoring database for storage.

[0040] The monitoring database is a storage area in the job monitoring device of the job scheduling system. Aggregating the execution unit information, job pipeline information and status information actually means summarizing, unifying the format and arranging the execution unit information, job pipeline information and status information, and then putting the summarized results into the storage area.

[0041] In this technical solution, optionally, after the aggregation results are pushed to the monitoring database for storage, it is also possible to respond to a job query request and determine the events corresponding to each state information on the job pipeline according to the job pipeline information to which the job belongs.

[0042] That is, users can query the information stored in the monitoring database as needed to determine what status the pending jobs have progressed to. Optionally, users can query through the query interface, and through the query menu, aggregate the various status information on the job pipeline of interest and display it on the query interface. Since the job pipeline ID is associated with the events of each execution unit on the job pipeline, the global monitoring data of the job pipeline can be obtained.

[0043] The advantage of this setting is that it is convenient for users to query status information to determine the progress of pending tasks.

[0044] The technical solution provided in the embodiment of the present application is as follows: if it is detected that a job execution unit is created, the execution unit information is obtained; if it is detected that a job pipeline is initialized, the job pipeline information is obtained; during the job execution process, the job status information is obtained by pre-embedding the key path of the job in the job scheduling system and using pre-set monitoring data acquisition rules; the execution unit information, job pipeline information and status information are aggregated, and the aggregation results are pushed to the monitoring database for storage. Since the method of embedding points in the key path of the job instead of interface docking is adopted, the service interfaces supported by different big data frameworks are different. If the job scheduling system is required to support multiple big data frameworks, the technical problem that they need to be developed and docked separately is solved, thereby achieving the effect of universal and effective job monitoring for the job monitoring system.

[0045] Embodiment 2

[0046] Figure 2A flowchart of a job monitoring method for a job scheduling system provided in the second embodiment of the present invention, this embodiment is optimized based on the above embodiment. The specific optimization is: during the execution of the job, the status information of the job is obtained by using the embedded points of the job critical path pre-embedded in the job scheduling system and the pre-set monitoring data acquisition rules, including: during the execution of the job, the current status information of the job is obtained by using the embedded points of the job critical path pre-embedded in the job scheduling system; identifying whether there is a predecessor event for the event corresponding to the current status information; if so, collecting the status information of the predecessor event and obtaining it together with the current status information; accordingly, aggregating the execution unit information, job pipeline information and status information, and pushing the aggregation results to the monitoring database for storage, including: aggregating the execution unit information, job pipeline information, current status information and status information of the predecessor event, and pushing the aggregation results to the monitoring database for storage.

[0047] like Figure 2 As shown, the method of this embodiment specifically includes the following steps. For the sake of brevity, detailed descriptions of the steps that are the same or similar to those in the first embodiment are omitted:

[0048] S210: If it is detected that a job execution unit is created, the execution unit information is obtained.

[0049] S220: If the job pipeline is detected to be initialized, the job pipeline information is obtained.

[0050] S230, during the execution of the job, the current status information of the job is obtained through the embedded points of the job key path pre-embedded in the job scheduling system.

[0051] In the second embodiment, the job status information is classified into the current job status information and the status information of the preceding event. For example, after the pending job enters the execution unit A, the current job has reached the job recovery stage, and the preceding event of the pending job includes job suspension.

[0052] S240, identifying whether the event corresponding to the current status information has a preceding event, if so, executing S260; if not, executing S250.

[0053] For example, after the pending job enters execution unit A, if the current job has reached the stage of job creation and the job is not punished by a predecessor job, then the job creation event is the first event on the entire job pipeline, and S250 is executed; if the current job has reached the stage of job recovery, then the current event has a predecessor event, such as job suspension, and S260 is executed.

[0054] S250, aggregate the execution unit information, job pipeline information and status information, and push the aggregated result to the monitoring database for storage.

[0055] S260: Collect the status information of the preceding event and obtain it together with the current status information.

[0056] The status information of the preceding event may be the same as the current status information, that is, a timestamp or other relevant information that can indicate the progress of the preceding event.

[0057] S270, aggregate the execution unit information, job pipeline information, current status information and status information of the preceding event, and push the aggregation result to the monitoring database for storage.

[0058] The monitoring database is a storage area in the job monitoring device of the job scheduling system. Aggregating the execution unit information, job pipeline information, current status information and status information of the preceding events actually means summarizing, unifying the format and arranging the execution unit information, job pipeline information, current status information and status information of the preceding events, and then putting the summarized results into the storage area.

[0059] The technical solution provided in the embodiment of the present application obtains the current status information of the job by pre-embedded points in the key path of the job in the job scheduling system; identifies whether there is a predecessor event for the event corresponding to the current status information; if so, collects the status information of the predecessor event and obtains it together with the current status information; aggregates the execution unit information, job pipeline information, current status information and status information of the predecessor event, and pushes the aggregation result to the monitoring database for storage. The technical solution solves the technical problem of incomplete information obtained when monitoring the job, and achieves the purpose of monitoring more fine-grained indicators and data.

[0060] On the basis of the above technical solutions, optionally, a preset monitoring data acquisition rule is used to acquire the status information of the job, including: using the current timestamp information as the status information of the job.

[0061] For example, when events include job creation, job completion, job suspension, job resumption, and job sampling, in the same execution unit, events always occur in sequence. Therefore, when an event ID is used to represent the job status information, the event ID should contain the time information of the event, so the current timestamp can be used as the event ID.

[0062] The advantage of this setting is that timestamp information is used as the job status information, and the job status information can be directly used for calculation when counting indicators such as job duration, saving storage resources and computing costs.

[0063] Optionally, in this embodiment, a source library (Parent) can also be created. There is generally a dependency relationship between the various jobs on the job pipeline. For example, the original pending job is first processed by execution unit A to obtain the second job, and the second job is further processed by execution unit B to obtain the third job. Finally, the third job is processed by execution unit C to complete the pending job. At this time, there is a sequence and dependency relationship between the original pending job, the second job and the third job. Among them, the original pending job, the second job and the third job are all called sub-jobs of the pending job.

[0064] When creating a sub-job, the related events of the predecessor job and the job pipeline ID can be recorded in the source library of the currently created sub-job for subsequent collection, analysis and restoration of the entire process of the job completion. For example, when creating the third job, the various events and job pipeline IDs in the original pending job and the second job can be extracted and recorded. Since there are two predecessor jobs at this time, two source libraries are created to store the related information of the original pending job and the second job respectively.

[0065] The advantage of this setting is that by creating one or more source libraries in a sub-job, it is convenient to trace the historical information of each sub-job later, and facilitate various information collection and analysis.

[0066] Embodiment 3

[0067] Figure 3 This is a flowchart of a job monitoring method of a job scheduling system provided in Embodiment 3 of the present invention, and this embodiment is optimized based on Embodiment 1. The specific optimization is as follows: after obtaining the job pipeline information, it also includes: during the job execution process, according to the pre-configured custom monitoring indicators, obtaining the custom information of the job; aggregating the execution unit information, custom information, job pipeline information and status information, and pushing the aggregation results to the monitoring database for storage.

[0068] like Figure 3 As shown, the method of this embodiment specifically includes the following steps. For the sake of brevity, detailed descriptions of the steps that are the same or similar to those in the first embodiment are omitted:

[0069] S310: If it is detected that a job execution unit is created, the execution unit information is obtained.

[0070] S320: If the job pipeline is detected to be initialized, the job pipeline information is obtained.

[0071] S330, during the execution of the job, obtaining custom information of the job according to the pre-configured custom monitoring indicators.

[0072] In the present technical solution, optionally, the configuration process of the custom monitoring indicator includes: in response to a trigger operation of the configuration interface, displaying the configuration interface; in response to a selection request for the custom monitoring indicator, determining the selected one from the candidate indicators as the custom monitoring indicator; wherein the custom monitoring indicator is obtained through the tracking points of the job critical path and / or through custom tracking points.

[0073] In the above embodiments, the status information of the job is obtained by tracking points, and the status of the job is distinguished by the divided events. As described in Example 2, the status information of the job can be the current timestamp information, that is, the timestamp of job creation, job completion, job suspension, job resumption and job sampling. The custom information described in S330 is other information that needs to be obtained that is set by the user corresponding to the status information of the job, such as CPU usage, memory usage, and remaining storage space. Custom information is obtained through pre-configured custom monitoring indicators.

[0074] The advantage of this setting is that users can select custom monitoring indicators within a certain range, providing a certain range of choices for users who are not familiar with the job scheduling system.

[0075] In the present technical solution, optionally, the custom monitoring indicator includes at least one of a job running time indicator, a resource consumption indicator, and an error reporting indicator; the selection request of the custom monitoring indicator includes a selection result of the custom monitoring indicator, or includes a selection rule of the custom monitoring indicator.

[0076] The tracking location of the custom monitoring indicator can be the same as the tracking location of the job status information, or can be independently tracked so that it is different from the tracking location of the job status information. Similar to the job status information, the custom monitoring indicator is tracked by registering a callback function.

[0077] The advantage of this setting is that it provides examples of specific custom monitoring indicators.

[0078] S340, during the execution of the job, the job status information is obtained by using the preset monitoring data acquisition rules through the embedded points of the job key path embedded in the job scheduling system.

[0079] S350, aggregate the execution unit information, custom information, job pipeline information and status information, and push the aggregation result to the monitoring database for storage.

[0080] Optionally, in this embodiment, an annotation library (Annotation) may be created to store custom monitoring indicators and custom information.

[0081] The technical solution provided in the embodiment of the present application solves the problem of poor scalability of ordinary job monitoring methods by also including, after obtaining the job pipeline information: obtaining the custom information of the job according to pre-configured custom monitoring indicators during job execution; and aggregating the execution unit information, custom information, job pipeline information and status information, and pushing the aggregation results to the monitoring database for storage. This technical solution solves the problem of poor scalability of ordinary job monitoring methods and achieves the effect of making the job monitoring method have good scalability and being able to customize the collected information.

[0082] Embodiment 4

[0083] Figure 4 This is a structural block diagram of a job monitoring device of a job scheduling system provided in Embodiment 4 of the present invention. The device can execute the job monitoring method of the job scheduling system provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. A job monitoring device of a job scheduling system, the device comprising:

[0084] An execution unit information acquisition module 410 is used to acquire the execution unit information if it is detected that a job execution unit is created;

[0085] The job pipeline information acquisition module 420 is used to acquire the job pipeline information if the job pipeline initialization is detected;

[0086] The status information acquisition module 430 is used to acquire the status information of the job by using the preset monitoring data acquisition rules through the embedded points of the job key path embedded in the job scheduling system in advance during the job execution process;

[0087] The aggregation storage module 440 is used to aggregate the execution unit information, job pipeline information and status information, and push the aggregation results to the monitoring database for storage.

[0088] Optionally, the status information acquisition module 430 includes:

[0089] The current status information acquisition submodule is used to obtain the current status information of the job through the embedded points of the job key path pre-embedded in the job scheduling system during the job execution process;

[0090] A preceding event identification submodule, used to identify whether the event corresponding to the current state information has a preceding event;

[0091] A pre-event status information acquisition submodule, used to collect the status information of the pre-event, if any, and acquire it together with the current status information;

[0092] Accordingly, the aggregation storage module includes:

[0093] The aggregation storage submodule is used to aggregate the execution unit information, job pipeline information, current status information and status information of the preceding event, and push the aggregation result to the monitoring database for storage.

[0094] Optionally, the status information acquisition module 430 includes:

[0095] The timestamp information acquisition submodule is used to use the current timestamp information as the status information of the job.

[0096] Optionally, the status information acquisition module 430 includes:

[0097] A critical path formation submodule is used to determine the key nodes of the job in the job execution path to form a critical path;

[0098] The callback function submodule is used to register a callback function for each key node of the job; wherein the callback function is used to be triggered when the key node of the job is executed to form a key path tracking point.

[0099] Optionally, the job monitoring device of the job scheduling system further includes:

[0100] The custom information acquisition module is used to obtain the custom information of the job according to the pre-configured custom monitoring indicators during the job execution;

[0101] Accordingly, the aggregation storage module includes:

[0102] The aggregation storage submodule is used to aggregate the execution unit information, custom information, job pipeline information and status information, and push the aggregation results to the monitoring database for storage.

[0103] Optionally, the custom information acquisition module includes:

[0104] A configuration interface display submodule, used to display the configuration interface in response to a triggering operation of the configuration interface;

[0105] The custom monitoring indicator determination submodule is used to respond to a request for selecting a custom monitoring indicator and determine the selected one from the candidate indicators as the custom monitoring indicator; wherein the custom monitoring indicator is obtained through the tracking points of the key path of the job and / or through the custom tracking points.

[0106] Optionally, the custom monitoring indicator includes at least one of a job running time consumption indicator, a resource consumption indicator, and an error reporting indicator;

[0107] The request for selecting the custom monitoring indicator includes a selection result of the custom monitoring indicator, or includes a selection rule of the custom monitoring indicator.

[0108] Optionally, the job monitoring device of the job scheduling system further includes:

[0109] The event determination module is used to respond to the job query request and determine the event corresponding to each state information on the job pipeline according to the job pipeline information to which the job belongs.

[0110] The technical solution provided in the embodiment of the present application is as follows: if it is detected that a job execution unit is created, the execution unit information is obtained; if it is detected that a job pipeline is initialized, the job pipeline information is obtained; during the job execution process, the job status information is obtained by pre-embedding the key path of the job in the job scheduling system and using pre-set monitoring data acquisition rules; the execution unit information, job pipeline information and status information are aggregated, and the aggregation results are pushed to the monitoring database for storage. Since the method of embedding points in the key path of the job instead of interface docking is adopted, the service interfaces supported by different big data frameworks are different. If the job scheduling system is required to support multiple big data frameworks, the technical problem that they need to be developed and docked separately is solved, thereby achieving the effect of universal and effective job monitoring for the job monitoring system.

[0111] Embodiment 5

[0112] Embodiment 5 of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the job monitoring method of the job scheduling system provided in all the embodiments of the present invention is implemented:

[0113] If it is detected that the job execution unit is created, obtaining the execution unit information;

[0114] If the job pipeline initialization is detected, the job pipeline information is obtained;

[0115] During the execution of the job, the job status information is obtained by using the preset monitoring data acquisition rules through the key path of the job embedded in the job scheduling system.

[0116] The execution unit information, job pipeline information and status information are aggregated, and the aggregation result is pushed to the monitoring database for storage.

[0117] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0118] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0119] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0120] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0121] Embodiment 6

[0122] Embodiment 6 of the present application provides an electronic device. Figure 5 Schematic diagram of the structure of an electronic device provided in Example 6 of the present application. Figure 5 As shown, this embodiment provides an electronic device, which includes: one or more processors 510; a storage device 520, which is used to store one or more programs. When the one or more programs are executed by the one or more processors 510, the one or more processors 510 implement the job monitoring method of the job scheduling system provided in the embodiment of the present application, and the method includes:

[0123] If it is detected that the job execution unit is created, obtaining the execution unit information;

[0124] If the job pipeline initialization is detected, the job pipeline information is obtained;

[0125] During the execution of the job, the job status information is obtained by using the preset monitoring data acquisition rules through the key path of the job embedded in the job scheduling system.

[0126] The execution unit information, job pipeline information and status information are aggregated, and the aggregation result is pushed to the monitoring database for storage.

[0127] Of course, those skilled in the art can understand that the processor 510 also implements the technical solution of the job monitoring method of the job scheduling system provided in any embodiment of the present application.

[0128] Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0129] like Figure 5 As shown, the electronic device includes a processor 510, a storage device 520, an input device 530 and an output device 540; the number of the processor 510 in the electronic device can be one or more. Figure 5 A processor 510 is taken as an example; the processor 510, the storage device 520, the input device 530 and the output device 540 in the electronic device can be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.

[0130] The storage device 520, as a computer-readable storage medium, can be used to store software programs, computer executable programs and module units, such as program instructions corresponding to the job monitoring method of the job scheduling system in the embodiment of the present application.

[0131] The storage device 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 520 may further include a memory remotely arranged relative to the processor 510, and these remote memories may be connected via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0132] The input device 530 may be used to receive input numbers, character information or voice information, and generate key signal input related to user settings and function control of the electronic device. The output device 540 may include electronic devices such as a display screen and a speaker.

[0133] The job monitoring device, medium and electronic device of the job scheduling system provided in the above embodiments can execute the job monitoring method of the job scheduling system provided in any embodiment of the present application, and have the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in the above embodiments, please refer to the job monitoring method of the job scheduling system provided in any embodiment of the present application.

[0134] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for monitoring a job in a job scheduling system. It is characterized in that The method comprises: If it is detected that the job execution unit is created, obtaining the execution unit information; If the job pipeline initialization is detected, the job pipeline information is obtained; During the execution of the job, the job status information is obtained by using the preset monitoring data acquisition rules through the key path of the job embedded in the job scheduling system. Aggregate the execution unit information, job pipeline information and status information, and push the aggregation results to the monitoring database for storage; During the execution of the job, the job status information is obtained by using the embedded points of the job key path pre-embedded in the job scheduling system and the pre-set monitoring data acquisition rules, including: During the job execution process, the current status information of the job is obtained through the embedded points of the job key path pre-embedded in the job scheduling system; Identify whether there is a preceding event for the event corresponding to the current status information; If so, collect the status information of the preceding event and obtain it together with the current status information; Correspondingly, the execution unit information, job pipeline information and status information are aggregated, and the aggregation results are pushed to the monitoring database for storage, including: the execution unit information, job pipeline information, current status information and status information of the preceding event are aggregated, and the aggregation results are pushed to the monitoring database for storage.

2. The method according to claim 1, It is characterized in that Use the pre-set monitoring data acquisition rules to obtain the status information of the job, including: The current timestamp information is used as the status information of the job.

3. The method according to claim 1, It is characterized in that The embedding method of embedding points of the key paths of the jobs in the job scheduling system includes: Determining key nodes of the job in the job execution path to form a key path; A callback function is registered for each key node of the job; wherein the callback function is used to be triggered when the key node of the job is executed to form a key path tracking point.

4. The method according to claim 1, It is characterized in that After obtaining the job pipeline information, the method further includes: During the job execution, obtain the job's custom information based on the pre-configured custom monitoring indicators; Accordingly, the execution unit information, job pipeline information and status information are aggregated, and the aggregation result is pushed to the monitoring database for storage, including: The execution unit information, custom information, job pipeline information and status information are aggregated, and the aggregation result is pushed to the monitoring database for storage.

5. The method according to claim 4, It is characterized in that The configuration process of the custom monitoring indicator includes: In response to a triggering operation of the configuration interface, displaying the configuration interface; In response to a request for selecting a custom monitoring indicator, a candidate indicator is selected as the custom monitoring indicator; wherein the custom monitoring indicator is obtained through tracking points of a critical path of the job and / or through custom tracking points.

6. The method according to claim 5, It is characterized in that The custom monitoring indicator includes at least one of a job running time consumption indicator, a resource consumption indicator, and an error reporting indicator; The request for selecting the custom monitoring indicator includes a selection result of the custom monitoring indicator, or includes a selection rule of the custom monitoring indicator.

7. The method according to claim 1, It is characterized in that After pushing the aggregation result to the monitoring database for storage, the method further includes: In response to the job query request, the event corresponding to each state information on the job pipeline is determined according to the job pipeline information to which the job belongs.

8. A job monitoring device for a job scheduling system, It is characterized in that The device comprises: An execution unit information acquisition module, configured to acquire the execution unit information if it is detected that a job execution unit is created; The operation pipeline information acquisition module is used to acquire the operation pipeline information if the operation pipeline initialization is detected; The status information acquisition module is used in the process of job execution to obtain the status information of the job by using the preset monitoring data acquisition rules through the embedded points of the job key path pre-embedded in the job scheduling system; An aggregation storage module, used to aggregate the execution unit information, job pipeline information and status information, and push the aggregation results to the monitoring database for storage; The status information acquisition module is used to acquire the current status information of the job through the embedded points of the job key path pre-embedded in the job scheduling system during the job execution process; Identify whether there is a preceding event for the event corresponding to the current status information; If so, collect the status information of the preceding event and obtain it together with the current status information; The aggregation storage module is used to aggregate the execution unit information, job pipeline information, current status information and status information of the preceding event, and push the aggregation result to the monitoring database for storage.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the job monitoring method of the job scheduling system as described in any one of claims 1 to 7 is implemented.

10. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the job monitoring method of the job scheduling system according to any one of claims 1 to 7 is implemented.