CN107168849A - A kind of task scheduling operation and monitoring method and device - Google Patents

A kind of task scheduling operation and monitoring method and device Download PDF

Info

Publication number
CN107168849A
CN107168849A CN201710302177.0A CN201710302177A CN107168849A CN 107168849 A CN107168849 A CN 107168849A CN 201710302177 A CN201710302177 A CN 201710302177A CN 107168849 A CN107168849 A CN 107168849A
Authority
CN
China
Prior art keywords
task scheduling
time
preset time
chain
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.)
Granted
Application number
CN201710302177.0A
Other languages
Chinese (zh)
Other versions
CN107168849B (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.)
Guangdong Net Gold Marketing Data Services Ltd
Original Assignee
Guangdong Net Gold Marketing Data Services 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 Guangdong Net Gold Marketing Data Services Ltd filed Critical Guangdong Net Gold Marketing Data Services Ltd
Priority to CN201710302177.0A priority Critical patent/CN107168849B/en
Publication of CN107168849A publication Critical patent/CN107168849A/en
Application granted granted Critical
Publication of CN107168849B publication Critical patent/CN107168849B/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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of task scheduling operation and monitoring method and device, applied in task scheduling chain, the task scheduling chain is end to end, and each task scheduling in task scheduling chain is configured with the preset time of identical first and the preset time of identical second, comprises the following steps:S1, after the first preset time is spaced, current task scheduling performs step S2;After the second preset time is spaced, current task scheduling performs step S3;S2, modification latter task dispatch the corresponding mark time for present system time;S3, the previous task scheduling of reading corresponding mark time, judge whether the difference of the mark time in the previous task scheduling and present system time is more than predetermined threshold value, if so, step S4 is then performed, if it is not, then return to step S1;S4, to monitoring notification module send abnormality alarming information.The advantage of the invention is that by the peering monitoring of task scheduling, realizing low cost, efficiently and effectively monitoring.

Description

