Realization method and performance system for distributed timed task

A timing task and task execution technology, which is applied in the computer field, can solve problems such as the inability to realize cluster deployment, achieve the effects of reducing risks and uncontrollability, simple implementation, and preventing repeated execution of tasks

Inactive Publication Date: 2017-12-15
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF7 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this technical solution cannot realize cluster deployment, avoid single point of failure and prevent repeated execution of tasks during distributed deployment

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Realization method and performance system for distributed timed task
  • Realization method and performance system for distributed timed task
  • Realization method and performance system for distributed timed task

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] The implementation method of the distributed timing task of the present invention, the method comprises the following steps:

[0045] (1) Distributed deployment task execution module and heartbeat detection module for each node, and all nodes share the same database;

[0046] (2) The database includes several data tables, and a data table is created, which is used to save the task name, status, start execution time, end execution time, host name of the node that is executing the task, and the latest heartbeat time; the following table Shown:

[0047] serial number

field information

illustrate

1

ID

The unique identifier of the primary key, 32-bit uuid

2

name

task code

3

Display_name

task display name

4

is_running

Is it being executed

5

started_at

Task start time

6

ended_at

Task end execution time

7

heartbeat_at

The node that is executing the task, the latest...

Embodiment 2

[0072] as attached image 3 As shown, the execution system of the distributed timing task adopting the implementation method of the distributed timing task in Embodiment 1 includes several nodes, and several nodes share a database, and each node is provided with a task execution module and a heartbeat monitoring module ;

[0073] Among them, the task execution module is mainly responsible for task execution and update of task status;

[0074] The heartbeat monitoring module is mainly responsible for updating the heartbeat time and resetting the state when the task execution is abnormal.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of a computer and specifically provides a realization method and performance system for distributed timed tasks. The performance system for the distributed timed tasks comprises a plurality of nodes, wherein the plurality of nodes share the same database; each node is equipped with a task performance module and a heartbeat monitoring module; the task performance module is mainly responsible for performing the tasks and updating task states; and the heartbeat monitoring module is mainly responsible for updating heartbeat time and resetting the states when task performance is abnormal. Compared with the prior art, the realization method and performance system for the distributed timed task provided by the invention have the advantages that distributed cluster deployment is supported, so a single-point fault can be effectively avoided; moreover, the tasks can be effectively prevented from being performed repeatedly, the realization complexity is low, and the research and development cost can be effectively reduced; the dependence of software products on external software products can be effectively reduced, so the risk and uncontrollability are reduced; and moreover, the realization method and the performance system can be integrated with the software product rapidly, and the realization method and the performance system have high popularization and application value.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method for realizing distributed timing tasks and an execution system. Background technique [0002] In the software field, scheduled tasks are often used. When deployed on a single node, there are single point of failure and performance problems; when deployed in a cluster, there is a problem of repeated execution of tasks; external professional scheduled task plug-ins are used, which are intrusive to the business code Strong, high risk, uncontrollable. [0003] Patent No. CN 106569878A discloses a distributed timing task management method and system, wherein the method includes: judging whether the current time matches the execution time of the task to be executed; Server state information; when the current time matches the execution time, select an execution server that matches the task to be executed from the plurality of distributed servers according to the server state informati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08H04L12/26H04L12/24G06F9/48
CPCH04L67/10G06F9/485H04L41/06H04L43/10
Inventor 黄启庆
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products