CN105095046B - The method and device of Mission Monitor - Google Patents

The method and device of Mission Monitor Download PDF

Info

Publication number
CN105095046B
CN105095046B CN201510412127.9A CN201510412127A CN105095046B CN 105095046 B CN105095046 B CN 105095046B CN 201510412127 A CN201510412127 A CN 201510412127A CN 105095046 B CN105095046 B CN 105095046B
Authority
CN
China
Prior art keywords
task
monitoring process
heartbeat
monitoring
module
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
CN201510412127.9A
Other languages
Chinese (zh)
Other versions
CN105095046A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510412127.9A priority Critical patent/CN105095046B/en
Publication of CN105095046A publication Critical patent/CN105095046A/en
Application granted granted Critical
Publication of CN105095046B publication Critical patent/CN105095046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses the method and devices of Mission Monitor, which comprises starting monitoring process monitors the heartbeat of task using monitoring process;When monitoring process does not listen to the heartbeat of task, reboot operation is carried out to the task;After the completion of restarting to task, continue the heartbeat for monitoring the task using monitoring process.The present invention solves the problems, such as that task switches overlong time used, achieves task run when something goes wrong, reduces recovery tasks and runs duration used, improves the beneficial effect of user experience.

Description

The method and device of Mission Monitor
Technical field
The present invention relates to the communication technologys, and in particular to a kind of method and device of Mission Monitor.
Background technique
In the prior art, task operating in equipment is monitored, when task operating, which goes wrong, to be unable to operate normally, After a fixed response time, task in current device is switched in alternate device and is continued.Under normal conditions, monitoring need through Task in long period discovering device is crossed to break down.Later, task is completed in the switching of equipment room by the long period again.
Therefore, the problem of current task switches overlong time used out in the prior art, and then task run is caused to be asked When topic, the time that can not provide normal service is longer, reduces user experience.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the method and device of the Mission Monitor of problem.
According to one aspect of the present invention, a kind of method of Mission Monitor is provided, which comprises
Start monitoring process, the heartbeat of task is monitored using monitoring process;
When monitoring process does not listen to the heartbeat of task, reboot operation is carried out to the task;
After the completion of restarting to task, continue the heartbeat for monitoring the task using monitoring process.
Optionally, the starting monitoring process is monitored the heartbeat of task using monitoring process, specifically included:
It is periodically sent and is requested to task using monitoring process, obtain the heartbeat that the task is replied according to the request;
After monitoring process receives the heartbeat of the task, determine that the task operating is normal.
Optionally, when the heartbeat for not listening to task when monitoring process, reboot operation, tool are carried out to the task Body includes:
When monitoring process is after sending request to task, when being not received by the heartbeat of task, the task generation is determined Failure;
Reboot operation is carried out to breaking down for task.
Optionally, described pair of breaking down for task carries out reboot operation, specifically includes:
It indicates monitoring process starting monitoring subprocess, the sending failure of the task is carried out restarting behaviour using monitoring subprocess Make.
Optionally, the method also includes:
After monitoring subprocess is completed to the reboot operation for the sending failure of the task, indicate that the monitoring subprocess exits fortune Row.
Optionally, it is described task is restarted after the completion of, continue the heartbeat for monitoring the task using monitoring process, it is specific to wrap It includes:
After monitoring process detects that monitoring subprocess is out of service, the determining reboot operation to breaking down for task is Through completing, the heartbeat of the task after restarting is monitored using monitoring process.
Optionally, start monitoring process, monitor the heart that the task is sent according to task respective frequencies using monitoring process It jumps;
The task respective frequencies are directly proportional to the urgency level of the task.
Optionally, described to monitor the heartbeat that the task is sent according to task respective frequencies using monitoring process, it is specific to wrap It includes:
It is periodically sent and is requested to the task by task respective frequencies using monitoring process, obtain the task according to Request the heartbeat replied.
According to another aspect of the present invention, the device of Mission Monitor is provided, described device includes: to monitor module and restart Module;
It is described to restart module, it is suitable for carrying out reboot operation to the task;
The monitoring module is suitable for starting monitoring process, the heartbeat of task is monitored using monitoring process;When monitoring process does not have When having the heartbeat for the task of listening to, module is restarted described in instruction, reboot operation is carried out to the task;When restarting completion to task Afterwards, continue to monitor the heartbeat of the task using monitoring process.
Optionally, module is monitored, is particularly adapted to periodically send to task using monitoring process and request, obtain the task root The heartbeat replied according to the request;After monitoring process receives the heartbeat of the task, determine that the task operating is normal.
Optionally, monitor module, be particularly adapted to when monitoring process to task send request after, be not received by task When heartbeat, determine that the task breaks down;Module is restarted described in instruction, and reboot operation is carried out to breaking down for task.
Optionally, restart module, be particularly adapted to indicate monitoring process starting monitoring subprocess, using monitoring subprocess to hair The task of failure is sent to carry out reboot operation.
Optionally, restart module, be further adapted for after monitoring subprocess is completed to the reboot operation for the sending failure of the task, refer to Show that the monitoring subprocess is out of service.
Optionally, monitoring module is particularly adapted to determine after monitoring process detects that monitoring subprocess is out of service to hair The reboot operation of the task of raw failure has been completed, and the heartbeat of the task after restarting is monitored using monitoring process.
Optionally, the monitoring module is particularly adapted to start monitoring process, using monitoring process according to task respective frequencies Monitor the heartbeat that the task is sent;
The task respective frequencies are directly proportional to the urgency level of the task.
Optionally, the monitoring module is particularly adapted to using monitoring process by task respective frequencies periodically to the task Request is sent, the heartbeat that the task is replied according to the request is obtained.
According to the technique and scheme of the present invention, start monitoring process, the heartbeat of task is monitored, when monitoring process does not listen to When the heartbeat of task, reboot operation is carried out to task, after the completion of restarting to task, continues the heart of monitoring task using monitoring process It jumps;It so avoids task from switching in equipment room, so that task run is when something goes wrong, directly can carry out weight in local device It opens, thus solves the problems, such as that task switches overlong time used, achieve task run when something goes wrong, reduce recovery tasks Duration used is run, the beneficial effect of user experience is improved.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of the method for Mission Monitor according to an embodiment of the invention;
Fig. 2 shows the flow charts of the method for monitoring task heartbeat according to an embodiment of the invention;
Fig. 3 shows the flow chart of the method according to an embodiment of the invention for restarting task;
Fig. 4 shows the flow chart of the method for Mission Monitor according to an embodiment of the invention;And
Fig. 5 shows the structure chart of the device of the Mission Monitor of embodiment according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
As shown in Figure 1, showing the flow chart of the method for Mission Monitor according to an embodiment of the invention.This method can For various servers, for example, in network service provider various business services device.As shown in Figure 1, this method includes as follows Step S110-S130.
In step s 110, start monitoring process, the heartbeat of task is monitored using monitoring process.
For example, task can open a heartbeat (Heart Beat) interface at runtime, to provide for keep-alive Heartbeat.Process of the starting one for task in monitoring device, i.e. monitoring process in a device, to monitor the heartbeat of task.Monitoring Process can monitor the heartbeat of task by the heart beat interface of task.In addition, monitoring process can be simultaneously to one in equipment Or multiple tasks are monitored.
In one embodiment, the starting monitoring process is monitored the heartbeat of task using monitoring process, specifically includes: opening Dynamic monitoring process monitors the heartbeat that task is sent according to task respective frequencies using monitoring process.The task respective frequencies with The urgency level of the task is directly proportional.
It is for example, described to monitor the heartbeat that task is sent according to task respective frequencies using monitoring process, it may include: make It is periodically sent and is requested to task by task respective frequencies with monitoring process, obtain the heartbeat that task is replied according to request.
It is described to monitor the heartbeat that the task is sent according to task respective frequencies using monitoring process, it may also comprise: using Monitoring process receives task and presses the heartbeat that respective frequencies are sent.
In this way, monitoring process presses the heartbeat of the corresponding frequency monitoring task of each task.Monitoring process be can be by task Respective frequencies send to task and request, and obtain the heartbeat that task is replied;Task be can also be by respective frequencies active transmission heartbeat, prison Control process receives the heartbeat.It is different according to the emergency of task, different respective frequencies are configured for task, so that corresponding to not It can be monitored by different frequency with task, that is, the emergency for corresponding to task is different, supervises to task by different frequency Control.
In one embodiment, as shown in Fig. 2, the starting monitoring process, the heartbeat of task, tool are monitored using monitoring process Body includes step S112 and step S114.
It in step S112, is periodically sent and is requested to task using monitoring process, obtain the heart that task is replied according to request It jumps.
In step S114, after monitoring process receives the heartbeat of task, determine that task operating is normal.
For example, monitoring process can be used to ask by the heart beat interface transmission of predetermined period multiple tasks into equipment It asks, for example, sending heartbeat to the heart beat interface of multiple tasks using broadcast mode.Monitoring process receives task heart beat interface and returns Heartbeat, heart beat interface return heartbeat in have task identification.After monitoring process receives heartbeat, pass through task mark in heartbeat Know, to determine task corresponding to the heartbeat received.Based on the received the case where heartbeat, judge in equipment whether is each task Normal operation.If normally receiving the heartbeat of task, determine that the task run is normal.If do not connect in preset duration The heartbeat of task is received, then determines that the task run breaks down.
In the step s 120, when monitoring process does not listen to the heartbeat of task, reboot operation is carried out to task.
For example, when monitoring process does not listen to the heartbeat of task, determine that task run breaks down, it is right at this time The task of failure carries out reboot operation.
In one embodiment, as shown in figure 3, when the heartbeat for not listening to task when monitoring process, to task into Row reboot operation, specifically comprises the following steps.
In step S122, when monitoring process is after sending request to task, when being not received by the heartbeat of task, determination Task breaks down.
In step S124, reboot operation is carried out to the sending failure of the task.
Further, in step S124, instruction monitoring process starting monitoring subprocess, using monitoring subprocess to transmission The task of failure carries out reboot operation.
In addition, the method also includes: after monitoring reboot operation of the subprocess completion to the sending failure of the task, instruction It is out of service to monitor subprocess.
In the present embodiment, monitoring process starts another monitoring subprocess and restarts to breaking down for task, in this way, When restarting to breaking down for task, monitoring of the monitoring process to other tasks is not influenced, realize monitoring process to setting It is monitored while standby middle multiple tasks.
In step s 130, after the completion of restarting to task, continue the heartbeat of monitoring task using monitoring process.
In one embodiment, it is described task is restarted after the completion of, continue the heartbeat of monitoring task using monitoring process, specifically It include: after monitoring process detects that monitoring subprocess is out of service, the determining reboot operation to breaking down for task is It completes, the heartbeat of the task after restarting is monitored using monitoring process.
In the present embodiment, by detecting the operating status of monitoring subprocess, to determine to breaking down for task Whether reboot operation has been completed, so that the detection restarted to task is more convenient efficiently, guarantees after task is restarted, Neng Gouji When task is monitored.
Using technical solution in the present embodiment, avoids task and switch in equipment room, so that task run is when something goes wrong, It can directly be restarted in local device, thus solve the problems, such as that task switches overlong time used, achieve task fortune Row when something goes wrong, reduces recovery tasks and runs duration used, improve the beneficial effect of user experience.
As shown in figure 4, showing the flow chart of the method for Mission Monitor according to an embodiment of the invention.This method can For various servers, for example, in network service provider various business services device.As shown in figure 4, this method includes as follows Step S402-S412.
In step S402, start monitoring process, is periodically sent and requested to task using monitoring process, obtain the heart of task It jumps.
In step s 404, after monitoring process receives the heartbeat of task, determine that task operating is normal.
In step S406, when monitoring process is after sending request to task, when being not received by the heartbeat of task, determination Task breaks down.
In step S408, instruction monitoring process starting monitoring subprocess is appointed using monitoring subprocess to failure is sent Business carries out reboot operation.
In step S410, after monitoring reboot operation of the subprocess completion to the sending failure of the task, instruction monitoring Process is out of service.
In step S412, after monitoring process detects that monitoring subprocess is out of service, determines and appoint to what is broken down The reboot operation of business has been completed, and the heartbeat of the task after restarting is monitored using monitoring process.
Using technical solution in the present embodiment, avoids task and switch in equipment room, so that task run is when something goes wrong, It can directly be restarted in local device, thus solve the problems, such as that task switches overlong time used, achieve task fortune Row when something goes wrong, reduces recovery tasks and runs duration used, improve the beneficial effect of user experience.
It above are only the exemplary explanation of the method for Mission Monitor of the invention, the invention is not limited thereto.It is all in the present invention Spirit or principle within any modification, equivalent replacement, improvement and so on, be included within the scope of protection of the present invention.
As shown in figure 5, showing the structure chart of the device of Mission Monitor according to an embodiment of the invention.The device can For various servers, for example, in network service provider various business services device.As shown in figure 5, the device includes monitoring Module 510 and restart module 520.
Restart module 520, is suitable for carrying out reboot operation to task;
Module 510 is monitored, is suitable for starting monitoring process, the heartbeat of task is monitored using monitoring process;When monitoring process does not have When having the heartbeat for the task of listening to, instruction restarts module 520 and carries out reboot operation to task;After the completion of restarting to task, make Continue to monitor the heartbeat of the task with monitoring process.
For example, task can open a heartbeat (Heart Beat) interface at runtime, to provide for keep-alive Heartbeat.Process of the starting of module 510 one for task in monitoring device, i.e. monitoring process are monitored, to monitor the heartbeat of task.Prison Control process can monitor the heartbeat of task by the heart beat interface of task.In addition, monitoring process can be simultaneously in equipment one A or multiple tasks are monitored.
Monitoring module 510 can be used monitoring process and ask by the heart beat interface transmission of predetermined period multiple tasks into equipment It asks, for example, sending heartbeat to the heart beat interface of multiple tasks using broadcast mode.Monitoring process receives task heart beat interface and returns Heartbeat, heart beat interface return heartbeat in have task identification.After monitoring process receives heartbeat, pass through task mark in heartbeat Know, to determine task corresponding to the heartbeat received.Based on the received the case where heartbeat, judge in equipment whether is each task Normal operation.If normally receiving the heartbeat of task, determine that the task run is normal.If do not connect in preset duration The heartbeat of task is received, then determines that the task run breaks down.
When monitoring process does not listen to the heartbeat of task, determines that task run breaks down, monitor module 510 at this time Indicate that the restarting 520 pairs of module failures of the task carries out reboot operation.
In one embodiment, module 510 is monitored, is particularly adapted to periodically send to task using monitoring process and request, obtain The heartbeat that task is replied according to request;After monitoring process receives the heartbeat of the task, determine that task operating is normal.
In one embodiment, monitor module 510, be particularly adapted to when monitoring process to task send request after, do not connect When receiving the heartbeat of task, the task of determination breaks down;Instruction restarts module 520 and carries out restarting behaviour to breaking down for task Make.
In one embodiment, restart module 520, be particularly adapted to indicate monitoring process starting monitoring subprocess, use monitoring Subprocess carries out reboot operation to the sending failure of the task.
In one embodiment, restart module 520, be further adapted for completing restarting to the sending failure of the task in monitoring subprocess After operation, instruction monitoring subprocess is out of service.
In one embodiment, monitoring module 510 is particularly adapted to after monitoring process detects that monitoring subprocess is out of service, The reboot operation of breaking down for task has been completed in determination, and the heartbeat of the task after restarting is monitored using monitoring process.
In one embodiment, module 510 is monitored, is particularly adapted to start monitoring process, using monitoring process according to task pair Frequency is answered to monitor the heartbeat that the task is sent.Task respective frequencies are directly proportional to the urgency level of task.
Further, module 510 is monitored, is particularly adapted to using monitoring process by task respective frequencies periodically to the task Request is sent, the heartbeat that the task is replied according to the request is obtained.
Module 510 is monitored, is also suitable for sending by task respective frequencies reception task by respective frequencies using monitoring process Heartbeat.
In this way, monitoring the heartbeat that module 510 presses the corresponding frequency monitoring task of each task using monitoring process.It can be with It is to monitor module 510 to send request to task by task respective frequencies using monitoring process, obtains the heartbeat that task is replied;? But task presses the heartbeat of respective frequencies active transmission, module 510, which is monitored, using monitoring process receives the heartbeat.According to task Emergency it is different, configure different respective frequencies for task, corresponding different task supervised by different frequency Control, that is, the emergency for corresponding to task is different, is monitored to task by different frequency.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Using technical solution in the present embodiment, avoids task and switch in equipment room, so that task run is when something goes wrong, It can directly be restarted in local device, thus solve the problems, such as that task switches overlong time used, achieve task fortune Row when something goes wrong, reduces recovery tasks and runs duration used, improve the beneficial effect of user experience.
The invention also includes following technical solutions:
A1, a kind of method of Mission Monitor, which comprises
Start monitoring process, the heartbeat of task is monitored using monitoring process;
When monitoring process does not listen to the heartbeat of task, reboot operation is carried out to the task;
After the completion of restarting to task, continue the heartbeat for monitoring the task using monitoring process.
A2, method according to a1, wherein the starting monitoring process monitors the heartbeat of task using monitoring process, It specifically includes:
It is periodically sent and is requested to task using monitoring process, obtain the heartbeat that the task is replied according to the request;
After monitoring process receives the heartbeat of the task, determine that the task operating is normal.
A3, the method according to A2, wherein when the heartbeat for not listening to task when monitoring process, to described Task carries out reboot operation, specifically includes:
When monitoring process is after sending request to task, when being not received by the heartbeat of task, the task generation is determined Failure;
Reboot operation is carried out to breaking down for task.
A4, method according to a3, wherein described pair of breaking down for task carries out reboot operation, specifically includes:
It indicates monitoring process starting monitoring subprocess, the sending failure of the task is carried out restarting behaviour using monitoring subprocess Make.
A5, method according to a4, wherein the method also includes:
After monitoring subprocess is completed to the reboot operation for the sending failure of the task, indicate that the monitoring subprocess exits fortune Row.
A6, method according to a5, wherein it is described task is restarted after the completion of, using monitoring process continue monitor institute The heartbeat for stating task, specifically includes:
After monitoring process detects that monitoring subprocess is out of service, the determining reboot operation to breaking down for task is Through completing, the heartbeat of the task after restarting is monitored using monitoring process.
A7, method according to a1, wherein the starting monitoring process monitors the heartbeat of task using monitoring process, It specifically includes:
Start monitoring process, monitors the heartbeat that the task is sent according to task respective frequencies using monitoring process;
The task respective frequencies are directly proportional to the urgency level of the task.
A8, the method according to A7, wherein described to monitor the task according to task respective frequencies using monitoring process The heartbeat of transmission, specifically includes:
It is periodically sent and is requested to the task by task respective frequencies using monitoring process, obtain the task according to Request the heartbeat replied.
B9, a kind of device of Mission Monitor, described device include: to monitor module and restart module;
It is described to restart module, it is suitable for carrying out reboot operation to the task;
The monitoring module is suitable for starting monitoring process, the heartbeat of task is monitored using monitoring process;When monitoring process does not have When having the heartbeat for the task of listening to, module is restarted described in instruction, reboot operation is carried out to the task;When restarting completion to task Afterwards, continue to monitor the heartbeat of the task using monitoring process.
B10, the device according to B9, wherein the monitoring module is particularly adapted to using monitoring process periodically to task Request is sent, the heartbeat that the task is replied according to the request is obtained;After monitoring process receives the heartbeat of the task, Determine that the task operating is normal.
B11, device according to b10, wherein the monitoring module is particularly adapted to send out when monitoring process to task After sending request, when being not received by the heartbeat of task, determine that the task breaks down;Module is restarted described in instruction to generation event The task of barrier carries out reboot operation.
B12, the device according to B11, wherein it is described to restart module, it is particularly adapted to indicate monitoring process starting monitoring Subprocess carries out reboot operation to the sending failure of the task using monitoring subprocess.
B13, device according to b12, wherein it is described to restart module, it is further adapted for completing in monitoring subprocess to transmission After the reboot operation of the task of failure, indicate that the monitoring subprocess is out of service.
B14, device according to b13, wherein the monitoring module is particularly adapted to detect monitoring when monitoring process After process is out of service, the reboot operation of breaking down for task has been completed in determination, after being restarted using monitoring process monitoring Task heartbeat.
B15, the device according to B9, wherein the monitoring module is particularly adapted to start monitoring process, uses monitoring Process monitors the heartbeat that the task is sent according to task respective frequencies;
The task respective frequencies are directly proportional to the urgency level of the task.
B16, the device according to B15, wherein the monitoring module is particularly adapted to using monitoring process by task pair It answers frequency periodically to send to the task to request, obtains the heartbeat that the task is replied according to the request.
It should be understood that
Algorithm and display be not inherently related to any certain computer, virtual bench or other equipment provided herein. Various fexible units can also be used together with teachings based herein.As described above, it constructs required by this kind of device Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice It is some in the equipment of microprocessor or digital signal processor (DSP) to realize Mission Monitor according to an embodiment of the present invention Or some or all functions of whole components.The present invention is also implemented as one for executing method as described herein Partly or completely device or device program (for example, computer program and computer program product).Such realization is originally The program of invention can store on a computer-readable medium, or may be in the form of one or more signals.In this way Signal can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or be provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (12)