A kind of task scheduling operation and monitoring method and device
Technical field
The present invention relates to software processing field, and in particular to a kind of task scheduling operation and monitoring method and device.
Background technology
In software systems, " plan target " is often formulated, i.e., does something at some time point, core is Using the time as focus, i.e., a specific time point, system performs the operation specified.Task scheduling is not performed on time Or stop being often fatal to the normal operation flow of business of system.Usual task scheduling monitoring be all it is centralized, Centralized Monitoring service can be self-developing or purchase market matured product, and either that mode application cost all compares It is high.
The content of the invention
In order to overcome the deficiencies in the prior art, it is an object of the invention to provide a kind of task scheduling operation and monitoring method, By the peering monitoring of task scheduling, realize low cost, efficiently and effectively monitor.
To solve the above problems, the technical solution adopted in the present invention is as follows:
Scheme one:
A kind of task scheduling operation and monitoring method, applied in task scheduling chain, the task scheduling chain is end to end, appoints Each task scheduling in business scheduling chain is configured with the preset time of identical first and the preset time of identical second, including following Step:
S1, after the first preset time is spaced, current task scheduling performs step S2;After the second preset time is spaced, Current task scheduling performs step S3;
S2, modification latter task dispatch the corresponding mark time for present system time;
S3, the previous task scheduling of reading corresponding mark time, judge the mark time in the previous task scheduling with working as Whether the difference of preceding system time is more than predetermined threshold value, if so, step S4 is then performed, if it is not, then return to step S1;
S4, to monitoring notification module send abnormality alarming information.
It is preferred that, each task scheduling in the task scheduling chain is associated with corresponding configuration item, the mark time It is configured in configuration item.
It is preferred that, first preset time is S seconds, and second preset time is 2S+1 seconds, and the predetermined threshold value is 2S+1, wherein, S is positive integer.
It is preferred that, the first two task scheduling operation exception that the abnormality alarming information is dispatched for expression current task.
Scheme two:
A kind of task scheduling running monitor device, applied in task scheduling chain, the task scheduling chain is end to end, appoints Each task scheduling in business scheduling chain is configured with the preset time of identical first and the preset time of identical second, including following Module:
Trigger module:For after the first preset time is spaced, current task scheduling to perform modified module;When interval second After preset time, current task scheduling performs read module;
Modified module:The corresponding mark time is dispatched for present system time for changing latter task;
Read module:For reading the previous task scheduling corresponding mark time, the mark in the previous task scheduling is judged Between clocking and whether the difference of present system time is more than predetermined threshold value, if so, then perform sending module, if it is not, then returning to triggering Module;
Sending module:For sending abnormality alarming information to monitoring notification module.
It is preferred that, each task scheduling in the task scheduling chain is associated with corresponding configuration item, the mark time It is configured in configuration item.
It is preferred that, first preset time is S seconds, and second preset time is 2S+1 seconds, and the predetermined threshold value is 2S+1, wherein, S is positive integer.
It is preferred that, the first two task scheduling operation exception that the abnormality alarming information is dispatched for expression current task.
Compared with prior art, the beneficial effects of the present invention are:
May insure the configuration item of all task scheduling associations all can be marked and be read by different task schedulings, be formed Whether the peering monitoring of task scheduling, the task scheduling of many machines of monitoring multinode easily and effectively normally performs, and is adjusted by task The peering monitoring of degree, realizes low cost, efficiently and effectively monitors.
Brief description of the drawings
Fig. 1 is the flow chart of task scheduling operation and monitoring method of the present invention;
Fig. 2 is the structure chart of task scheduling running monitor device of the present invention.
Embodiment
Below, with reference to accompanying drawing and embodiment, the present invention is described further:
With reference to Fig. 1, the invention discloses a kind of task scheduling operation and monitoring method, applied in task scheduling chain, task Dispatch chain end to end, that is, form a ring-type, last task scheduling is the previous task scheduling of first task scheduling. Each task scheduling in task scheduling chain is configured with the preset time of identical first and the preset time of identical second, including with Lower step:
S1, after the first preset time is spaced, current task scheduling performs step S2;After the second preset time is spaced, Current task scheduling performs step S3;
S2, modification latter task dispatch the corresponding mark time for present system time;
S3, the previous task scheduling of reading corresponding mark time, judge the mark time in the previous task scheduling with working as Whether the difference of preceding system time is more than predetermined threshold value, if so, step S4 is then performed, if it is not, then return to step S1;
S4, to monitoring notification module send abnormality alarming information.
Wherein, in the present embodiment, it is that each task scheduling associates a configuration item, configuration item can be simple one Data-base recording, wherein having mark time row, for recording the mark time of newest modification.It is also each task scheduling newly-increased two Individual operation.First operating room is performed once every the first preset time, and the first preset time is S seconds, and the second operating room is pre- every second If the time performs once, the second preset time is 2S+1 seconds, and S is positive integer.
After the first preset time is spaced, current task scheduling performs the first operation;After the second preset time is spaced, when Preceding task scheduling performs the second operation.The mark time that first operation is used to change latter task scheduling configuration item is current system Time;Second operation is used for the mark time for reading previous task scheduling configuration item, and judges the mark in the previous task scheduling Between clocking and whether the difference of present system time is more than predetermined threshold value, predetermined threshold value is 2S+1, and S is positive integer, if more than default Threshold value, then it represents that the first two scheduler task of current task scheduling (is responsible for the previous scheduler task of modification current task scheduling The mark time) there is no the mark for the previous scheduler task configuration item for updating current task scheduling within first duty cycle at least Between clocking, there is operation exception situation, therefore abnormality alarming information is sent to monitoring notification module, monitoring notification module is then sent Monitoring notifies (short message or mail) to arrive related operation maintenance personnel.If less than predetermined threshold value, continuing to monitor.
Assuming that there are four scheduler tasks, T1, T2, T3, T4 are designated as respectively, note current scheduling task is T3, when interval first After preset time, T3 performs the first operation, and the mark time of modification T4 configuration items is present system time.When interval second is preset After time, T3 performs the second operation, reads the mark time of T2 configuration items, and judges T2 mark time and present system time Difference whether be more than predetermined threshold value, if, then it represents that T1 does not at least have to update T2 configuration items within first duty cycle The mark time, there is operation exception situation, therefore abnormality alarming information is sent to monitoring notification module.
It may insure that the configuration item that all task schedulings are associated can all be adjusted by different tasks by the method for the present invention Scale designation and reading, form the peering monitoring of task scheduling, and just whether the task scheduling of the monitoring many machines of multinode easily and effectively Often perform, by the peering monitoring of task scheduling, realize low cost, efficiently and effectively monitor.
With reference to Fig. 2, the invention also discloses a kind of task scheduling running monitor device, applied in task scheduling chain, institute State that task scheduling chain is end to end, each task scheduling in task scheduling chain is configured with the preset time of identical first and identical The second preset time, including with lower module:
Trigger module:For after the first preset time is spaced, current task scheduling to perform modified module;When interval second After preset time, current task scheduling performs read module;
Modified module:The corresponding mark time is dispatched for present system time for changing latter task;
Read module:For reading the previous task scheduling corresponding mark time, the mark in the previous task scheduling is judged Between clocking and whether the difference of present system time is more than predetermined threshold value, if so, then perform sending module, if it is not, then returning to triggering Module;
Sending module:For sending abnormality alarming information to monitoring notification module.
It is preferred that, each task scheduling in the task scheduling chain is associated with corresponding configuration item, the mark time It is configured in configuration item.
It is preferred that, first preset time is S seconds, and second preset time is 2S+1 seconds, and the predetermined threshold value is 2S+1, wherein, S is positive integer.
It is preferred that, the first two task scheduling operation exception that the abnormality alarming information is dispatched for expression current task.
It will be apparent to those skilled in the art that technical scheme that can be as described above and design, make other various It is corresponding to change and deformation, and all these change and deformation should all belong to the protection domain of the claims in the present invention Within.

