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

A quartz cluster timing task processing system and method

A timing task and processing system technology, applied in the direction of electrical digital data processing, multi-program device, program control design, etc., can solve problems such as timing tasks cannot be executed normally, other node status is affected, clocks are not synchronized, etc.

Active Publication Date: 2020-12-08
武汉市烽视威科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. Since the cluster uses the same DB, it is inconvenient to change the time rule, and the DB time rule description needs to be changed synchronously
[0004] 2. In the Quartz cluster, when the server executing the scheduled task crashes, the scheduled task running on the server will not be able to execute normally
[0005] 3. In the Quartz cluster, when the timing task is not on the same server (that is, not on the same node), the node may affect the status of other nodes because the clock is not synchronized.

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
  • A quartz cluster timing task processing system and method
  • A quartz cluster timing task processing system and method
  • A quartz cluster timing task processing system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0035] like figure 1 As shown, the Quartz cluster timing task processing system of the present invention includes a zookeeper cluster and multiple nodes, each node runs a server, multiple nodes are child nodes under the zookeeper cluster root node, and multiple nodes form a Quartz cluster. Each node includes a configuration loading module 1 , a task management module 2 , a node management module 3 , an election module 4 and a console module 5 .

[0036] Configuration loading module 1 is used to load node information configuration of all nodes and zookeeper cluster connection configuration, and monitor node information configuration changes. Wherein, the node information includes the basic information of the node and the scheduled task information, the basic information of the node includes the node name, IP and port, and can also include info...

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 discloses a Quartz cluster timed task processing system and method and relates to the field of timed task processing in a cluster environment through the Internet. The method comprises the steps that multiple nodes are sequentially initialized, each node creates a change monitor and makes registration to a zookeeper cluster, and all node information in a Quartz cluster is acquired; when a master node is not available, a master node is reselected, the master node sends a synchronization message to the zookeeper cluster and registers a timed task, and the remaining nodes synchronize the node information; when the node information of a certain node is changed, the changed information is sent to the zookeeper cluster, and the remaining nodes receive the changed node information and perform synchronization; and the changed node changes a corresponding instruction. Through the processing system and method, time rules are convenient to change, it is ensured that the timed task can be normally executed after the node, where the timed task is located, in the Quartz cluster is in crash, and the influence of clock non-synchronization on different node states is avoided.

Description

technical field [0001] The invention relates to the field of Internet processing timing tasks in a cluster environment, in particular to a Quartz cluster timing task processing system and method. Background technique [0002] Quartz is another open source project of the OpenSymphony open source organization in the field of job scheduling. It can be combined with J2EE (Java 2 Platform Enterprise Edition, Java2 Platform Enterprise Edition) or J2SE (Java2Standard Edition, java2 Standard Edition) applications, and can also be used alone. Jobs can be made into standard Java components or EJBs. Quartz itself supports clusters, but clusters are implemented based on DB (Database, database). For business systems, high availability of cluster tasks is required, and Quartz's own cluster is based on DB to control job (timed task) for lock control. This method has the following defects: [0003] 1. Since the cluster uses the same DB, it is inconvenient to change the time rule, and the ...

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 Patents(China)
IPC IPC(8): G06F9/48
CPCG06F9/4825
Inventor 田付强
Owner 武汉市烽视威科技有限公司
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