Task scheduling method and system

A technology of task scheduling and tasks, which is applied in the field of task scheduling and systems, can solve problems such as inability to guarantee high reliability and scalability, and achieve the effect of guaranteeing execution effects

Pending Publication Date: 2021-02-26
SHANGHAI BILIBILI TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The existing technology assigns tasks through the master node. In order to ensure consistency, the master is usually a single point, and additional verification logic is required to ensure that the task is executed at least once
At the same time, the entire system is also limited to a single master, and the system as a whole cannot guarantee high reliability and scalability

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] figure 2 A flowchart of the method according to Embodiment 1 of the present application is schematically shown. It can be understood that this method embodiment can be executed in the mobile terminal 11, and the flowchart of this method embodiment is not used to limit the sequence of execution steps.

[0048] Such as figure 2 As shown, the task scheduling method may include steps S200-S208, wherein:

[0049] Step S200, start the target process and register the target process in the server.

[0050] example, such as image 3 As shown, step S200 includes S300-S302. Wherein, step S300, start the target process; step S302, if start the target process successfully, register the target process with the server according to the registration name of the target process, the registration name includes: host name and process number. Specifically, the mobile terminal 11 starts successfully, registers the node to zookeeper 12, and the registration name needs to be globally un...

Embodiment 2

[0071] Figure 7 A flowchart of task scheduling according to Embodiment 2 of the present application is schematically shown. It can be understood that the flowchart in this method embodiment is not used to limit the sequence of execution steps. The following takes worker11 as the execution subject for an exemplary description.

[0072] Among them, such as Figure 7 As shown, the screen projection method may include steps S700-S728, wherein:

[0073] Step S700, the worker starts and registers the node with zookeeper;

[0074] Step S702, judging whether the registration of zookeeper is successful;

[0075] Step S704, if zookeeper fails to register successfully, exit;

[0076] Step S706, if the zookeeper registration is successful, execute the task in this period;

[0077] Step S708, obtaining a full list of workers and sorting them by name;

[0078] Step S710, obtaining the task list and sorting it according to the ID;

[0079] Step S712, calculate the task list that nee...

Embodiment 3

[0103] Figure 8 Schematically shows a block diagram of a task scheduling system according to Embodiment 3 of the present application, the task scheduling system can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are composed of Executed by one or more processors to complete the embodiments of the present application. The program modules referred to in the embodiments of this application refer to a series of computer program instruction segments capable of accomplishing specific functions. The following description will specifically introduce the functions of each program module in this embodiment.

[0104] Such as Figure 8 As shown, the task scheduling apparatus 800 may include a registration module 800 , a first acquisition module 802 , a second acquisition module 804 , an allocation module 806 , and an execution module 808 . in,

[0105] A registration module 800, configured to start a target process and regi...

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 task scheduling method and system, computer equipment and a computer readable storage medium. The method comprises the steps: starting a target process, andregistering the target process in a server: obtaining a process list from the server, and obtaining the recognition of the target process according to the process list; obtaining a task list from a database, wherein the task list comprises a plurality of task identifiers corresponding to a plurality of tasks; allocating a plurality of target tasks in the plurality of tasks to the target process according to the identifier of the target process and the plurality of task identifiers; and executing the plurality of target tasks through the target process. The task scheduling method and device donot depend on a centralized scheduling module, the task is scheduled to a distributed system to be executed, and the execution effect of the task at least one can be guaranteed.

Description

technical field [0001] The embodiments of the present application relate to the field, and in particular, to a task scheduling method, system, computer equipment, and computer-readable storage medium. Background technique [0002] In the monitoring system, there are tens of thousands of periodic monitoring tasks. If the monitoring tasks are missed, serious consequences may occur. [0003] The existing technology assigns tasks through the master node. In order to ensure consistency, the master is usually a single point, and additional verification logic is required to ensure that the task is executed at least once. At the same time, the entire system is also limited to a single master, and the system as a whole cannot guarantee high reliability and scalability. Contents of the invention [0004] The purpose of the embodiments of the present application is to provide a task scheduling method, system, computer equipment, and computer-readable storage medium, aiming to solve ...

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/4881G06F9/5083
Inventor 王翔宇
Owner SHANGHAI BILIBILI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products