Unlock instant, AI-driven research and patent intelligence for your innovation.

Control method for cluster timing scheduling tasks

A timing scheduling and control method technology, applied in the direction of program startup/switching, program synchronization, multi-program device, etc., can solve problems such as complex configuration, multiple execution of timing scheduling tasks, and inability to take advantage of the high stability of the cluster system. To achieve the effect of reducing the degree of embedding

Active Publication Date: 2014-04-30
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The combination of the above two scenarios leads to such a problem: Usually, the scheduled scheduling task can only be executed once at a specified scheduling time (for example, the interest settlement scheduling task needs to perform an interest settlement at 1 am), but if each application node does not The task locking mechanism will trigger the execution of scheduled tasks at the specified time point
[0010] 1. Quartz's cluster scheduling control needs to create 12 tables in the database, which is relatively large for application embedding. Although the function is powerful, the configuration is also quite complicated, and the data is stored in binary, so it cannot be directly read and understood to check the running status
[0011] 2. If the scheduled task can be executed in a very short time, the time of each machine in the cluster is not synchronized, which will lead to the problem that the scheduled task is executed multiple times
It can be seen that because the time of node 1 and node 2 is inconsistent, and the execution time of the scheduled task is very short (only 30 seconds), when node 1 acquires the task lock, node 2 does not compete to acquire the lock at the same time to achieve mutual exclusion
After node 1 completes the task processing and releases the lock, node 2 also acquires the task lock, resulting in the second execution of the scheduled task
[0012] It can be seen that the existing control methods for cluster scheduled scheduling tasks have problems such as the inability to take advantage of the high stability of the cluster system or the high degree of application embedding and the multiple execution of scheduled scheduling tasks.

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
  • Control method for cluster timing scheduling tasks
  • Control method for cluster timing scheduling tasks
  • Control method for cluster timing scheduling tasks

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0026] The core idea of ​​the present invention is: when the cluster node arrives at the execution time of the scheduled task, the database determines whether the task is currently locked, if it is not locked, only the time difference between the current time and the time when the task was executed last time When it is greater than the minimum time interval, the execution of the scheduled task is triggered. In this way, it can be ensured that the cluster timing scheduling task will not cause multiple execution problems due to the time of different nodes not being synchronized. In addition, the database only needs to maintain information such as the scheduling time and lock status information for each timing scheduling task. The maintenance...

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 control method for cluster timing scheduling tasks. According to the control method, the time intervals of executing the tasks are controlled within a certain scope in the task scheduling process, a database only needs to maintain information like scheduling time and locking states of each timing scheduling task, and the timing scheduling tasks are executed without the limitation of nodes. According to the control method, the problem that the timing scheduling tasks are executed repeatedly due to desynchrony of machine time can be avoided, and the control method brings advantages of high concurrency and high stability of a cluster system into full play and can greatly reduce application embeddedness.

Description

Technical field [0001] The present invention relates to task scheduling technology of a cluster system, in particular to a method for controlling cluster timing scheduling tasks. Background technique [0002] With the development of computer technology, more and more services and applications need to be deployed in server clusters, which means that an application will be deployed on multiple machines or a machine will deploy multiple instances of the same application (also known as node). On the other hand, regular scheduling processing is often required in applications, such as bank interest settlement at 1:00 am every day, or e-commerce system statistics on merchandise sales every few hours. [0003] The combination of the above two scenarios results in such a problem: usually scheduled tasks can only be executed once at a specified scheduling time (for example, interest settlement scheduling tasks need to be settled once at 1 am), but if each application node does not The task...

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
IPC IPC(8): G06F9/48G06F9/52
Inventor 张世彬
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More