CN110297741A - A kind of background task monitoring method and device - Google Patents

A kind of background task monitoring method and device Download PDF

Info

Publication number
CN110297741A
CN110297741A CN201910547489.7A CN201910547489A CN110297741A CN 110297741 A CN110297741 A CN 110297741A CN 201910547489 A CN201910547489 A CN 201910547489A CN 110297741 A CN110297741 A CN 110297741A
Authority
CN
China
Prior art keywords
background task
task
configuration file
virtual system
mark
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.)
Granted
Application number
CN201910547489.7A
Other languages
Chinese (zh)
Other versions
CN110297741B (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.)
Hangzhou Depp Information Technology Co Ltd
Original Assignee
Hangzhou Depp Information Technology 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 Hangzhou Depp Information Technology Co Ltd filed Critical Hangzhou Depp Information Technology Co Ltd
Priority to CN201910547489.7A priority Critical patent/CN110297741B/en
Publication of CN110297741A publication Critical patent/CN110297741A/en
Application granted granted Critical
Publication of CN110297741B publication Critical patent/CN110297741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/301Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is a virtual computing platform, e.g. logically partitioned systems
    • 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

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a kind of background task monitoring method and device.A kind of background task monitoring method, comprising: for any background task in background task monitoring inventory, judge that the configuration file of the background task identifies whether that there are preset characters;If there are preset characters for the configuration file mark of the background task, the background task is added to virtual system task-set, and identified according to the configuration file of the corresponding virtual system mark of the background task and the background task, form the target configuration file mark of the background task;For any background task in virtual system task-set, in the corresponding virtual system of the background task, judges whether there is target configuration file and identify corresponding configuration file;It judges whether there is and the consistent background task of the background task;Target configuration file identifies corresponding configuration file if it does not exist, or there is no with the consistent background task of the background task, start the background task according to the starting strategy of the background task.

Description