Claims (8)

1. a kind of task scheduling operation and monitoring method, it is characterised in that applied in task scheduling chain, the task scheduling first-in-chain(FIC) Tail connects, and each task scheduling in task scheduling chain is configured with the preset time of identical first and when identical second is preset Between, comprise the following steps:
S1, after the first preset time is spaced, current task scheduling performs step S2;After the second preset time is spaced, currently Task scheduling performs step S3;
S2, modification latter task dispatch the corresponding mark time for present system time;
S3, the previous task scheduling of reading corresponding mark time, judge the mark time in the previous task scheduling and current system Whether the difference of system time is more than predetermined threshold value, if so, step S4 is then performed, if it is not, then return to step S1;
S4, to monitoring notification module send abnormality alarming information.
2. task scheduling operation and monitoring method according to claim 1, it is characterised in that every in the task scheduling chain Individual task scheduling is associated with corresponding configuration item, and the mark time is configured in configuration item.
3. task scheduling operation and monitoring method according to claim 1, it is characterised in that first preset time is S Second, second preset time is 2S+1 seconds, and the predetermined threshold value is 2S+1, wherein, S is positive integer.
4. task scheduling operation and monitoring method according to claim 1, it is characterised in that the abnormality alarming information is table Show the first two task scheduling operation exception of current task scheduling.
5. a kind of task scheduling running monitor device, it is characterised in that applied in task scheduling chain, the task scheduling first-in-chain(FIC) Tail connects, and each task scheduling in task scheduling chain is configured with the preset time of identical first and when identical second is preset Between, including with lower module:
Trigger module:For after the first preset time is spaced, current task scheduling to perform modified module;When interval second is preset After time, current task scheduling performs read module;
Modified module:The corresponding mark time is dispatched for present system time for changing latter task;
Read module:For reading the previous task scheduling corresponding mark time, when judging the mark in the previous task scheduling Between and present system time difference whether be more than predetermined threshold value, if so, sending module is then performed, if it is not, then returning to trigger module;
Sending module:For sending abnormality alarming information to monitoring notification module.
6. task scheduling running monitor device according to claim 5, it is characterised in that every in the task scheduling chain Individual task scheduling is associated with corresponding configuration item, and the mark time is configured in configuration item.
7. task scheduling running monitor device according to claim 5, it is characterised in that first preset time is S Second, second preset time is 2S+1 seconds, and the predetermined threshold value is 2S+1, wherein, S is positive integer.
8. task scheduling running monitor device according to claim 5, it is characterised in that the abnormality alarming information is table Show the first two task scheduling operation exception of current task scheduling.
CN201710302177.0A 2017-05-02 2017-05-02 Task scheduling operation monitoring method and device Active CN107168849B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710302177.0A CN107168849B (en) 2017-05-02 2017-05-02 Task scheduling operation monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710302177.0A CN107168849B (en) 2017-05-02 2017-05-02 Task scheduling operation monitoring method and device

Publications (2)

Publication Number Publication Date
CN107168849A true CN107168849A (en) 2017-09-15
CN107168849B CN107168849B (en) 2020-06-09

Family

ID=59813941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710302177.0A Active CN107168849B (en) 2017-05-02 2017-05-02 Task scheduling operation monitoring method and device

Country Status (1)

Country Link
CN (1) CN107168849B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158894A (en) * 2018-11-08 2020-05-15 杭州海康威视数字技术股份有限公司 Task monitoring method and device in cloud analysis system
CN111475374A (en) * 2020-03-17 2020-07-31 创驱(上海)新能源科技有限公司 Time-consuming monitoring method for complex driving task based on AUTOSAR (automotive open system architecture)
CN115292141A (en) * 2022-09-29 2022-11-04 深圳联友科技有限公司 Scheduling abnormity early warning method based on sliding time window and monitoring server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020166085A1 (en) * 2001-05-02 2002-11-07 Cyrus Peikari Self-optimizing the diagnosis of data processing systems by flexible multitasking
US20050120143A1 (en) * 2003-11-04 2005-06-02 Yusuke Minagawa Sequential device control with time-out function
CN102257838A (en) * 2008-12-17 2011-11-23 西门子公司 Method for monitoring network nodes
CN104780597A (en) * 2015-04-30 2015-07-15 西安成峰科技有限公司 Low-power communication receiving and sending control method of wireless security protection and monitoring system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020166085A1 (en) * 2001-05-02 2002-11-07 Cyrus Peikari Self-optimizing the diagnosis of data processing systems by flexible multitasking
US20050120143A1 (en) * 2003-11-04 2005-06-02 Yusuke Minagawa Sequential device control with time-out function
CN102257838A (en) * 2008-12-17 2011-11-23 西门子公司 Method for monitoring network nodes
CN104780597A (en) * 2015-04-30 2015-07-15 西安成峰科技有限公司 Low-power communication receiving and sending control method of wireless security protection and monitoring system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158894A (en) * 2018-11-08 2020-05-15 杭州海康威视数字技术股份有限公司 Task monitoring method and device in cloud analysis system
CN111158894B (en) * 2018-11-08 2023-04-07 杭州海康威视数字技术股份有限公司 Task monitoring method and device in cloud analysis system
CN111475374A (en) * 2020-03-17 2020-07-31 创驱(上海)新能源科技有限公司 Time-consuming monitoring method for complex driving task based on AUTOSAR (automotive open system architecture)
CN111475374B (en) * 2020-03-17 2023-11-10 创驱(上海)新能源科技有限公司 Time-consuming monitoring method for complex driving task based on AUTOSAR architecture
CN115292141A (en) * 2022-09-29 2022-11-04 深圳联友科技有限公司 Scheduling abnormity early warning method based on sliding time window and monitoring server
CN115292141B (en) * 2022-09-29 2023-02-03 深圳联友科技有限公司 Scheduling abnormity early warning method based on sliding time window and monitoring server

Also Published As

Publication number Publication date
CN107168849B (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN100543683C (en) The method and system that process is monitored
CN109002031B (en) Method applied to equipment fault diagnosis and intelligent early warning of monitoring system
CN107168849A (en) A kind of task scheduling operation and monitoring method and device
CN113238913A (en) Intelligent server fault pushing method, device, equipment and storage medium
CN109656782A (en) Visual scheduling monitoring method, device and server
CN104615497A (en) Thread hanging processing method and device
CN109600375A (en) Message tracing method, device, electronic equipment and storage medium
US20100043004A1 (en) Method and system for computer system diagnostic scheduling using service level objectives
WO2019223062A1 (en) Method and system for processing system exceptions
CN106940677A (en) One kind application daily record data alarm method and device
CN103905533A (en) Distributed type alarm monitoring method and system based on cloud storage
DE69311797D1 (en) FAULT-TOLERANT COMPUTER SYSTEM WITH DEVICE FOR PROCESSING EXTERNAL EVENTS
CN105763395A (en) Method and system for monitoring and managing virtual machine and container in cloud environment
CN105159769A (en) Distributed job scheduling method suitable for heterogeneous computational capability cluster
TW201737084A (en) Abnormality monitoring method and device
CN107729213B (en) Background task monitoring method and device
US11321115B2 (en) Scalable and dynamic data collection and processing
CN109165138A (en) A kind of method and apparatus of monitoring equipment fault
CN106506199A (en) The automatic monitoring method and device of interface in system line
CN108171265A (en) A kind of label preparation method, device and electronic equipment
CN111443720A (en) Robot scheduling method and device
CN103530395A (en) Data tracing method and device
US10205630B2 (en) Fault tolerance method for distributed stream processing system
CN103824017A (en) Method and platform for monitoring rogue programs
US20030223090A1 (en) Method and implementation for message-driven job processing

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
CB02 Change of applicant information

Address after: 510000 room 1601, No. 68, Huacheng Avenue, Tianhe District, Guangzhou City, Guangdong Province

Applicant after: Guangdong No.7 Digital Service Co., Ltd

Address before: 510000, 01-04, room 18, office building 28, Zhujiang East Road, Guangzhou, Guangdong, Tianhe District

Applicant before: GUANGDONG WANGJIN DATA SERVICE Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant