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

Quartz cluster timed task processing system and method

A timing task and processing system technology, applied in the direction of electrical digital data processing, program startup/switching, program control design, etc., can solve problems such as clock out of synchronization, timing tasks cannot be executed normally, and time rules are inconvenient to change

Active Publication Date: 2018-07-06
武汉市烽视威科技有限公司
View PDF4 Cites 14 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
  • Quartz cluster timed task processing system and method
  • Quartz cluster timed task processing system and method
  • Quartz cluster timed task processing system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0035] Such as 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. The multiple nodes are child nodes under the root node of the zookeeper cluster, 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] The configuration loading module 1 is used to load the node information configuration of all nodes and the zookeeper cluster connection configuration, and monitor the node information configuration changes. Among them, the node information includes basic information of the node and timing task information. The basic information of the node includes the node name, IP and port, and may 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) or J2SE (Java 2 Standard Edition, java2 Standard Edition) applications, or it can 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). For business systems, high availability of cluster tasks is required, and Quartz's own cluster is based on DB to control jobs (timed tasks) for lock control. This approach has the following defects: [0003] 1. Because the cluster uses the same DB, it is inconvenient to change the time rule, and the DB time rule description needs to be changed sy...

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/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