1. a kind of method of Mission Monitor, which comprises
Start monitoring process, the heartbeat of task is monitored using monitoring process;
When monitoring process does not listen to the heartbeat of task, reboot operation is carried out to the task;
After the completion of restarting to task, continue the heartbeat for monitoring the task using monitoring process;
Wherein, the starting monitoring process is monitored the heartbeat of task using monitoring process, specifically included:
It is periodically sent and is requested to the heart beat interface of each task using broadcast mode using monitoring process, obtain each task according to Request the heartbeat replied;Task identification is had in the heartbeat that the heart beat interface returns;
Monitoring process is by the task identification, to determine task corresponding to the heartbeat received;
After monitoring process receives the heartbeat of task, determine that the task operating is normal;
Wherein, the starting monitoring process monitors the heartbeat of task using monitoring process, specifically further include:
Start monitoring process, monitors the heartbeat that the task is sent according to task respective frequencies using monitoring process;
The task respective frequencies are directly proportional to the urgency level of the task, allow corresponding different task by different frequency It is monitored.
2. according to the method described in claim 1, wherein, when the heartbeat for not listening to task when monitoring process, to institute It states task and carries out reboot operation, specifically include:
When monitoring process to task send request after, when being not received by the heartbeat of task, determine that the task breaks down;
Reboot operation is carried out to breaking down for task.
3. being specifically included according to the method described in claim 2, wherein, described pair of breaking down for task carries out reboot operation:
It indicates monitoring process starting monitoring subprocess, reboot operation is carried out to the sending failure of the task using monitoring subprocess.
4. according to the method described in claim 3, wherein, the method also includes:
After monitoring subprocess is completed to the reboot operation for the sending failure of the task, indicate that the monitoring subprocess is out of service.
5. according to the method described in claim 4, wherein, it is described task is restarted after the completion of, continue to monitor using monitoring process The heartbeat of the task, specifically includes:
After monitoring process detects that monitoring subprocess is out of service, determination is complete to the reboot operation of breaking down for task At the heartbeat of the task after being restarted using monitoring process monitoring.
6. according to the method described in claim 1, wherein, the use monitoring process monitors described appoint according to task respective frequencies The heartbeat that business is sent, specifically includes:
It is periodically sent and is requested to the task by task respective frequencies using monitoring process, obtain the task according to the request The heartbeat of reply.
7. a kind of device of Mission Monitor, described device includes: to monitor module and restart module;
It is described to restart module, it is suitable for carrying out reboot operation to the task;
The monitoring module is suitable for starting monitoring process, the heartbeat of task is monitored using monitoring process;When monitoring process is not supervised When hearing the heartbeat of task, module is restarted described in instruction, reboot operation is carried out to the task;After the completion of restarting to task, make Continue to monitor the heartbeat of the task with monitoring process;
The monitoring module is particularly adapted to periodically ask to the transmission of the heart beat interface of each task using monitoring process using broadcast mode It asks, obtains the heartbeat that each task is replied according to the request;Task identification is had in the heartbeat that the heart beat interface returns;Monitoring Process is by the task identification, to determine task corresponding to the heartbeat received;When monitoring process receives the task Heartbeat after, determine that the task operating is normal;
The monitoring module is specifically further adapted for starting monitoring process, using monitoring process according to the monitoring of task respective frequencies The heartbeat that task is sent;The task respective frequencies are directly proportional to the urgency level of the task, so that corresponding different task can To be monitored by different frequency.
8. device according to claim 7, wherein the monitoring module is particularly adapted to send out when monitoring process to task After sending request, when being not received by the heartbeat of task, determine that the task breaks down;Module is restarted described in instruction to generation event The task of barrier carries out reboot operation.
9. device according to claim 8, wherein it is described to restart module, it is particularly adapted to indicate monitoring process starting monitoring Subprocess carries out reboot operation to the sending failure of the task using monitoring subprocess.
10. device according to claim 9, wherein it is described to restart module, it is further adapted for completing in monitoring subprocess to transmission After the reboot operation of the task of failure, indicate that the monitoring subprocess is out of service.
11. device according to claim 10, wherein the monitoring module is particularly adapted to detect monitoring when monitoring process After subprocess is out of service, the reboot operation of breaking down for task has been completed in determination, is restarted using monitoring process monitoring The heartbeat of task afterwards.
12. device according to claim 7, wherein the monitoring module is particularly adapted to using monitoring process by task pair It answers frequency periodically to send to the task to request, obtains the heartbeat that the task is replied according to the request.
CN201510412127.9A 2015-07-14 2015-07-14 The method and device of Mission Monitor Active CN105095046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510412127.9A CN105095046B (en) 2015-07-14 2015-07-14 The method and device of Mission Monitor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510412127.9A CN105095046B (en) 2015-07-14 2015-07-14 The method and device of Mission Monitor

Publications (2)

Publication Number Publication Date
CN105095046A CN105095046A (en) 2015-11-25
CN105095046B true CN105095046B (en) 2019-03-05

Family

ID=54575542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510412127.9A Active CN105095046B (en) 2015-07-14 2015-07-14 The method and device of Mission Monitor

Country Status (1)

Country Link
CN (1) CN105095046B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553760B (en) * 2015-12-11 2019-03-22 中国科学院信息工程研究所 A kind of software module fault handling method and system based on heartbeat
CN108427616B (en) * 2017-02-14 2020-12-01 腾讯科技(深圳)有限公司 Background program monitoring method and monitoring device
CN108694093A (en) * 2017-04-06 2018-10-23 迈普通信技术股份有限公司 Process exception monitoring method and device
CN107729213B (en) * 2017-10-11 2022-04-26 杭州迪普科技股份有限公司 Background task monitoring method and device
CN108874618B (en) * 2018-05-04 2022-03-18 平安科技(深圳)有限公司 Cognos process monitoring method and device, computer equipment and storage medium
CN109254894B (en) * 2018-08-20 2022-03-11 中科曙光信息产业成都有限公司 Device and method for monitoring heartbeat of chip

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6898733B2 (en) * 2001-10-31 2005-05-24 Hewlett-Packard Development Company, L.P. Process activity and error monitoring system and method
CN101464811B (en) * 2008-12-29 2012-07-04 艾默生网络能源有限公司 Multitask monitoring management system
US8549523B2 (en) * 2009-11-23 2013-10-01 International Business Machines Corporation Performing runtime analysis and control of folding identified threads by assuming context of another thread and executing in lieu of another thread folding tool
CN103246589B (en) * 2012-02-03 2015-07-15 京信通信系统(中国)有限公司 Multithread monitoring method and device
CN104615497B (en) * 2015-02-13 2018-09-25 广州华多网络科技有限公司 A kind of processing method and processing device of thread suspension