A kind of background task monitoring method and device
Technical field
This application involves field of computer technology more particularly to a kind of background task monitoring method and devices.
Background technique
In existing operating system, multiple background tasks can be usually run.Background task does not carry out usually with user Interaction, i.e., background task is not necessarily present in the visual interface of user, and only provides service on backstage, and the service specifically provided can To be periodical monitoring, timed reminding, Service-Port monitoring, be periodically detected mainboard and the excessively high early warning of cpu temperature etc..Rear In platform task actual moving process, background task may be due to program mal, unstable, network message processing mistake of system etc. one Serial reason is out of service.Since background task does not have corresponding controlling terminal, user usually can not have found background task Terminate, it is therefore desirable to take some safeguard measures, it is ensured that background task can restart after terminating operation, continue to system Original service is provided.
In the prior art, a background task monitoring inventory, the corresponding background task of every row in the inventory, every row are generated In may include the background task title, starting strategy and store task identification ID file (PID file) path letter Breath.Wherein, itself task identification ID is written in corresponding PID file in initial start for each background task.Subsequently through Periodically traversal background task inventory, for every a line, the background task run in inspection system whether there is task identification ID, It is consistent with the task identification ID that PID document memory in the row stores up, and if it exists, then to illustrate the task still in operating status, if not In the presence of then illustrating that the task is out of service, start the background task according to the task corresponding starting strategy.
Currently in order to the utilization system resource of bigizationner, system is divided into using virtualization technology multiple independent virtual System.Due to the characteristic of virtual system, background task monitoring method has been no longer desirable for virtual system in the prior art, anxious at present A kind of background task suitable for virtual system is needed to monitor solution.
Summary of the invention
In view of this, the application provides a kind of background task monitoring method and device.
Specifically, the application is achieved by the following technical solution:
In a first aspect, the application provides a kind of background task monitoring method, it is applied to the network equipment, in the network equipment On be pre-configured with background task monitoring inventory, background task monitoring inventory includes at least the configuration file for background task The starting strategy of mark and the background task, is pre-configured with background task monitoring process on the network equipment, it is described into Cheng Zhihang following methods:
For background task monitoring inventory in any background task, judge the background task configuration file mark in whether There are preset characters;
If there are preset characters in the configuration file mark of the background task, which is added to virtual system and is appointed Business is concentrated, and is identified according to the configuration file of the corresponding virtual system mark of the background task and the background task, and composition should The target configuration file of background task identifies;
For any background task in virtual system task-set, in the corresponding virtual system of the background task, judgement is It is no that there are target configuration files to identify corresponding configuration file;It judges whether there is and the consistent background task of the background task;
Target configuration file identifies corresponding configuration file if it does not exist, or there is no with the background task it is consistent after Platform task starts the background task according to the starting strategy of the background task.
Second aspect, the application provide a kind of background task monitoring device, are applied to the network equipment, in the network equipment On be pre-configured with background task monitoring inventory, background task monitoring inventory includes at least the configuration file for background task The starting strategy of mark and the background task, described device include:
First judgment module, for judging the background task for any background task in background task monitoring inventory It whether there is preset characters in configuration file mark;
First adding module, if appointing the backstage for there are preset characters in the configuration file mark of the background task Business is added in virtual system task-set;
First comprising modules, for the configuration according to the corresponding virtual system mark of the background task and the background task File identification forms the target configuration file mark of the background task;
Second judgment module, it is corresponding in the background task for being directed to any background task in virtual system task-set In virtual system, judges whether there is target configuration file and identify corresponding configuration file;It judges whether there is and appoints with the backstage It is engaged in consistent background task;
First starting module identifies corresponding configuration file for target configuration file if it does not exist, or there is no with The consistent background task of the background task starts the background task according to the starting strategy of the background task.
Technical solution provided by the present application, for any background task in background task monitoring inventory, after judging this It whether there is preset characters in the configuration file mark of platform task, if there are predetermined words in the configuration file mark of the background task Symbol, which is added in virtual system task-set, for any background task in virtual system task-set, after this In the corresponding virtual system of platform task, the operating status of the background task, and the situation out of service in the background task are monitored Under, start the background task according to the starting strategy of the background task.Such background task monitoring technology side provided by the present application Case can be adapted for virtual system, for the background task in virtual system, monitor the operating status of the background task, and In the case that the background task is out of service, start the background task according to the starting strategy of the background task.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to required attached in embodiment description Figure is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments as described in this application, for For those of ordinary skill in the art, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of implementation process diagram of background task monitoring method shown in one exemplary embodiment of the application;
Fig. 2 is a kind of structural schematic diagram of background task monitoring device shown in one exemplary embodiment of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
In the embodiment of the present application, configuration background task monitors inventory on network devices in advance, at least wraps in the inventory It includes for the configuration file mark of background task and the starting strategy of the background task.Wherein the network equipment, which can be, works as Preceding any network equipment, such as can be PC, interchanger, router etc..
It can be the PID file identification for background task, the PID files-designated for the configuration file mark of background task Knowledge can be PID file path, such as/var/run/snmpd%.pid.Wherein in order to indicate whether the background task is supported to be System virtualization, can add character (specifically adding character in the PID file name) in the PID file path, such as " % ", the background task support system virtualization, PID file path are as follows:/var/run/snmpd%.pid, the background task is not Support system virtualization, PID file path are as follows:/var/run/snmpd.pid, it can be seen that after the character is for distinguishing Whether platform task supports system virtualization.For preset characters, the embodiment of the present application is not construed as limiting.
For the starting strategy of background task, " commands " expression can be used for example, if the background task is not propped up Hold system virtualization, in the starting strategy of background task without adding preset characters, if the background task supports system Virtualization is identified for virtual system is added in the starting strategy of background task.
On above-mentioned basis, can also include: in the inventory warehouse compartment in starting strategy where required function set and The corresponding virtual system identification list of virtual system that background task is supported, such as can indicate to open with " check_func_so " Warehouse compartment in dynamic strategy where required function is set, and " check_func_name " indicates that the virtual system that background task is supported is corresponding Virtual system identification list.
In addition, being pre-configured with background task monitoring process on network devices (for configuration background task monitoring process Implementation, the embodiment of the present application are not construed as limiting), which executes background task monitoring method provided by the embodiments of the present application, As shown in Figure 1, process executes following methods:
S101 judges the configuration file mark of the background task for any background task in background task monitoring inventory In whether there is preset characters;
In the embodiment of the present application, starting the background task monitoring process, available background task monitors inventory, for Background task monitors any background task in inventory, judges in the configuration file mark of the background task with the presence or absence of predetermined word Symbol.
For example, the PID file path for being directed to background task A is read for background task A in background task monitoring inventory, Judge in the PID file path with the presence or absence of preset characters " % ".
The background task is added to virtually by S102 if there are preset characters in the configuration file mark of the background task System task is concentrated, and is identified according to the configuration file of the corresponding virtual system mark of the background task and the background task, Form the target configuration file mark of the background task;
For any background task in background task monitoring inventory, the embodiment of the present application is according to sentencing in above-mentioned steps S101 Break as a result, it is possible to achieve two classify, for, there are preset characters, indicating that the backstage is appointed in the configuration file mark of the background task System virtualization is supported in business, can be added it in virtual system task-set, and the configuration file of the background task is identified In not there are no preset characters, indicate that the background task does not support system virtualization, public system task-set can be added it to In, the classification of task two so may be implemented.
For any background task in virtual system task-set, according to the corresponding virtual system mark of the background task and The configuration file of the background task identifies, and forms the target configuration file mark of the background task.
Wherein, the corresponding virtual system mark of the virtual system being currently running is obtained, judges the virtual system mark Know and whether matched with virtual system any in virtual system identification list mark, if virtual system mark and the void Any virtual system mark matching in quasi- system banner list, according to the configuration of virtual system mark and the background task File identification forms the target configuration file mark of the background task.The wherein virtual system identification list, that is, above-mentioned " check_ The corresponding virtual system identification list of func_name ".
For example, for background task A in virtual system task-set, " check_func_name " is corresponding by taking SNMP as an example Virtual system identification list is virtual system 1, virtual system 2, obtains the corresponding virtual system of the virtual system being currently running System identifies: virtual system 1, virtual system 2, is virtually in virtual system identification list corresponding with " check_func_name " System mark matching, identifies according to the configuration file of virtual system mark and the background task, forms the background task Target configuration file mark: the PID file path of background task A are as follows:/var/run/snmpd.pid, according to above-mentioned virtual system 1, virtual system 2 separately constitute the target PID file path of background task A :/var/run/snmpd1.pid ,/var/run/ Snmpd2.pid, adds virtual system 1, virtual system 2 in PID file name, this background task operates in virtual system 1 And in virtual system 2.
For any background task in public system task-set, according to the configuration of public system mark and the background task File identification forms the target configuration file mark of the background task.
For example, for background task A in public system task-set, public system is identified as 0 by taking SNMP as an example, the backstage The PID file path of task A are as follows:/var/run/snmpd.pid forms the target of background task A according to above two information PID file path are as follows:/var/run/snmpd0.pid, it is meant that public system mark 0 is added in PID file name.
For any background task in public system task-set, judge in public system with the presence or absence of target configuration file Identify corresponding configuration file;Judge to whether there is and the consistent background task of the background task in public system;
For example, in public system, judging whether there is target PID text for background task A in public system task-set The corresponding target PID file " snmpd0.pid " in part path "/var/run/snmpd0.pid ", after being run in public system Platform task, if exist and the consistent background task of background task A title.
If there is no target configuration files to identify corresponding configuration file in public system, or in public system not In the presence of with the consistent background task of the background task, start the background task according to the starting strategy of the background task;If in public affairs There are target configuration files to identify corresponding configuration file in system altogether, and in the presence of consistent with the background task in public system Background task, determine the background task operate normally.
Wherein, before starting the background task, need to judge whether the background task should start in public system, If should start, start the background task according to the starting strategy of the background task.For example, above-mentioned " check_ can be passed through Func_name " determines whether the background task should start in public system.
S103 sentences in the corresponding virtual system of the background task for any background task in virtual system task-set It is disconnected to identify corresponding configuration file with the presence or absence of target configuration file;It judges whether there is and appoints with the consistent backstage of the background task Business;
For any background task in virtual system task-set, in the corresponding virtual system of the background task, judgement is No there are target configuration files to identify corresponding configuration file, and whether there is and the consistent background task of the background task.
For example, in the corresponding virtual system 1 of background task A, sentencing for background task A in virtual system task-set It is disconnected to whether there is target PID file path "/var/run/snmpd1.pid " corresponding target PID file " snmpd1.pid ", The background task run in virtual system 1, if exist with the consistent background task of background task A, refer here to appoint Title of being engaged in is consistent.
S104, target configuration file identifies corresponding configuration file if it does not exist, or is not present and the background task one The background task of cause starts the background task according to the starting strategy of the background task.
For the judging result in above-mentioned steps S103, any condition is unsatisfactory for, and indicates that the background task is not present, even Identify corresponding configuration file there is no target configuration file, or there is no with the consistent background task of the background task, should Background task is not present, and in the corresponding virtual system of the background task, can start according to the starting strategy of the background task The background task.In the corresponding virtual system of the background task, target configuration file identifies corresponding configuration file if it exists, And exist and the consistent background task of the background task, determine the background task normal operation.
Wherein before starting the background task, need to judge whether the background task should open in corresponding virtual system It is dynamic, if should start, start the background task according to the starting strategy of the background task.For example, can be by above-mentioned " check_func_name " determines whether the background task should start in corresponding virtual system.
In the corresponding virtual system of the background task, start the background task according to the starting strategy of the background task Implementation is as follows:
Mode 1, the process switching to the corresponding virtual system of the background task, it is then corresponding virtual in the background task In system, which starts the background task according to the starting strategy of the background task.For example, the process is switched by public system To the corresponding virtual system 1 of background task A, which starts background task A according to the starting strategy of background task A, And after start completion, the process switching to public system.
Mode 2 directly according to the starting strategy of the background task starts the background task, and the background task is corresponding virtual System banner is passed in the starting strategy, and specific system handover operation (it is corresponding to switch to the background task by public system Virtual system) transfer to the starting strategy execution.
By the above-mentioned description to technical solution provided by the embodiments of the present application, for any in background task monitoring inventory Background task, by judging that the configuration file of the background task whether there is preset characters in identifying, if the background task is matched It sets in file identification that there are preset characters, which is added in virtual system task-set, for virtual system task Any background task is concentrated, in the corresponding virtual system of the background task, monitors the operating status of the background task, and at this In the case that background task is out of service, start the background task according to the starting strategy of the background task.Such the application mentions The background task monitoring technology scheme of confession, can be adapted for virtual system, for the background task in virtual system, after monitoring this The operating status of platform task, and in the case where the background task is out of service, start according to the starting strategy of the background task The background task.
Corresponding with above method embodiment, the embodiment of the present application also provides a kind of background task monitoring device, applications In the network equipment, background task monitoring inventory is pre-configured on the network equipment, the background task monitoring inventory is at least Starting strategy including configuration file mark and the background task for background task, as shown in Fig. 2, described device packet It includes: first judgment module 210, the first adding module 220, the first comprising modules 230, the second judgment module 240, first starting mould Block 250.
First judgment module 210, for judging the background task for any background task in background task monitoring inventory Configuration file mark in whether there is preset characters;
First adding module 220, if for there are preset characters in the configuration file mark of the background task, by the backstage Task is added in virtual system task-set;
First comprising modules 230, for according to the background task corresponding virtual system mark and the background task Configuration file mark forms the target configuration file mark of the background task;
Second judgment module 240, for being corresponded in the background task for any background task in virtual system task-set Virtual system in, judge whether there is target configuration file and identify corresponding configuration file;It judges whether there is and the backstage The consistent background task of task;
First starting module 250 identifies corresponding configuration file for target configuration file if it does not exist, or is not present With the consistent background task of the background task, start the background task according to the starting strategy of the background task.
In a kind of specific embodiment of the embodiment of the present application, the preset characters are for distinguishing whether background task props up Hold system virtualization.
It further include being directed in the background task monitoring inventory in a kind of specific embodiment of the embodiment of the present application The corresponding virtual system identification list of virtual system that background task is supported;
First comprising modules 230 are specifically used for:
Obtain the corresponding virtual system mark of the virtual system being currently running;
Judge that the virtual system identifies whether to identify with virtual system any in the virtual system identification list to match;
If the virtual system mark is matched with virtual system any in virtual system identification list mark, according to institute Virtual system mark and the configuration file mark of the background task are stated, the target configuration file mark of the background task is formed.
In a kind of specific embodiment of the embodiment of the present application, described device further include:
Second adding module 270, if for not there are no preset characters in the configuration file mark of the background task, after this Platform task is added in public system task-set, and is identified according to the configuration file of public system mark and the background task, Form the target configuration file mark of the background task;
Third judgment module 280, for judging in public system for any background task in public system task-set Corresponding configuration file is identified with the presence or absence of target configuration file;Judge to whether there is and the background task one in public system The background task of cause;
Second starting module 290, if for there is no target configuration files to identify corresponding configuration text in public system Part, or in public system there is no with the consistent background task of the background task, according to the starting strategy of the background task Start the background task.
The effect realization process of each unit is specifically detailed in the realization process that step is corresponded in the above method in above-mentioned apparatus, Details are not described herein.
By the above-mentioned description to technical solution provided by the embodiments of the present application, for any in background task monitoring inventory Background task, by judging that the configuration file of the background task whether there is preset characters in identifying, if the background task is matched It sets in file identification that there are preset characters, which is added in virtual system task-set, for virtual system task Any background task is concentrated, in the corresponding virtual system of the background task, monitors the operating status of the background task, and at this In the case that background task is out of service, start the background task according to the starting strategy of the background task.Such the application mentions The background task monitoring technology scheme of confession, can be adapted for virtual system, for the background task in virtual system, after monitoring this The operating status of platform task, and in the case where the background task is out of service, start according to the starting strategy of the background task The background task.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
The present invention can be in the general described in the text, such as program up and down of calculated value executable instruction performed by computer Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group Part, data structure etc..The present invention can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
The above is only a specific embodiment of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of background task monitoring method, which is characterized in that be applied to the network equipment, be pre-configured on the network equipment Background task monitors inventory, and the background task monitoring inventory includes at least the configuration file mark for background task, and The starting strategy of the background task, is pre-configured with background task monitoring process on the network equipment, the process execute with Lower method:
For any background task in background task monitoring inventory, judge to whether there is in the configuration file mark of the background task Preset characters;
If in the configuration file mark of the background task, there are preset characters, which is added to virtual system task-set In, and identified according to the configuration file of the corresponding virtual system mark of the background task and the background task, form the backstage The target configuration file of task identifies;
Judge whether to deposit in the corresponding virtual system of the background task for any background task in virtual system task-set Corresponding configuration file is identified in target configuration file;It judges whether there is and the consistent background task of the background task;
Target configuration file identifies corresponding configuration file if it does not exist, or there is no appoint with the consistent backstage of the background task Business, starts the background task according to the starting strategy of the background task.
2. the method according to claim 1, wherein the preset characters are for distinguishing whether background task is supported System virtualization.
3. according to claim 1 to 2 described in any item methods, which is characterized in that in the background task monitoring inventory, also wrap Include the corresponding virtual system identification list of virtual system supported for background task;
The configuration file according to the corresponding virtual system mark of the background task and the background task identifies, after forming this The target configuration file of platform task identifies, comprising:
Obtain the corresponding virtual system mark of the virtual system being currently running;
Judge that the virtual system identifies whether to identify with virtual system any in the virtual system identification list to match;
If the virtual system mark is matched with virtual system any in virtual system identification list mark, according to the void Quasi- system banner and the configuration file of background task mark form the target configuration file mark of the background task.
4. method according to any one of claims 1 to 3, which is characterized in that the method also includes:
If not there are no preset characters in the configuration file mark of the background task, which is added to public system task It concentrates, and is identified according to the configuration file of public system mark and the background task, form the target configuration of the background task File identification;
For any background task in public system task-set, judge to identify in public system with the presence or absence of target configuration file Corresponding configuration file;Judge to whether there is and the consistent background task of the background task in public system;
If there is no target configuration files to identify corresponding configuration file in public system, or is not present in public system With the consistent background task of the background task, start the background task according to the starting strategy of the background task.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
If there are target configuration files to identify corresponding configuration file in public system, and exist in public system with after this The consistent background task of platform task determines that the background task operates normally.
6. method according to any one of claims 1 to 5, which is characterized in that the method also includes:
In the corresponding virtual system of the background task, target configuration file identifies corresponding configuration file if it exists, and exists With the consistent background task of the background task, the background task normal operation is determined.
7. a kind of background task monitoring device, which is characterized in that be applied to the network equipment, be pre-configured on the network equipment Background task monitors inventory, and the background task monitoring inventory includes at least the configuration file mark for background task, and The starting strategy of the background task, described device include:
First judgment module, for judging the configuration of the background task for any background task in background task monitoring inventory It whether there is preset characters in file identification;
First adding module, if adding the background task for there are preset characters in the configuration file mark of the background task It adds in virtual system task-set;
First comprising modules, for the configuration file according to the corresponding virtual system mark of the background task and the background task Mark forms the target configuration file mark of the background task;
Second judgment module, it is corresponding virtual in the background task for being directed to any background task in virtual system task-set In system, judges whether there is target configuration file and identify corresponding configuration file;It judges whether there is and the background task one The background task of cause;
First starting module identifies corresponding configuration file for target configuration file if it does not exist, or there is no with after this The consistent background task of platform task starts the background task according to the starting strategy of the background task.
8. device according to claim 7, which is characterized in that the preset characters are for distinguishing whether background task is supported System virtualization.
9. according to the described in any item devices of claim 7 to 8, which is characterized in that in the background task monitoring inventory, also wrap Include the corresponding virtual system identification list of virtual system supported for background task;
First comprising modules are specifically used for:
Obtain the corresponding virtual system mark of the virtual system being currently running;
Judge that the virtual system identifies whether to identify with virtual system any in the virtual system identification list to match;
If the virtual system mark is matched with virtual system any in virtual system identification list mark, according to the void Quasi- system banner and the configuration file of background task mark form the target configuration file mark of the background task.
10. device according to any one of claims 7 to 9, which is characterized in that described device further include:
Second adding module, if for not there are no preset characters in the configuration file mark of the background task, by the background task It is added in public system task-set, and is identified according to the configuration file of public system mark and the background task, composition should The target configuration file of background task identifies;
Third judgment module, for judging whether deposit in public system for any background task in public system task-set Corresponding configuration file is identified in target configuration file;Judge in public system with the presence or absence of with the background task it is consistent after Platform task;
Second starting module, if for there is no target configuration files to identify corresponding configuration file in public system, or In public system there is no with the consistent background task of the background task, after starting this according to the starting strategy of the background task Platform task.
CN201910547489.7A 2019-06-24 2019-06-24 Background task monitoring method and device Active CN110297741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910547489.7A CN110297741B (en) 2019-06-24 2019-06-24 Background task monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910547489.7A CN110297741B (en) 2019-06-24 2019-06-24 Background task monitoring method and device

