CN109558222B - Batch business process monitoring method and device, computer and readable storage medium - Google Patents

Batch business process monitoring method and device, computer and readable storage medium Download PDF

Info

Publication number
CN109558222B
CN109558222B CN201811162028.XA CN201811162028A CN109558222B CN 109558222 B CN109558222 B CN 109558222B CN 201811162028 A CN201811162028 A CN 201811162028A CN 109558222 B CN109558222 B CN 109558222B
Authority
CN
China
Prior art keywords
scheduling
slave
machine
master
scheduler
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811162028.XA
Other languages
Chinese (zh)
Other versions
CN109558222A (en
Inventor
王英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811162028.XA priority Critical patent/CN109558222B/en
Publication of CN109558222A publication Critical patent/CN109558222A/en
Application granted granted Critical
Publication of CN109558222B publication Critical patent/CN109558222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Abstract

The invention provides a method and a device for monitoring batch business processes, a computer and a readable storage medium, and relates to system data monitoring in the technical field of computers. The method for monitoring the batch service process is applied to a process scheduling system at least comprising two scheduling machines, and comprises the following steps: searching a scheduling process of a designated batch service in a task management system of a main scheduling machine; if the corresponding scheduling process is not found by the master scheduling machine, searching the scheduling process of the designated batch service in the task management system of the slave scheduling machine; if the common search result of the slave scheduling machine and the master scheduling machine does not contain the corresponding process, searching the scheduling process of the designated batch service again in the task management system of the master scheduling machine; and if the common search result of the master scheduling machine and the slave scheduling machine does not contain all scheduling processes, outputting an information prompt. The method and the system are favorable for improving the reliability of the management and control personnel on the realization of the batch tasks/business functions in the process scheduling system.

Description

Batch business process monitoring method and device, computer and readable storage medium
Technical Field
The present invention relates to system data monitoring in the field of computer technologies, and in particular, to a method and an apparatus for monitoring a batch business process, a computer, and a readable storage medium.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims and the detailed description. The description herein is not admitted to be prior art by inclusion in this section.
The dispatcher is a special communication device, and can be applied to a bank management system. In the actual use process, the scheduling processes of the real-time tasks are mostly randomly distributed to two or more scheduling machines, and when the scheduling function of the batch tasks/services needs to be realized, a plurality of scheduling processes are often included, so that a certain difficulty exists in judging whether the whole scheduling system can realize the batch tasks/services function.
Disclosure of Invention
In view of this, it is necessary to provide a method, an apparatus, a computer, and a readable storage medium for monitoring a batch service process, which are beneficial to improving the reliability of a manager in implementing a batch task/service function in a process scheduling system.
The first aspect of the present invention provides a method for monitoring a batch service process, which is applied to a process scheduling system at least comprising two schedulers, and the method comprises:
searching scheduling processes of a designated batch service in a task management system of a main scheduling machine by using associated preset identifiers, wherein each preset identifier and each scheduling process of the designated batch service have a preset corresponding relationship;
if the search result of the master scheduler does not contain all scheduling processes of the specified batch service, the master scheduler jumps to a slave scheduler, and searches the scheduling processes of the specified batch service in a task management system of the slave scheduler by using the associated preset identifier;
if the search result of the slave scheduling machine comprises at least one scheduling process of the specified batch service, and the common search result of the master scheduling machine and the slave scheduling machine does not comprise all scheduling processes of the specified batch service, the slave scheduling machine outputs a null value to be transmitted to the master scheduling machine;
when the main scheduling machine receives the null value, searching the scheduling process of the designated batch service in a task management system of the main scheduling machine by using the associated preset identifier again;
and if the common search result of the master scheduling machine and the slave scheduling machine does not contain all scheduling processes of the specified batch service, outputting an information prompt for representing that all scheduling processes do not exist in the process scheduling system.
Preferably, the preset identifier includes any one of: and scheduling the task name, the task identification code and the task code.
Preferably, the method comprises:
and if the search result of the slave scheduling machine does not contain any scheduling process in the designated batch service, the slave scheduling machine outputs information prompt representing that all scheduling processes do not exist in the process scheduling system.
Preferably, said jumping to a slave scheduler by the master scheduler comprises:
and the master dispatcher executes a preset command so as to jump from the master dispatcher to the slave dispatcher in a secure shell protocol mode.
Preferably, after the associated preset identifier is reused to search for the scheduling process of the specified batch service in the task management system of the main scheduler, the method further includes:
if the search result of the main scheduling machine does not contain the scheduling process of the specified batch service and the process name of part of scheduling processes exists in the process table of the main scheduling machine, searching a parent process of the process corresponding to the process name;
and if the parent process of the process corresponding to the process name is found, deleting the parent process of the process corresponding to the process name.
Preferably, the method comprises:
executing a first shell script on the main scheduling machine to perform a scheduling process of searching for a specified batch service in a task management system of the main scheduling machine by using the associated preset identifier;
and executing a second shell script on the slave scheduling machine to perform the scheduling process of searching the specified batch service in the task management system of the slave scheduling machine by using the associated preset identifier.
Preferably, when the search result of the master scheduler and the search result of the slave scheduler both include the scheduling process of the preset batch service, the method further includes:
and the master scheduling machine stops the execution of the first shell script, and the slave scheduling machine stops the execution of the second shell script.
The second aspect of the present invention provides a device for monitoring a batch service process, which is applied to a process scheduling system at least comprising two schedulers, and the device comprises:
the system comprises a first searching module, a second searching module and a third searching module, wherein the first searching module is used for searching scheduling processes of specified batch services in a task management system of a main scheduling machine by using associated preset identifiers, and each preset identifier and each scheduling process of the specified batch services have a preset corresponding relation;
the second searching module is used for skipping from the master scheduling machine to the slave scheduling machine when the searching result of the master scheduling machine does not contain all scheduling processes of the specified batch service, and searching the scheduling processes of the specified batch service in the task management system of the slave scheduling machine by using the associated preset identifier;
the transmission module is used for outputting a null value to the master scheduling machine by the slave scheduling machine to transmit the null value to the master scheduling machine when the search result of the slave scheduling machine comprises at least one scheduling process of the specified batch service and the common search result of the master scheduling machine and the slave scheduling machine does not comprise all scheduling processes of the specified batch service;
the first searching module is further configured to search for the scheduling process of the specified batch service in the task management system of the main scheduler by using the associated preset identifier again when the main scheduler receives the null value;
and the information output module is used for outputting an information prompt for representing that all scheduling processes do not exist in the process scheduling system if the common search result of the master scheduler and the slave scheduler does not contain all scheduling processes of the specified batch service.
A third aspect of the invention provides a computer comprising a processor and a memory, the processor being adapted to implement the steps of the batch traffic progress monitoring method as described above when executing a computer program stored in the memory.
A fourth aspect of the present invention provides a computer readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the batch business process monitoring method as set forth above.
The batch service process monitoring method and device, the computer and the readable storage medium provided by the invention search the scheduling process in the task management system by using the preset identifier associated with the scheduling process of the specified batch service, search the scheduling process on the main scheduling machine for the first time, and jump to the slave scheduling machine to search the scheduling process if the search result of the main scheduling machine does not contain all scheduling processes of the specified batch service. And if the search result of the slave scheduling machine comprises at least one scheduling process of the specified batch service, and the searched scheduling process and the scheduling process in the first search result of the master scheduling machine do not comprise all scheduling processes of the specified batch service, outputting control at the slave scheduling machine and transmitting the control to the master scheduling machine. After the null value is received on the master scheduling machine, the master scheduling machine carries out secondary searching, if the common searching result of the secondary searching and the slave scheduling machine does not contain all scheduling processes of the specified batch service, information prompt is output, and management and control personnel are reminded to possibly cause that the specified batch service cannot be completely realized due to missing part of the scheduling processes, so that the reliability of the management and control personnel on realization of batch tasks/service functions in the process scheduling system is improved, and the information safety is improved. Meanwhile, the scheduling process is searched in the main scheduling machine in a secondary checking mode, so that the searching accuracy can be relatively improved, and the output information prompt is more referential.
Further, with the present invention, while outputting the prompt information, regarding that the process corresponding to the process name displayed in the process table is not necessarily the currently executing process, there may be a case that the parent process fails to read the exit signal of the child process, so that the child process is already executed and is in a dead state, but the corresponding process name still exists in the process table: the parent process of the process corresponding to the process name is searched, and the zombie process in the process table is eliminated in a mode of deleting the corresponding parent process, so that the probability that the system cannot generate a new process due to the fact that the process number occupied by the zombie process cannot be released is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some examples of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a batch business process monitoring method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a batch business process monitoring method according to another embodiment of the present invention;
FIG. 3 is an exemplary functional block diagram of a batch business process monitoring apparatus according to an embodiment of the present invention;
fig. 4 is an exemplary structural diagram of a computer according to an embodiment of the present invention.
Description of the main elements
Figure BDA0001820220180000051
/>
Figure BDA0001820220180000061
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
So that the manner in which the above recited objects, features and advantages of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments thereof which are illustrated in the appended drawings. In addition, the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a batch business process monitoring method according to an embodiment of the present invention. It should be noted that the batch business process monitoring method according to the present embodiment is not limited to the steps and the sequence in the flowchart shown in fig. 1. Steps in the illustrated flowcharts may be added, removed, or changed in order according to various needs.
As shown in fig. 1, the batch service process monitoring method of the present embodiment may be applied to a process scheduling system including at least two schedulers, where the process scheduling system implements a set of specific functions for managing the execution of corresponding processes by the two schedulers.
The batch service process monitoring method provided by the embodiment can comprise the following steps:
step 101, searching a scheduling process of a designated batch service in a task management system of a main scheduling machine by using an associated preset identifier, wherein each preset identifier and each scheduling process of the designated batch service have a preset corresponding relationship.
In this embodiment, the preset identifier may be a scheduling task name, or may be other types of names generated by naming according to a preset rule, such as an identification code, a task code, and the like.
It can be understood that the at least two schedulers included in the process scheduling system can be divided into a master scheduler and a slave scheduler, the master scheduler can be used as a starting device and/or a terminating device for searching the scheduling process, and the slave scheduler can be used as an intermediate device for searching the scheduling process. The scheduling process is a functional process for implementing execution of a corresponding process under a certain priority.
In this embodiment, the designated batch service is a service that includes more than two scheduling processes and is used for scheduling and adjusting a batch task and/or a service, and each scheduling process is a unique process for implementing a predictable function.
It will be appreciated that the task management system is a system that performs the actual task process management and/or control.
In this embodiment, a first shell script is executed on the main scheduler to perform the scheduling process of searching for the specified batch service in the task management system of the main scheduler by using the associated preset identifier.
Step 102: and if the search result of the master scheduler does not contain all scheduling processes of the specified batch service, the master scheduler jumps to a slave scheduler, and searches the scheduling processes of the specified batch service in a task management system of the slave scheduler by using the associated preset identifier.
In this embodiment, since the number of the processes for invoking the specified batch service is two or more, if all the scheduling processes of the specified batch service are not included in the master scheduler, it cannot be determined whether the current process scheduling system can implement scheduling of the corresponding processes.
In this embodiment, the master scheduler jumping to the slave scheduler may control the master scheduler to execute a preset Linux command through a process scheduling system/computer, and realize jumping to the slave scheduler through a Secure Shell (SSH) mode.
It is understood that after jumping to the slave scheduler, the associated preset identifier can be used to search the scheduling process of the specified batch service in the task association system of the slave scheduler in the same searching manner.
In this embodiment, a second shell script is executed on the slave scheduler to perform the scheduling process of searching the specified batch service in the task management system of the slave scheduler by using the associated preset identifier, where the second shell script is different from the first shell script.
Step 103: and if the search result of the slave scheduling machine comprises at least one scheduling process of the specified batch service, and the common search result of the master scheduling machine and the slave scheduling machine does not comprise all scheduling processes of the specified batch service, the slave scheduling machine outputs a null value to transmit to the master scheduling machine.
In this embodiment, if the search result of the slave scheduler does not include any scheduling process of the specified batch service, the steps subsequent to this step may be terminated directly. Meanwhile, a preset value which can represent that no corresponding scheduling process exists in the slave scheduling machine can be generated by executing the second shell script, and the preset value can be identified by the master scheduling machine and the slave scheduling machine in a default mode. When the preset value is detected in the master scheduling machine, prompt information that the slave scheduling machine does not have a relevant scheduling process can be generated; and when the preset value is detected in the slave scheduling machine, locally generating prompt information without a relevant scheduling process.
It is understood that the null value may be used to indicate that the search result of the slave scheduler in common with the first master scheduler may not completely contain all scheduling processes of the specified batch service.
Step 104: and when the main scheduling machine receives the null value, searching the scheduling process of the specified batch service in the task management system of the main scheduling machine by using the associated preset identifier again.
In this embodiment, because the execution of a part of the scheduling processes has a certain uncertainty, if the part of the scheduling processes is jammed due to an unexpected factor and the execution is terminated, the Linux system can resume the execution of the corresponding scheduling processes by restarting the part of the scheduling processes, and based on this situation, the step searches the scheduling processes of the specified batch service in the task management system of the main scheduler by using the associated preset identifiers again.
Step 105: and if the common search result of the master scheduling machine and the slave scheduling machine does not contain all scheduling processes of the specified batch service, outputting an information prompt for representing that all scheduling processes do not exist in the process scheduling system.
It can be understood that the information prompt may be implemented by sending information to a designated mobile computer, or by performing corresponding information warning on a control page of the process scheduling system, or by implementing corresponding information prompt in other forms such as sound and light for a controller to recognize.
In this embodiment, a preset identifier associated with a scheduling process of a specified batch service is used to search for the scheduling process in a task management system, and a primary scheduling process search is performed on a master scheduler, and if a search result of the master scheduler does not include all scheduling processes of the specified batch service, a slave scheduler is skipped to search for the scheduling process. And if the search result of the slave scheduling machine comprises at least one scheduling process of the specified batch service, and the searched scheduling process and the scheduling process in the first search result of the master scheduling machine do not comprise all scheduling processes of the specified batch service, outputting control at the slave scheduling machine and transmitting the control to the master scheduling machine. After the null value is received on the master scheduling machine, the master scheduling machine carries out secondary searching, if the common searching result of the secondary searching and the slave scheduling machine does not contain all scheduling processes of the designated batch service, information prompt is output, and management and control personnel are reminded that the designated batch service cannot be completely realized due to the fact that part of scheduling processes are lost, so that the assurance degree of the management and control personnel on the realization of batch tasks/service functions in the process scheduling system is favorably improved, and the information safety is improved. Meanwhile, the searching of the scheduling process is carried out in the main scheduling machine in a secondary checking mode, so that the searching accuracy can be relatively improved, and the output information prompt is more referential.
It can be understood that, when the search result of the master scheduler and the search result of the slave scheduler together include the scheduling process of the preset batch service, the master scheduler may be controlled to stop the execution of the first shell script, and the slave scheduler may be controlled to stop the execution of the second shell script.
It can be understood that, when the batch service process monitoring method of the embodiment is applied to searching for a specified single scheduling process, if the specified scheduling process cannot be found by the master scheduler, the master scheduler also jumps to the slave scheduler to perform corresponding searching. If the search result of the slave scheduling machine does not include the designated scheduling process, the slave scheduling machine can output a null value and transmit the null value to the master scheduling machine. And the main scheduling machine checks when receiving the null value, and outputs prompt information if the checking result does not contain the specified scheduling process.
It can be understood that, when the number of the dispatchers is more than two, the dispatchers include a master dispatcher and two slave dispatchers, after the first search of the dispatching process is completed on the master dispatcher, the corresponding dispatching process can be searched on the two slave dispatchers at the same time, and if the search results of the two slave dispatchers both include at least one dispatching process of the specified batch service and the common search result of the master dispatcher and the two slave dispatchers does not include all dispatching processes of the specified batch service, both the two slave dispatchers can output a null value to be transmitted to the master dispatcher.
Fig. 2 is a flowchart of a batch service process monitoring method according to another embodiment, where the second embodiment is mainly different from the first embodiment in that the second embodiment further includes a step of, when a process name of a part of scheduling processes exists in a process table of a master scheduler, searching a parent process of the process corresponding to the process name. It should be noted that, within the scope of the spirit or the basic features of the present invention, each specific solution applicable to the first embodiment may also be correspondingly applicable to the second embodiment, and for the sake of brevity and avoidance of repetition, the detailed description thereof is omitted here.
The batch business process monitoring method shown in fig. 2 is equally applicable. As shown in fig. 2, the batch business process monitoring method may include the following steps:
step 201: and searching scheduling processes of the designated batch services in a task management system of a main scheduling machine by using the associated preset identifiers, wherein each preset identifier and each scheduling process of the designated batch services have a preset corresponding relationship.
Step 202: and if the search result of the master scheduler does not contain all scheduling processes of the specified batch service, the master scheduler jumps to a slave scheduler, and searches the scheduling processes of the specified batch service in a task management system of the slave scheduler by using the associated preset identifier.
Step 203: and if the search result of the slave scheduling machine comprises at least one scheduling process of the specified batch service, and the common search result of the master scheduling machine and the slave scheduling machine does not comprise all scheduling processes of the specified batch service, the slave scheduling machine outputs a null value to be transmitted to the master scheduling machine.
Step 204: and when the main scheduling machine receives the null value, searching the scheduling process of the specified batch service in the task management system of the main scheduling machine by using the associated preset identifier again.
Step 205: and if the common search result of the master scheduler and the slave scheduler does not contain all scheduling processes of the specified batch service, and the process lists of the master scheduler and the slave scheduler contain the process names of the scheduling processes which are not contained, searching a parent process corresponding to the process names.
It is understood that the process table (process table) may be a list showing currently executed processes in the Linux system.
Step 206: and if the parent process of the process corresponding to the process name is found, deleting the parent process of the process corresponding to the process name, and outputting an information prompt for representing that the process scheduling system does not have all scheduling processes.
In this embodiment, in addition to the foregoing embodiment, when the prompt information is output, the process corresponding to the process name displayed in the process table is not necessarily the currently executed process, and there may be a case where the parent process fails to read the exit signal of the child process, so that the child process is already executed and is in a dead state, but the corresponding process name still exists in the process table: the parent process of the process corresponding to the process name is searched, and the zombie process in the process table is eliminated in a mode of deleting the corresponding parent process, so that the probability that the system cannot generate a new process due to the fact that the process number occupied by the zombie process cannot be released is reduced.
FIG. 3 is an exemplary functional block diagram of a batch business process monitoring apparatus according to an embodiment of the present invention. As shown in fig. 3, the batch service process monitoring apparatus 100 may perform a scheduling process lookup in the task management system by using a preset identifier associated with a scheduling process of a specified batch service, perform a first scheduling process lookup on the master scheduler, and jump to the slave scheduler to perform a scheduling process lookup if a lookup result of the master scheduler does not include all scheduling processes of the specified batch service. And if the search result of the slave scheduling machine comprises at least one scheduling process of the specified batch service, and the searched scheduling process and the scheduling process in the first search result of the master scheduling machine do not comprise all scheduling processes of the specified batch service, outputting control at the slave scheduling machine and transmitting the control to the master scheduling machine. After the null value is received on the master scheduling machine, the master scheduling machine carries out secondary searching, if the common searching result of the secondary searching and the slave scheduling machine does not contain all scheduling processes of the specified batch service, information prompt is output, and management and control personnel are reminded to possibly cause that the specified batch service cannot be completely realized due to missing part of the scheduling processes, so that the reliability of the management and control personnel on realization of batch tasks/service functions in the process scheduling system is improved, and the information safety is improved. Meanwhile, the searching of the scheduling process is carried out in the main scheduling machine in a secondary checking mode, so that the searching accuracy can be relatively improved, and the output information prompt is more referential.
The batch business process monitoring apparatus 100 of the present invention may comprise one or more modules that may be stored in a memory of a computer and may be configured to be executed by one or more processors (one processor in this embodiment) to accomplish the present invention. For example, as shown in fig. 4, the batch service progress monitoring apparatus 100 may include a first search module 11, a second search module 12, a transmission module 13, an information output module 14, and a deletion module 15. The modules referred to in this application may be program segments that perform particular functions, or may be more specialized than programs that describe the execution of software on a processor.
It should be noted that, corresponding to the above embodiments of the batch business process monitoring method, the batch business process monitoring apparatus 100 may include some or all of the functional modules shown in fig. 3, and the functions of the modules will be described in detail below. The same noun and its specific explanation in the above embodiments of the batch business process monitoring method can also be applied to the following functional introduction of each module. For brevity and to avoid repetition, further description is omitted.
Fig. 4 is an exemplary structural diagram of a computer according to an embodiment of the present invention. The computer 1 provided in the present embodiment includes: a processor 10, a memory 20, and a computer program, such as a batch business process monitor, stored in the memory 20 and operable on the processor 10. When the processor 10 executes the computer program, the steps in the above embodiments of the batch service process monitoring method, such as steps 101 to 105 shown in fig. 1, are implemented. Alternatively, the processor 10, when executing the computer program, implements the functions of the modules in the above-described apparatus embodiments, for example, as a function of the first searching module 11 in fig. 3, which is used for searching for the scheduling process of the specified batch service in the task management system of the master scheduler by using the associated preset identifier.
The computer 1 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The computer 1 may include, but is not limited to, a processor 10, a memory 20. It will be understood by those skilled in the art that the schematic diagram is merely an example of the computer 1 for implementing the batch business process monitoring method of the present invention, and does not constitute a limitation to the computer 1, and may include more or less components than those shown, or combine some components, or different components, for example, the computer 1 may further include an input and output device, a network access device, a bus, etc.
The Processor 10 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 10 is the control center of the computer 1 and various interfaces and lines are used to connect the various parts of the whole computer.
The memory 20 may be used to store the computer programs and/or modules, and the processor 10 implements various functions of the computer 1 by executing or executing the computer programs and/or modules stored in the memory 20 and calling data stored in the memory 20. The memory 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The computer 1 may further include a batch business process monitoring apparatus 100 as shown in fig. 3, and the batch business process monitoring apparatus 100 may be stored in the memory 20.
Illustratively, the computer program may be partitioned into one or more modules that are stored in the memory 20 and executed by the processor 10 to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the computer 1. For example, the computer program may be divided into the batch service progress monitoring apparatus 100 shown in fig. 3, which includes a first search module 11, a second search module 12, a transmission module 13, an information output module 14, and a deletion module 15, where the specific functions of the modules are as follows:
the first searching module 11 is configured to search, in a task management system of a host scheduler, scheduling processes of a specified batch service by using associated preset identifiers, where each preset identifier has a preset correspondence with each scheduling process of the specified batch service; and when the main scheduling machine receives the null value, searching the scheduling process of the specified batch service in the task management system of the main scheduling machine by using the associated preset identifier again.
The second searching module 12 is configured to jump from the master scheduler to the slave scheduler when the search result of the master scheduler does not include all scheduling processes of the specified batch service, and search the scheduling process of the specified batch service in the task management system of the slave scheduler by using the associated preset identifier.
And a transmission module 13, configured to output a null value to the slave scheduler for transmission to the master scheduler when the search result of the slave scheduler includes at least one scheduling process of the specified batch service and the search result common to the master scheduler and the slave scheduler does not include all scheduling processes of the specified batch service.
And the information output module 14 is configured to output an information prompt indicating that all scheduling processes do not exist in the process scheduling system when the common search result of the master scheduler and the slave scheduler does not include all scheduling processes of the specified batch service.
A deleting module 15, configured to, when the search result of the main scheduler does not include the scheduling process of the specified batch service, and a process name of a part of scheduling processes exists in a process table of the main scheduler, search a parent process of a process corresponding to the process name;
and when the parent process of the process corresponding to the process name is searched, deleting the parent process of the process corresponding to the process name.
The modules integrated by the computer 1 according to the present invention may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it will be obvious that the term "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. Several of the units, modules or means recited in the system, apparatus or computer means claims may also be implemented by one and the same unit, module or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Although the present invention has been described in detail with reference to the preferred embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the spirit and scope of the invention.

Claims (10)

1. A method for monitoring a batch service process is applied to a process scheduling system at least comprising two schedulers, and is characterized in that the method comprises the following steps:
searching scheduling processes of a designated batch service in a task management system of a main scheduling machine by using associated preset identifiers, wherein each preset identifier and each scheduling process of the designated batch service have a preset corresponding relationship;
if the search result of the master scheduler does not contain all scheduling processes of the specified batch service, the master scheduler jumps to a slave scheduler, and searches the scheduling processes of the specified batch service in a task management system of the slave scheduler by using the associated preset identifier;
if the search result of the slave scheduling machine comprises at least one scheduling process of the specified batch service, and the common search result of the master scheduling machine and the slave scheduling machine does not comprise all scheduling processes of the specified batch service, the slave scheduling machine outputs a null value to be transmitted to the master scheduling machine;
when the main scheduling machine receives the null value, searching the scheduling process of the designated batch service in a task management system of the main scheduling machine by using the associated preset identifier again;
and if the common search result of the master scheduling machine and the slave scheduling machine does not contain all scheduling processes of the specified batch service, outputting an information prompt for representing that all scheduling processes do not exist in the process scheduling system.
2. The batch business process monitoring method of claim 1, wherein the preset identifier comprises any one of: and scheduling the task name, the task identification code and the task code.
3. The batch business process monitoring method of claim 1, wherein the method comprises:
and if the search result of the slave scheduling machine does not contain any scheduling process in the designated batch service, the slave scheduling machine outputs information prompt representing that all scheduling processes do not exist in the process scheduling system.
4. The batch business process monitoring method of claim 1, wherein said jumping by the master scheduler to a slave scheduler comprises:
and the master dispatcher executes a preset command so as to jump from the master dispatcher to the slave dispatcher in a secure shell protocol mode.
5. The batch service process monitoring method of claim 1, wherein after the re-using the associated preset identifier to find the scheduling process of the specified batch service in the task management system of the master scheduler, the method further comprises:
if the search result of the main scheduling machine does not contain the scheduling process of the specified batch service and the process name of part of scheduling processes exists in the process table of the main scheduling machine, searching a parent process of the process corresponding to the process name;
and if the parent process of the process corresponding to the process name is found, deleting the parent process of the process corresponding to the process name.
6. The batch business process monitoring method of claim 1, wherein the method comprises:
executing a first shell script on the main scheduling machine to perform a scheduling process of searching for a specified batch service in a task management system of the main scheduling machine by using the associated preset identifier;
executing a second shell script on the slave scheduler to perform the scheduling process of searching the designated batch service in the task management system of the slave scheduler by using the associated preset identifier.
7. The batch service process monitoring method of claim 6, wherein when the search result of the master scheduler and the search result of the slave scheduler together contain a scheduling process of a preset batch service, the method further comprises:
the master scheduler stops execution of the first shell script, and the slave scheduler stops execution of the second shell script.
8. A kind of batch business process monitoring device, apply to the process scheduling system comprising two scheduling machines at least, characterized by that, the said device includes:
the system comprises a first searching module, a second searching module and a third searching module, wherein the first searching module is used for searching scheduling processes of specified batch services in a task management system of a main scheduling machine by using associated preset identifiers, and each preset identifier and each scheduling process of the specified batch services have a preset corresponding relation;
the second searching module is used for skipping from the master scheduling machine to the slave scheduling machine when the searching result of the master scheduling machine does not contain all scheduling processes of the specified batch service, and searching the scheduling processes of the specified batch service in the task management system of the slave scheduling machine by using the associated preset identifier;
the transmission module is used for outputting a null value to the master scheduling machine by the slave scheduling machine to transmit the null value to the master scheduling machine when the search result of the slave scheduling machine comprises at least one scheduling process of the specified batch service and the common search result of the master scheduling machine and the slave scheduling machine does not comprise all scheduling processes of the specified batch service;
the first searching module is further configured to search for the scheduling process of the specified batch service in the task management system of the main scheduler by using the associated preset identifier again when the main scheduler receives the null value;
and the information output module is used for outputting an information prompt for representing that all scheduling processes do not exist in the process scheduling system if the common search result of the master scheduler and the slave scheduler does not contain all scheduling processes of the specified batch service.
9. A computer, characterized in that the computer comprises a processor and a memory, the processor being configured to implement the steps of the batch business process monitoring method according to any one of claims 1 to 7 when executing a computer program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the batch business process monitoring method according to any one of claims 1 to 7.
CN201811162028.XA 2018-09-30 2018-09-30 Batch business process monitoring method and device, computer and readable storage medium Active CN109558222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811162028.XA CN109558222B (en) 2018-09-30 2018-09-30 Batch business process monitoring method and device, computer and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811162028.XA CN109558222B (en) 2018-09-30 2018-09-30 Batch business process monitoring method and device, computer and readable storage medium

Publications (2)

Publication Number Publication Date
CN109558222A CN109558222A (en) 2019-04-02
CN109558222B true CN109558222B (en) 2023-04-11

Family

ID=65864731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811162028.XA Active CN109558222B (en) 2018-09-30 2018-09-30 Batch business process monitoring method and device, computer and readable storage medium

Country Status (1)

Country Link
CN (1) CN109558222B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559155A (en) * 2020-12-23 2021-03-26 平安银行股份有限公司 Batch job processing method, system, computer device and readable storage medium
CN113535514A (en) * 2021-07-02 2021-10-22 中科曙光国际信息产业有限公司 Job tracking method, device, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438616B1 (en) * 1997-12-18 2002-08-20 Sun Microsystems, Inc. Method and apparatus for fast, local corba object references
CN104360923A (en) * 2014-11-03 2015-02-18 中国银行股份有限公司 Monitoring method and monitoring system for batch application process
CN104331327B (en) * 2014-12-02 2017-07-11 山东乾云启创信息科技股份有限公司 The optimization method of task scheduling and optimization system in large scale virtualisation environment
CN104793994A (en) * 2015-04-27 2015-07-22 中国农业银行股份有限公司 Batch job processing method, device and system
CN108170582A (en) * 2017-12-28 2018-06-15 政采云有限公司 System mode querying method and device, computer readable storage medium

Also Published As

Publication number Publication date
CN109558222A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
US11762697B2 (en) Method and apparatus for scheduling resource for deep learning framework
CN109271265B (en) Request processing method, device, equipment and storage medium based on message queue
CN113268336B (en) Service acquisition method, device, equipment and readable medium
CN109032796B (en) Data processing method and device
CN109558222B (en) Batch business process monitoring method and device, computer and readable storage medium
CN111143446A (en) Data structure conversion processing method and device of data object and electronic equipment
CN110609755A (en) Message processing method, device, equipment and medium for cross-block chain node
CN112905933A (en) Page jump method and device, electronic equipment and storage medium
CN111582815A (en) Engineering management method and device for nuclear power station, terminal equipment and storage medium
US20230037783A1 (en) Resource scheduling method and related apparatus
CN113139660A (en) Model reasoning method and device, electronic equipment and storage medium
CN110673959A (en) System, method and apparatus for processing tasks
US20200092313A1 (en) Data determination device, data determination method, and data determination program
WO2016078326A1 (en) Method, apparatus and system for displaying names of virtual machine
CN111988429A (en) Algorithm scheduling method and system
CN109976902B (en) Task processing method, system, electronic device and computer readable medium
CN107391711B (en) Method and device for acquiring song accompaniment
CN112764897B (en) Task request processing method, device and system and computer readable storage medium
CN112015535B (en) Task processing method, device, electronic equipment and storage medium
CN113407331A (en) Task processing method and device and storage medium
CN111857865A (en) Event type task processing method and device, electronic equipment and storage medium
CN114265997B (en) Page information output method, device, storage medium and terminal
CN112667247A (en) Service management method, system, terminal and storage medium
CN115910251A (en) Method and device for processing medical data
CN116661809A (en) Automatic deployment method of application system, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant