Cluster system timing task scheduling method and cluster system

A technology for timed tasks and cluster systems, applied in the direction of program startup/switching, resource allocation, program control design, etc., can solve problems such as increasing development and maintenance workload, increasing system complexity, reducing system security, etc., to ensure security. reliability and reliability, reduce the difficulty of scheduling, and solve the effect of repeated execution

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

AI Technical Summary

Problems solved by technology

[0004] However, this implementation scheme has obvious disadvantages. 1) It is necessary to add a scheduled task server, which will increase the complexity of the system; 2) In addition to developing on the target system, it also needs to be developed on the scheduled task server, which increases development and maintenance work 3) Timed tasks are packaged into external interfaces, which will reduce system security; 4) Additional development work is required to ensure the reliability and availability of the timed task server itself
Therefore, it is necessary to propose a scheduling method for scheduled tasks in a cluster system, which can solve the problem of multiple scheduled tasks under the premise of ensuring the security and reliability of the cluster system without additional development of new systems in the cluster system environment. The problem of repeated execution of cluster nodes

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] Embodiment 1 of the present invention provides a scheduled task scheduling method for a cluster system. A scheduled task may be a task that is triggered to be executed at a preset time, or a task that is triggered to be executed at a preset period. The timing task starts to execute when the execution condition of the timing task is met. For example, when the preset trigger time of the timing task is reached, the timing task starts to execute.

[0036] 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 specified trigger t...

Embodiment 2

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

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

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

[0075] Executing the scheduled task module 30: used for the cluster node that has applied for the certificate as an execution node to obtain the execution authority to execute the scheduled task.

[0076] The specific details of the module of the cluster system timing task scheduling device described above have been described in detail in the cluster system timing task scheduling method corresponding to Embodiment 1, so details will no...

Embodiment 3

[0078] 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 scheduled task scheduling as described in any one of the embodiments The method selects an execution node among the cluster nodes to execute the scheduled task.

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

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

[0081] 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 timing task scheduling device, the program code is used to make the cluster system timing task scheduling device execute the steps in the cluster system timing task...

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 timing task scheduling method and a cluster system. The cluster system timing task scheduling method relates to the field of computer software, and comprises the following steps: obtaining node numbers of cluster nodes, starting a logic control timing task on each cluster node, accessing a distributed cache service application certificate by utilizing the logic control timing task, and taking the cluster node applying the certificate as an execution node to obtain an execution authority to execute the timing task. The cluster system timing task scheduling method solves the problem that the timed task is repeatedly executed by a plurality of cluster nodes in the prior art, can be implemented in an original cluster system environment, and does not need to additionally develop a new system, so that the invasiveness to the system is small while the safety and reliability of the cluster system are ensured; and the execution permission is judged through the certificate, so that the timed task scheduling difficulty is reduced. The cluster system timing task scheduling method can be widely applied to a distributed architecture cluster system.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a cluster system timing task scheduling method 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 execution of 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. [0003] How to execute scheduled tasks in a cluster environment, there are cur...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48G06F9/50
CPCG06F9/4881G06F9/5083
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