Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Timed task clustering method and device thereof

A technology of timed tasks and clusters, applied in the computer field, to achieve the effect of simple and convenient deployment and maintenance

Inactive Publication Date: 2014-04-23
INTERNET DOMAIN NAME SYST BEIJING ENG RES CENT +1
View PDF2 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a timing task clustering method and its device, which can solve the single-point problem of the timing task scheme in the prior art, thereby realizing high availability of timing clustering

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
  • Timed task clustering method and device thereof
  • Timed task clustering method and device thereof
  • Timed task clustering method and device thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to enable those skilled in the art to better understand the technical solutions of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0034] figure 1 A schematic flow chart of the timing task clustering method provided in Embodiment 1 of the present invention, as shown in figure 1 As shown, the timing task cluster method includes:

[0035] Step S1. Distributed deployment of nodes in the cluster on at least three odd server nodes.

[0036] Specifically, Zookeeper nodes are distributed and deployed on an odd number of server nodes. The more deployed, the higher the reliability. If an odd number is deployed, the Zookeeper cluster will only cause the entire cluster to go down when more than half of the number of downtime is reached. Clusters are better.

[0037] Step S2. Distributed deployment of scheduled task instances on each scheduled task node.

[...

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 provides a timed task clustering method and a timed task clustering device. The method comprises the following steps: distributing nodes in a cluster at server nodes with odd number which is at least three, distributing timed task instances on the timed task nodes, obtaining timed task executing right from the cluster according to planned time point by each timed task instance, executing the timed tasks by the timed task instances with a write-in right, giving up executing the timed tasks by the timed task instances without the write-in right, till the next planned time point, and then circularly executing and obtaining the timed task executing right. After the adoption of the technical scheme, the method and the device can solve a single-point problem of the timed processing technology, and implement high availability of the timed cluster.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a timing task clustering method and a device thereof. Background technique [0002] In the Linux environment, the Crontab technology is usually used to execute scheduled tasks. However, there is a single problem with this technical solution, that is, if the crontab process works abnormally on a certain linux server or the linux server itself is down and damaged, the target task cannot be executed as expected; if multiple linux servers are used to deploy crontab tasks , and there is the problem of repeated execution of the same task. [0003] Spring quartz is a timing processing technology similar to crontab in the JAVA field, and has the same execution mechanism and defects as crontab. It cannot solve the single point problem and cannot achieve high availability. [0004] Aiming at the single-point problems encountered by simple cluster technologies such as cront...

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): G06F9/46
Inventor 高雷
Owner INTERNET DOMAIN NAME SYST BEIJING ENG RES CENT
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products