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

Distributed task scheduling method and device, electronic equipment and readable storage medium

A distributed task and task scheduling technology, applied in the field of distributed scheduling, can solve problems such as failure to support failover, split-brain, single point of failure, etc., to avoid single point of failure, high availability, and improve stability and availability.

Inactive Publication Date: 2018-07-20
BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
View PDF6 Cites 50 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Quartz is commonly used as a distributed task scheduling framework in the prior art. There are two ways to use Quartz: one is to integrate the task into the business system, periodically or regularly execute a pre-configured task, task details, trigger time Such information is stored in the local memory, and only one node is executing tasks at the same time, thereby realizing distributed task scheduling. This method has disadvantages such as single point of failure and does not support failover.
The other is the clustered deployment of Quartz. The details of multiple tasks are stored in a database or other distributed storage system and shared by all Quartz task processes (also called nodes). In this way, the system availability is not high. All Quartz nodes Each Quartz node communicates through a shared database. When a network failure occurs, each Quartz node thinks that other Quartz nodes are offline, and thus becomes the master node to take over the entire system. Therefore, a "split brain" phenomenon occurs

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
  • Distributed task scheduling method and device, electronic equipment and readable storage medium
  • Distributed task scheduling method and device, electronic equipment and readable storage medium
  • Distributed task scheduling method and device, electronic equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0070] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments in the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the embodiments of the present invention.

[0071] In the prior art, Quartz is commonly used as a distributed task scheduling framework. There are two ways to use Quartz, one of which has disadvantages such as single point of failure and failure to support failover. In another way, the phenomenon of "split brain" will occur. In order to avoid singl...

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

Embodiments of the invention provide a distributed task scheduling method and device, electronic equipment and a readable storage medium. The method comprises the following steps of: receiving task pulling requests sent by a plurality of task execution nodes at a preset frequency by a main node; distributing a task to a target task execution node by the main node according to the received task pulling request, wherein the target task execution node is a task execution node in the plurality of task execution nodes; receiving a task execution result sent by the target task execution node after executing the distributed task by the main node; and when the fact that the target task execution node has a fault is perceived, transferring an in-execution task queue of the target task execution node to other survived task execution nodes. According to the method and device, the electronic equipment and the readable storage medium, single-point faults can be avoided and the stability and availability of systems can be improved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of distributed scheduling, and in particular, to a distributed task scheduling method and device, electronic equipment, and a readable storage medium. Background technique [0002] In business systems, background tasks are generally used to periodically process some batch jobs (tasks) to improve user experience and increase system scalability, so distributed task scheduling is widely used. [0003] In the prior art, Quartz is commonly used as a distributed task scheduling framework. Quartz has two ways to use: one is to integrate tasks into the business system, and execute a pre-configured task periodically or regularly, task details, trigger time Such information is stored in the local memory, and only one node is executing tasks at the same time, thereby realizing distributed task scheduling. This method has disadvantages such as single point of failure and does not support failov...

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/48G06F11/07G06F11/20
CPCG06F9/4881G06F11/0796G06F11/203
Inventor 伍佳
Owner BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
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