Also Published As

Publication number Publication date
CN105095046A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105095046B (en) The method and device of Mission Monitor
CN108430116B (en) Disconnected network reconnection method, medium, device and computing equipment
JP2021521528A (en) Task processing method, equipment and system
KR101225374B1 (en) Apparatus and method for device management in mobile communication terminal
CN109245966A (en) The monitoring method and device of the service state of cloud platform
EP3865998A1 (en) Cluster management method, apparatus and system
CN108243222A (en) Server network architecture method and device
EP3348044B1 (en) Backup communications scheme in computer networks
CN106161086B (en) The control method and device that master control borad is restarted
CN103001822B (en) The processing method of Network Abnormal and device
JP5558279B2 (en) MONITORING / CONTROL SYSTEM, MONITORING / CONTROL DEVICE USED FOR SAME, AND MONITORING / CONTROL METHOD
CN105373474A (en) Business system-oriented test method and device
JP2012181131A (en) Power storage management device
CN115509719A (en) Automatic flow execution method and device
CN112073322B (en) Discovery method and device of network tester
JP2017517981A (en) Method for switching monitoring frequency channel number by access terminal and access terminal
JP2015082131A (en) Monitoring system, monitoring method, monitoring program, and monitoring device
CN110365538B (en) Port state control method, device, equipment and computer readable storage medium
CN109947630B (en) Fault notification method, device and storage medium
CN116260747A (en) Monitoring method and device of terminal test equipment and electronic equipment
CN113453376A (en) Network configuration method, related device, equipment and storage medium
CN108234215B (en) Gateway creating method and device, computer equipment and storage medium
JP5643453B1 (en) Communication path management apparatus and program
CN111193636A (en) Method and device for testing availability of single machine
CN108234635A (en) The method, apparatus and communication system to communicate with Intelligent target equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.