Cluster system fragmentation timing task scheduling method and cluster system

A technology for timed tasks and cluster systems, applied in resource allocation, program control design, instrumentation, etc., can solve problems such as system resource waste, data and program errors, and low system intrusion, so as to reduce scheduling difficulty and balance cluster system load. , less invasive effect

Pending Publication Date: 2020-01-17
深圳市递四方信息科技有限公司
View PDF9 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When a user uses a scheduled task, that is, executes a certain software program at an agreed time point, such as performing database backup and report statistics at zero o'clock every day, all belong to scheduled tasks. Due to the deployment of the cluster system, the program will be blocked. The software deployed to multiple machines is executed multiple times at the same time, which will lead to waste of system resources, and problems such as data and program errors due to repeated execution. If the scheduled tasks of other cluster nodes are closed, the scheduled tasks will always be in a Execute on some fixed cluster nodes, other nodes are always idle, cannot make full use of resources for distributed parallel computing, resulting in waste of idle system resources
[0003] Therefore, it is necessary to propose a method for scheduling scheduled tasks in the cluster system fragmentation, which can be used in the cluster system environment without additional development of new systems, and is less intrusive to the system. The problem of making full use of resources for distributed parallel computing

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
  • Cluster system fragmentation timing task scheduling method and cluster system
  • Cluster system fragmentation timing task scheduling method and cluster system
  • Cluster system fragmentation timing task scheduling method and cluster system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Embodiment 1 of the present invention provides a method for scheduling scheduled tasks in cluster system slices. A scheduled task may be a task triggered at a preset time, or a task triggered at a preset period. The triggering of a scheduled task refers to The timing task starts to be executed when the execution condition of the timing task is satisfied, for example, when the preset trigger time of the timing task is reached, the timing task starts to execute.

[0037] In various existing systems, such as management systems, scheduled tasks are very common types of functions. For example, the scheduled task can be to periodically compress the newly obtained data in the database, filter the data at a fixed time every day, perform database backup and report statistics at zero o'clock every day. After the scheduled task is created, the server or application that creates the scheduled task can automatically start a thread or process to make the scheduled task execute at a s...

Embodiment 2

[0094] This embodiment provides an apparatus for scheduling scheduled tasks of a cluster system slice, which is used to execute the method according to any one of the embodiments. like image 3 As shown, it is a structural block diagram of a cluster system fragment timing task scheduling device in this embodiment, including:

[0095] Obtaining the node number module 10: used to obtain the node number of the cluster node;

[0096] Application credential module 20: used for cluster nodes to access the distributed cache service to apply for a credential;

[0097] Allocating scheduling control authority module 30: used to obtain the scheduling control authority for the cluster node that has applied for the voucher as a scheduling node;

[0098] Executing scheduled task module 40: used for scheduling nodes to select a corresponding number of cluster nodes from the cluster nodes as execution nodes according to the number of fragments of the scheduled task, the node number of the e...

Embodiment 3

[0102] This embodiment provides a cluster system, including a plurality of cluster nodes, each cluster node has a unique node number, when the cluster system issues a scheduled task, according to a cluster system fragmentation scheduled task scheduling according to any one of the embodiments The method selects the scheduling node among the cluster nodes, and obtains the execution node of each scheduled task fragment through calculation, and the execution node obtains the execution permission of the fragment.

[0103] In addition, the present invention also provides a cluster system shard timing task scheduling device, including:

[0104] at least one processor, and a memory communicatively coupled to the at least one processor;

[0105] Wherein, the processor is used to execute the method described in Embodiment 1 by invoking the computer program stored in the memory. The computer program is the program code. When the program code runs on the cluster system fragment timing ta...

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 cluster system fragmentation timing task scheduling method and a cluster system, and relates to the field of computer software. The cluster system fragmentation timing task scheduling method comprises the following steps that by acquiring a node number of a cluster node and a fragment serial number of a timing task, a cluster node accesses a distributed cache service to apply a certificate; the cluster node which applies for the certificate serves as scheduling node to obtain the scheduling control authority, and then the scheduling node selects the cluster node withthe corresponding number from the cluster nodes as an execution node according to the number of the fragments of the timing task; the node numbers of the execution nodes correspond to the fragment serial numbers; and the execution node obtains the execution authority of the fragments. The problem that in the prior art, resources cannot be fully utilized for distributed parallel computing when timed tasks are executed is solved, and one timed task is fragmented into a plurality of small tasks to be executed on a plurality of cluster nodes at the same time, so that cluster system resources are fully utilized, and cluster system loads are balanced, and timed task scheduling difficulty is lowered.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a scheduling method for fragmented timing tasks of a cluster system and the cluster system. Background technique [0002] In software system applications, in order to improve system performance, reliability, availability, etc., users will use cluster deployment to deploy a software program to run on multiple machines. When a user uses a scheduled task, that is, executes a certain software program at an agreed time point, such as performing database backup and report statistics at zero o'clock every day, all belong to scheduled tasks. Due to the deployment of the cluster system, the program will be blocked. The software deployed to multiple machines is executed multiple times at the same time, which will lead to waste of system resources, and problems such as data and program errors due to repeated execution. If the scheduled tasks of other cluster nodes are closed, the scheduled ...

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/50
CPCG06F9/5088G06F9/5016
Inventor 王存思翁裂加
Owner 深圳市递四方信息科技有限公司
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