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

Distributed task scheduling method and system

A distributed task and scheduling system technology, applied in the field of distributed task scheduling methods and systems, can solve the problems of Yarn's difficulty, poor development skills, and low development efficiency.

Pending Publication Date: 2020-11-06
GUANGZHOU HUYA TECH CO LTD
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the existing technology, the commonly used task scheduling system is Yarn with a master-slave structure. However, Yarn is relatively difficult to use and is not friendly enough for users with poor development skills.
Moreover, for applications with relatively simple business code logic, the development workload is relatively large, and the development efficiency is relatively low. At the same time, because Yarn needs to apply for resources first when starting tasks, the calculation workload of the master node is relatively heavy, which not only cannot meet the high requirements. Concurrent requirements may also cause system downtime due to failure of the master node

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 system
  • Distributed task scheduling method and system
  • Distributed task scheduling method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] figure 1 It is a flow chart of a distributed task scheduling method in Embodiment 1 of the present invention. This embodiment is applicable to the situation where the worker node actively requests tasks from the master node to achieve high concurrent scheduling of tasks. This method can be implemented by distributed task Scheduling means, which can be implemented by software and / or hardware, and generally can be integrated into the work nodes included in the distributed scheduling system. Such as figure 1 As shown, the method is executed by the working nodes included in the distributed scheduling system, and the distributed scheduling system includes multiple master nodes, and the method includes:

[0057] Step 110, periodically send a parameter acquisition request to at least one master node, and receive the task type and the total amount of task load fed back by the master node for local storage.

[0058] It should be noted that the master node and the working node ...

Embodiment 2

[0075] figure 2 It is a flowchart of a distributed task scheduling method in Embodiment 1 of the present invention. This embodiment is applicable to the situation where the master node performs task scheduling according to the task request of the working node to achieve high task concurrency scheduling. This method can be implemented by The distributed task scheduling device can be implemented, and the device can be implemented by software and / or hardware, and can generally be integrated into the master node included in the distributed scheduling system. Such as figure 2 As shown, the method is executed by a master node included in a distributed scheduling system, and a plurality of master nodes are included in the distributed scheduling system, and the method includes:

[0076] Step 210: According to the parameter acquisition request sent by the first target working node, query the metadata database, obtain the task type and the total task load matching the parameter acqui...

Embodiment 3

[0093] image 3 It is a sequence diagram of a distributed task scheduling method in Embodiment 3 of the present invention, and this embodiment can be combined with various optional solutions in the foregoing embodiments. Specifically, refer to image 3 , the method may include the following steps:

[0094] First, the user configures the initialization task parameters for the specified task on the visual task operation interface provided by the front-end operation platform, such as the working node that processes the task, the task type that the working node can handle, and the task load.

[0095] Then, the front-end operating platform sets the task as a ready state, and stores the task identification and the corresponding task state in the state database. After receiving the confirmation response returned by the state database, according to the initialization task parameters configured by the user for the task, such as the task acquisition address, task type, etc., the corre...

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 embodiment of the invention discloses a distributed task scheduling method and system. The method is executed by a working node included in a distributed scheduling system, the distributed scheduling system comprises a plurality of main nodes, and the method comprises the following steps: periodically sending a parameter acquisition request to at least one main node, and receiving a task typeand a total task load fed back by the main node for local storage; when a new task processing condition is detected, calculating a request task number according to the number of tasks in processing and the total task load, and constructing a task acquisition request according to the request task number and the task type; and sending a task acquisition request to a first target main node determinedin the plurality of main nodes, wherein the task acquisition request is used for indicating the first target main node to acquire tasks matched with the request task number and the task type for feedback. According to the technical scheme of the embodiment of the invention, the working node actively requests the task type and the task quantity from the main node, so that the calculation amount ofthe main node is reduced, and the task concurrency supported by the system is improved.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a distributed task scheduling method and system. Background technique [0002] At present, when users develop applications, they need to run applications in parallel on server clusters through a task scheduling system to improve application development. [0003] In the prior art, the commonly used task scheduling system is Yarn with a master-slave structure. However, Yarn is relatively difficult to use and is not friendly enough for users with poor development skills. Moreover, for applications with relatively simple business code logic, the development workload is relatively large, and the development efficiency is relatively low. At the same time, because Yarn needs to apply for resources first when starting tasks, the calculation workload of the master node is relatively heavy, which not only cannot meet the high requirements. Concurrent requir...

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/50
CPCG06F9/5083G06F9/505G06F9/4843Y02D10/00
Inventor 黄强曾耀武
Owner GUANGZHOU HUYA 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