CN117312072A - Method, system, equipment and storage medium for monitoring background batch process dead - Google Patents
Method, system, equipment and storage medium for monitoring background batch process dead Download PDFInfo
- Publication number
- CN117312072A CN117312072A CN202311116951.0A CN202311116951A CN117312072A CN 117312072 A CN117312072 A CN 117312072A CN 202311116951 A CN202311116951 A CN 202311116951A CN 117312072 A CN117312072 A CN 117312072A
- Authority
- CN
- China
- Prior art keywords
- daemon
- business process
- monitoring
- state value
- state
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 132
- 238000012544 monitoring process Methods 0.000 title claims abstract description 53
- 238000010923 batch production Methods 0.000 title claims abstract description 18
- 230000008569 process Effects 0.000 claims abstract description 111
- 230000003993 interaction Effects 0.000 claims abstract description 8
- 238000012545 processing Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 6
- 230000005856 abnormality Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 abstract description 3
- 238000012423 maintenance Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method, a system, equipment and a storage medium for monitoring the dead of background batch processes, which comprise the steps of correspondingly configuring a daemon for each business process, and carrying out information interaction between the daemon and the business process; the daemon process monitors the operation of the business process in real time and acquires the state value of the business process; the daemon process sends the state value to a monitoring system; the monitoring system determines the state of the business process based on the state value. The invention introduces daemon process in batch process management, carries out process communication by the daemon process and business process, and transmits the process state to a monitoring system to realize the monitoring of process dead conditions.
Description
Technical Field
The invention relates to the technical field of process monitoring, in particular to a method, a system, equipment and a storage medium for monitoring the dead of a background batch process.
Background
Background batch processes are used for processing single or multiple batch services, generally, the data magnitude of the processed services is large, the processing time is long, the conventional monitoring means can only check whether the process is running or not, and the state of the actual processing task of the process cannot be effectively monitored, but the background batch processes are places where problems often occur, the running state of the process is normal, the services are not processed, namely, the situation of so-called process dead is solved, and the problem cannot be checked by maintainers of the process.
Disclosure of Invention
Aiming at the defects existing in the problems, the invention provides a method, a system, equipment and a storage medium for monitoring the dead of a background batch process.
In order to achieve the above purpose, the present invention provides a method for monitoring the dead of a background batch process, comprising:
configuring a daemon corresponding to each business process, wherein information interaction is carried out between the daemon and the business process;
the daemon process monitors the operation of the business process in real time and acquires the state value of the business process;
the daemon process sends the state value to a monitoring system;
the monitoring system determines a state of the business process based on the state value.
Preferably, the daemon for monitoring the running state of the business process is configured by executing a fork function.
Preferably, the daemon process and the business process realize information interaction through a shared area.
Preferably, the business process runs a processing business and updates the shared area variable state value, and the daemon scans the shared area variable state value in real time.
Preferably, the monitoring system determining the state of the business process based on the state value includes:
comparing the state value with a preset threshold value;
outputting a state abnormality prompt when the state value exceeds the threshold value;
and outputting a state normal prompt when the state value does not exceed the threshold value.
The invention also provides a system for monitoring the dead of the background batch progress, which comprises the following steps:
the configuration module is used for correspondingly configuring a daemon for each business process, and the daemon and the business process interact with each other in information;
the monitoring module is used for monitoring the operation of the business process in real time by the daemon process and acquiring the state value of the business process;
the sending module is used for sending the state value to a monitoring system by the daemon process;
and the determining module is used for determining the state of the business process based on the state value by the monitoring system.
The invention also provides an apparatus comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program which, when executed by the processing unit, causes the processing unit to perform the method described above.
The present invention also provides a storage medium storing a computer program executable by an electronic device, which when run on the electronic device causes the electronic device to perform the above-described method.
Compared with the prior art, the invention has the beneficial effects that:
the invention introduces daemon process in batch process management, carries out process communication by the daemon process and business process, and transmits the process state to a monitoring system to realize the monitoring of process dead conditions.
Drawings
FIG. 1 is a flow chart of the method for monitoring background batch process dead.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, the invention provides a method for monitoring background batch progress dead, which comprises the following steps:
configuring a daemon corresponding to each business process, and carrying out information interaction between the daemon and the business process;
specifically, a daemon process for monitoring the running state of a business process is configured by executing a fork function; the daemon process and the business process realize information interaction through the shared area, namely, the business process runs and processes the business and updates the variable state value of the shared area, and the daemon process scans the variable state value of the shared area in real time.
The daemon process monitors the operation of the business process in real time and acquires the state value of the business process;
the daemon process sends the state value to a monitoring system;
the monitoring system determines the state of the business process based on the state value.
Specifically, the monitoring system determining the state of the business process based on the state value includes:
comparing the state value with a preset threshold value;
outputting a state abnormality prompt when the state value exceeds a threshold value;
and outputting a state normal prompt when the state value does not exceed the threshold value.
In this embodiment, a process cluster is formed based on a plurality of service processes, and the process cluster has a distributed scheduler responsible for distributed call management of the entire process cluster; when each service is started, the corresponding start daemon process actively or passively informs the daemon process to update the running state of the process when the original service process processes each batch of service, thereby achieving the monitoring effect, and the method specifically comprises the following steps:
step one: the monitored business process is started and initialized;
step two: the daemon process is started, and a sharing area is set, so that information interaction between subsequent processes is facilitated;
step three: the business process starts to circularly process business logic, and the variable state value of the shared area is updated in each batch of processing;
step four: the daemon process scans the variable state value of the shared area in real time and notifies the monitoring system in real time;
step five: the monitoring system receives and records the process state information sent by the daemon process;
step six: the monitoring system monitors and alarms according to the recorded information;
step seven: after the business process finishes processing the business task, changing the variable state value of the shared area to be finished, and if the business process exits, the daemon synchronously exits.
According to the method, the daemon process is introduced in the batch process management, the daemon process and the business process are used for carrying out process communication, and then the process state is transmitted to the monitoring system to realize the monitoring of the process dead condition, so that maintenance personnel can monitor the actual business processing condition of the process, the subsequent maintenance and state analysis of the process are facilitated, and the occurrence probability of batch process abnormality is reduced.
The invention also provides a system for monitoring the dead of the background batch progress, which comprises the following steps:
the configuration module is used for correspondingly configuring a daemon for each business process, and the daemon and the business process interact with each other in information;
the monitoring module is used for monitoring the operation of the business process in real time by the daemon process and acquiring the state value of the business process;
the sending module is used for sending the state value to the monitoring system by the daemon process;
and the determining module is used for determining the state of the business process based on the state value by the monitoring system.
The invention also provides an apparatus comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program which, when executed by the processing unit, causes the processing unit to perform the method described above.
The present invention also provides a storage medium storing a computer program executable by an electronic device, which when run on the electronic device causes the electronic device to perform the above-described method.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A method for monitoring the dead of a background batch process is characterized by comprising the following steps:
configuring a daemon corresponding to each business process, wherein information interaction is carried out between the daemon and the business process;
the daemon process monitors the operation of the business process in real time and acquires the state value of the business process;
the daemon process sends the state value to a monitoring system;
the monitoring system determines a state of the business process based on the state value.
2. The method for monitoring background batch process dead of claim 1, wherein the daemon for monitoring the running state of the business process is configured by executing a fork function.
3. The method for monitoring the dead of the background batch process according to claim 2, wherein the daemon and the business process realize information interaction through a shared area.
4. A method of monitoring background batch process dead according to claim 3, wherein the business process runs a processing business and updates the shared zone variable state value, and the daemon scans the shared zone variable state value in real time.
5. The method of claim 4, wherein the monitoring system determining the status of the business process based on the status value comprises:
comparing the state value with a preset threshold value;
outputting a state abnormality prompt when the state value exceeds the threshold value;
and outputting a state normal prompt when the state value does not exceed the threshold value.
6. A system for monitoring the dead of a background batch process, comprising:
the configuration module is used for correspondingly configuring a daemon for each business process, and the daemon and the business process interact with each other in information;
the monitoring module is used for monitoring the operation of the business process in real time by the daemon process and acquiring the state value of the business process;
the sending module is used for sending the state value to a monitoring system by the daemon process;
and the determining module is used for determining the state of the business process based on the state value by the monitoring system.
7. An apparatus comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program which, when executed by the processing unit, causes the processing unit to perform the method of any of claims 1 to 5.
8. A storage medium storing a computer program executable by an electronic device, which when run on the electronic device causes the electronic device to perform the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311116951.0A CN117312072A (en) | 2023-08-31 | 2023-08-31 | Method, system, equipment and storage medium for monitoring background batch process dead |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311116951.0A CN117312072A (en) | 2023-08-31 | 2023-08-31 | Method, system, equipment and storage medium for monitoring background batch process dead |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117312072A true CN117312072A (en) | 2023-12-29 |
Family
ID=89254412
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311116951.0A Pending CN117312072A (en) | 2023-08-31 | 2023-08-31 | Method, system, equipment and storage medium for monitoring background batch process dead |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117312072A (en) |
-
2023
- 2023-08-31 CN CN202311116951.0A patent/CN117312072A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107515796B (en) | Equipment abnormity monitoring processing method and device | |
CN111049705B (en) | Method and device for monitoring distributed storage system | |
CN108710544B (en) | Process monitoring method of database system and rail transit comprehensive monitoring system | |
CN111897671A (en) | Failure recovery method, computer device, and storage medium | |
CN111355610A (en) | Exception handling method and device based on edge network | |
CN110231998B (en) | Detection method and device for distributed timing task and storage medium | |
CN110618864A (en) | Interrupt task recovery method and device | |
CN113434327A (en) | Fault processing system, method, equipment and storage medium | |
CN114884796B (en) | Fault processing method and device, electronic equipment and storage medium | |
CN110311802A (en) | Network operation method, device, electronic equipment and storage medium | |
CN111010318A (en) | Method and system for discovering loss of connection of terminal equipment of Internet of things and equipment shadow server | |
CN113760634A (en) | Data processing method and device | |
CN116055285A (en) | Process management method and system of industrial control system | |
CN102761432B (en) | CGI method for supervising and device thereof and system | |
EP3905591A1 (en) | Server abnormality processing method and management device | |
CN109995554A (en) | The control method and cloud dispatch control device of multi-stage data center active-standby switch | |
CN117312072A (en) | Method, system, equipment and storage medium for monitoring background batch process dead | |
CN108307081B (en) | Harassment data batch processing method and device | |
CN113808725A (en) | Equipment early warning system and method | |
CN112506920A (en) | Information unified collecting and monitoring method and system for multiple financial systems | |
CN113342623B (en) | Visual early warning system and method based on dynamic threshold method | |
US11862007B2 (en) | Method for automatically analyzing and filtering out redundant alarms in the fault management system of radio transceiver stations | |
CN109743230A (en) | Monitoring data transmission system based on statistical information | |
CN117014904A (en) | Upgrade state and availability determination method and device, electronic equipment and medium | |
CN113852198B (en) | Remote motor monitoring system of transformer substation |
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 |