Publications (2)

Publication Number Publication Date
CN110297741A true CN110297741A (en) 2019-10-01
CN110297741B CN110297741B (en) 2022-11-25

Family

ID=68028624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910547489.7A Active CN110297741B (en) 2019-06-24 2019-06-24 Background task monitoring method and device

Country Status (1)

Country Link
CN (1) CN110297741B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557360A (en) * 2016-11-09 2017-04-05 青岛海信电器股份有限公司 Task run method and device
CN107491346A (en) * 2016-06-12 2017-12-19 阿里巴巴集团控股有限公司 A kind of task processing method of application, apparatus and system
CN107729213A (en) * 2017-10-11 2018-02-23 杭州迪普科技股份有限公司 A kind of background task monitoring method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107491346A (en) * 2016-06-12 2017-12-19 阿里巴巴集团控股有限公司 A kind of task processing method of application, apparatus and system
CN106557360A (en) * 2016-11-09 2017-04-05 青岛海信电器股份有限公司 Task run method and device
CN107729213A (en) * 2017-10-11 2018-02-23 杭州迪普科技股份有限公司 A kind of background task monitoring method and device

Also Published As

Publication number Publication date
CN110297741B (en) 2022-11-25

Similar Documents

Publication Publication Date Title
US8910172B2 (en) Application resource switchover systems and methods
EP2260611B1 (en) Automated power topology discovery
EP3142011B1 (en) Anomaly recovery method for virtual machine in distributed environment
US20140082423A1 (en) Method and apparatus for cause analysis involving configuration changes
JP2016126563A (en) Fault monitoring device, fault monitoring program, and fault monitoring method
CN101809540A (en) Network context triggers for activating virtualized computer applications
CN105335214A (en) Virtual machine failure detection and recovery method
WO2016145888A1 (en) Display screen processing method and device
CN111698283B (en) Management and control method, device, equipment and storage medium of distributed cluster host
CN110427252A (en) Method for scheduling task, device and the storage medium of task based access control dependence
CN108268305A (en) For the system and method for virtual machine scalable appearance automatically
CN107992381A (en) System reducing method, device, system, backup and reduction server and storage medium
CN114661462A (en) Resource allocation method, system, computer readable storage medium and electronic device
CN108694093A (en) Process exception monitoring method and device
CN105721203A (en) Upgrade processing method and device
CN102957563B (en) Linux clustering fault automatic recovery method and Linux clustering fault automatic recovery system
CN107623581A (en) Service list generation method, apparatus and system, acquisition, report method and device
US20070204084A1 (en) Apparatus and method of processing information
CN105025179A (en) Method and system for monitoring service agents of call center
CN110297741A (en) A kind of background task monitoring method and device
CN112000539A (en) Inspection method and device
CN106776135A (en) A kind of data back up method and device
CN105787359A (en) Course guarding method and device
US20130238103A1 (en) Machine management system
CN110704219B (en) Hardware fault reporting method and device and computer 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