CN110750343B - Cluster system timing task scheduling control method and cluster system - Google Patents

Cluster system timing task scheduling control method and cluster system Download PDF

Info

Publication number
CN110750343B
CN110750343B CN201910892326.2A CN201910892326A CN110750343B CN 110750343 B CN110750343 B CN 110750343B CN 201910892326 A CN201910892326 A CN 201910892326A CN 110750343 B CN110750343 B CN 110750343B
Authority
CN
China
Prior art keywords
node
cluster
scheduling
timing task
executing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910892326.2A
Other languages
Chinese (zh)
Other versions
CN110750343A (en
Inventor
王存思
翁裂加
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen 4px Information Technology Co ltd
Original Assignee
Shenzhen 4px Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen 4px Information Technology Co ltd filed Critical Shenzhen 4px Information Technology Co ltd
Priority to CN201910892326.2A priority Critical patent/CN110750343B/en
Publication of CN110750343A publication Critical patent/CN110750343A/en
Application granted granted Critical
Publication of CN110750343B publication Critical patent/CN110750343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for controlling the timing task scheduling of a cluster system and the cluster system. The method comprises the steps that a cluster node accesses a distributed cache service application certificate, the cluster node applying the certificate is used as a scheduling node to obtain scheduling control authority, the scheduling node calculates the node number of an executing node from the cluster node according to a node routing rule, and the executing node obtains the executing authority to execute a timing task. The method solves the problems of inflexibility and unbalanced load of the timing task selection execution node in the prior art, does not need to additionally develop a new system in the cluster system environment, has small invasiveness to the system, judges the scheduling control authority through the certificate on the premise of ensuring the safety and the reliability of the cluster system, and then selects the execution node to execute the timing task through the scheduling node, thereby improving the selection flexibility of the execution node, balancing the load of the cluster system and reducing the scheduling difficulty of the timing task.

Description

Cluster system timing task scheduling control method and cluster system
Technical Field
The invention relates to the field of computer software, in particular to a cluster system timing task scheduling control method and a cluster system.
Background
In software system applications, in order to improve performance, reliability, availability, etc. of the system, users may deploy a software program to a plurality of machines to run using a cluster deployment approach. When a user uses a timing task, i.e. executes a certain software program at a certain appointed time point, such as database backup, report statistics and other operations all belong to the timing task, the program can be deployed to software execution of a plurality of machines and executed for a plurality of times due to the deployment of a cluster system, thus the waste of system resources can be caused, and the problems of data and program errors and the like due to repeated execution are caused.
How to execute the timing task in the cluster environment, some implementation schemes exist at present, and it is quite common to separately deploy the timing task server, in this case, the cluster system needs to add an external interface to access the executed target program through the external interface, develop the timing task server at the same time, and configure a time rule on the server, and access the external interface regularly to execute the timing task, because the access of the external interface only receives and processes at a certain node in the cluster system, the phenomenon that multiple nodes repeatedly execute the same timing task does not occur.
However, this implementation has significant drawbacks, 1) the need to add a timed task server increases system complexity; 2) Besides development on the target system, development on the timing task server is also needed, and development and maintenance workload is increased; 3) The timing task is packaged into an external interface, so that the system security is reduced; 4) Additional development work is required to ensure the reliability and availability of the timed task server itself. Therefore, the method for controlling the timing task scheduling of the cluster system needs to be provided, and the problems of inflexibility and unbalanced load of timing task selection executing nodes can be solved under the premise of ensuring the safety and reliability of the cluster system, without additionally developing a new system under the cluster system environment.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems in the related art to some extent. To this end, the present invention aims to provide a method for scheduling control timing tasks for a cluster system.
The technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a method for controlling timing task scheduling of a cluster system, including:
acquiring node numbers of cluster nodes;
the cluster node accesses a distributed cache service application certificate;
the cluster node applied to the certificate is used as a scheduling node to obtain scheduling control authority;
and the scheduling node calculates the node number of the executing node from the cluster node according to the node routing rule, and the executing node obtains the executing authority to execute the timing task.
Further, the scheduling node issues a timing task message to the distributed cache, the timing task message includes a node number of an executing node, and the cluster node subscribes to receive the timing task message and judges whether the executing authority exists.
Further, the node routing rule includes: sequential selection, reverse selection, polling selection, random selection, and designation of numbers.
Further, the dispatch node updates and holds the certificate mark after applying for the certificate, and the composition of the certificate comprises: node identification and credential expiration time.
Further, the scheduling node renews the credential expiration time for a period of time before the credential expiration time arrives.
Further, when the scheduling node is down, each cluster node re-applies for the credential request scheduling control authority after the credentials of the scheduling node expire.
In a second aspect, the present invention further provides a device for controlling timing task scheduling of a cluster system, including:
the node numbering module is obtained: the node numbering method comprises the steps of obtaining node numbers of cluster nodes;
application credential module: the distributed cache service application certificate is used for the cluster node to access the distributed cache service application certificate;
and a dispatch control authority allocation module: the cluster node used for applying the certificate is used as a dispatching node to obtain dispatching control authority;
executing a timing task module: and the node number of the executing node is calculated from the cluster nodes according to the node routing rule by using the scheduling node, and the executing node obtains the executing authority to execute the timing task.
In a third aspect, the present invention further provides a cluster system, where the cluster system includes a plurality of cluster nodes, each cluster node has a unique node number, when the cluster system issues a timing task, a scheduling node is selected from the cluster nodes according to a method for scheduling a timing task of the cluster system as described in any one of the first aspects, and a node number of an executing node is obtained by calculation, where the executing node obtains an executing authority for executing the timing task.
In a fourth aspect, the present invention provides a cluster system timing task scheduling control device, including:
at least one processor, and a memory communicatively coupled to the at least one processor;
wherein the processor is adapted to perform the method according to any of the first aspects by invoking a computer program stored in the memory.
In a fifth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method of any one of the first aspects.
The beneficial effects of the invention are as follows:
the invention obtains the node number of the executing node by obtaining the node number of the cluster node, the cluster node accesses the distributed cache service application certificate, the cluster node applied to the certificate is used as a dispatching node to obtain the dispatching control authority, the dispatching node calculates the node number of the executing node from the cluster node according to the node routing rule, and the executing node obtains the executing authority to execute the timing task. The method solves the problems of inflexibility and unbalanced load of the timing task selection execution node in the prior art, does not need to additionally develop a new system in the cluster system environment, has small invasiveness to the system, judges the scheduling control authority through the certificate on the premise of ensuring the safety and the reliability of the cluster system, and then selects the execution node to execute the timing task through the scheduling node, thereby improving the selection flexibility of the execution node, balancing the load of the cluster system and reducing the scheduling difficulty of the timing task.
Furthermore, the embodiment uses the message publishing and subscribing functions of the distributed cache service, so that each cluster node can receive the timing task message, the designated timing task executing node processes the timing task message, the executing node is flexibly selected by scheduling according to various node routing rules, and the load of the cluster system is balanced.
The method can be widely applied to a distributed architecture cluster system.
Drawings
FIG. 1 is a flow chart illustrating an implementation of one embodiment of a method for controlling a clustered system timing task schedule in accordance with the present invention;
FIG. 2 is a flow chart of an embodiment of a method for controlling the timing task scheduling of a cluster system according to the present invention;
FIG. 3 is a block diagram illustrating an embodiment of a cluster system timing task scheduling control apparatus according to the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will explain the specific embodiments of the present invention with reference to the accompanying drawings. It is evident that the drawings in the following description are only examples of the invention, from which other drawings and other embodiments can be obtained by a person skilled in the art without inventive effort.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Embodiment one:
the first embodiment of the present invention provides a method for controlling scheduling of a timing task in a cluster system, where the timing task may be a task that is triggered to execute at a preset time, or may be a task that is triggered to execute according to a preset period, where the triggering of the timing task refers to starting to execute the timing task when an execution condition of the timing task is met, for example, when a preset triggering time of the timing task is reached, the timing task starts to execute.
Timing tasks are a very common type of function in existing systems, such as management systems. For example, the timing tasks may be compressing data newly obtained from the database on a regular basis, filtering the data once at a fixed time of day, performing database backup at a time point of zero day, reporting statistics, etc. After the timing task is created, a server or application that creates the timing task may automatically start a thread or process to cause the timing task to execute at a specified trigger time or at a certain period.
Fig. 1 is a flowchart of an implementation of a method for controlling timing task scheduling of a cluster system according to an embodiment of the present invention, as shown in fig. 1, where the method includes the following steps:
s1: and acquiring the node number of the cluster node.
In this embodiment, each node in the cluster is numbered to obtain the node number of each cluster node, which is used to distinguish different cluster nodes, for example, a unique identity is generated for each cluster node by a random generation manner.
S2: the cluster node accesses the distributed cache service application certificate, and further, the certificate is unique and is cache data comprising a node identifier and a certificate expiration time, wherein the node identifier is the node number of the cluster node successfully applying for the certificate.
In the cluster environment of this embodiment, each cluster node applies for credentials for a distributed cache service, and the cache server maintains a node number list, and at the same time, utilizes the functions of publishing and subscribing the messages of the distributed cache service, and each cluster node subscribes to the distributed cache service for a timing task message.
S3: the cluster node applied to the certificate is used as a dispatching node to obtain dispatching control authority.
In this embodiment, the cluster node that obtains the credentials is used as a scheduling node for scheduling and selecting a certain cluster node to execute the timing task. The function of adopting the unique certificate is to ensure that only one scheduling node in the current cluster environment plays a scheduling role.
S4: the scheduling node dynamically calculates the node number of the executing node from the cluster nodes according to the node routing rule, and the executing node obtains the executing authority to execute the timing task.
In this embodiment, the node routing rule includes: sequential selection, reverse selection, polling selection, random selection, and designation of numbers. Specific: 1) Sequentially selecting: for example, starting from the first node to the last node in the node numbering order; 2) Selection is described: for example, from the last node to the first node in the order of node number; 3) And (3) polling selection: the method comprises the steps of sending query information at regular time, querying whether the nodes in each cluster system can provide service or not according to a certain sequence, and querying the next process after the service is finished, wherein the process is repeated continuously; 4) Randomly selecting: selecting a node, for example, based on a random number; 5) Number is designated: for example, the execution node is specified according to actual needs.
It may be understood that the node routing rules in this embodiment may be used in a cross manner, for example, when the executing node is selected for the first time, the executing node is selected according to a sequential selection manner, after the timing task is executed, the executing node is selected for the next time according to a random selection manner, so that the selecting of different node routing rules may be performed according to actual requirements, and flexibility of executing node selection is ensured, which is not limited herein specifically.
S5: the scheduling node issues timing task information to the distributed cache, the timing task information comprises the node number of the executing node, the cluster node subscribes to receive the timing task information, and whether the executing authority exists or not is judged.
Specifically, the cluster node receives the subscribed timing task information, and simultaneously judges whether the executing node of the timing task is self, if so, the executing node has executing authority to execute the timing task, otherwise, the timing task is ignored.
It may be understood that in this embodiment, after the scheduling node calculates the node number of the executing node, the scheduling node may only return the node number, and when the timing task is issued by the cluster system, the node number (i.e. the timing task executor) information and the timing task are issued to the cluster node subscribing the timing task at the same time.
The implementation mode of the embodiment is simple, no additional development system is needed, so that the complexity of the cluster system is low, the development cost is low, meanwhile, the development efficiency is high because development and maintenance of codes on a plurality of systems are not needed, and the system safety is improved because the timing task execution program is not needed to be packaged by an external interface.
Further, the dispatching node can renew the certificate expiration time in a renewal way before the certificate expiration time arrives, namely, the certificate expiration time is renewed in a renewal way before the certificate expiration, once a certain cluster node successfully applies for the certificate, the cluster node can always hold the certificate in a renewal way, and has dispatching authority to execute node dispatching, the effect is equivalent to single machine dispatching, and other cluster nodes have no dispatching authority because the certificate is not applied for, so that a plurality of nodes with dispatching authority are avoided under a cluster system, and the dispatching efficiency is improved.
Further, when the scheduling node is down, the credentials of the scheduling node are not in a period of time before the credentials are out of date, so that after the credentials are out of date, the rest cluster nodes apply the credentials to the distributed cache again and perform a period of time as required to become a new scheduling node to execute a scheduling task.
The above process is to improve the fault tolerance performance of the cluster system, because the certificates held by the cluster nodes in the embodiment contain certificate failure time, when the dispatching nodes fail and crash, the certificates fail temporarily at the certificate failure time, so that other nodes in the cluster system can apply for the certificates, have dispatching authority, ensure that the timing tasks are not delayed due to the crash of the dispatching nodes, ensure that the timing tasks continue to be executed, and improve the reliability of the cluster system.
As shown in fig. 2, a specific flowchart of a method for controlling the timing task scheduling of the cluster system according to the present embodiment is provided. As can be seen in connection with fig. 2, it is divided into two parts: the logic controls the timed task portion and the timed task portion, and the flow is described below with respect to cluster node a and cluster node B.
The execution of node a is as follows, assuming node a applies for the first time to apply for credentials.
S11: node a generates a node number that is a unique identification of node a, e.g., "a".
S12: the node A starts the certificate application and simultaneously starts a renewal timer, and when the node A applies for the certificate, the renewal timer checks the current time to realize the renewal of the certificate before the certificate expiration time.
S13: node a applies for obtaining credentials from the distributed cache, the credentials comprising: node identification and credential expiration time, optionally, the data structure of the credential includes: a KEY, a value and a credential expiration time, wherein the KEY is a fixed value for performing credential identification, e.g. "schedule_key", and the value is used for saving node identification, i.e. node number "a" of node a, and the credential expiration time can be set according to requirements, e.g. to 60s.
S14: and judging whether the certificate is applied by other nodes, namely whether the certificate with the KEY of 'SCHEDULE_KEY' exists, if so, entering the next step, otherwise, returning the certificate to be empty.
S15: a credential for the distributed cache data is generated while node a owns the credential.
S16: node a updates the "hold credential flag" to "yes" after applying for credentials as a scheduling node.
S21: the node A starts a task timer which is used for checking whether the current time point meets the preset time condition of the timing task, and if so, the next step is carried out.
S22: judging whether the node A holds the certificate, namely judging whether the "holding certificate mark" of the node A is yes, if yes, entering the next step.
S31: the node A obtains a cluster node ID list from the distributed cache service.
S32: the node number of the executing node is calculated according to the node routing rule, for example: "B".
S33: the node A issues a timing task message to the distributed cache service, and the timing task is executed manually as 'B', namely the node B has executing authority as an executing node.
S41: node a subscribes to the timed task message with the distributed cache service.
S42: node a receives the timed task message from the distributed caching service and ignores the message because the executor of the timed task message is "B".
The node B performs as follows.
S11: the node B generates a node number, which is a unique identification of the node B, e.g. "B".
S12: the node B starts the certificate application and starts a renewal timer, and when the node B applies for the certificate, the renewal timer checks the current time to realize the renewal of the certificate before the certificate expiration time.
S13: the node B applies for the acquisition credentials to the distributed cache.
S14: the node B checks that the credential has been applied by node a, i.e. the credential has a KEY "schedulejkey" and the value of this credential is "a".
S16: the node B updates the "hold credential flag" to "no".
S21: the node B starts a task timer for checking whether a current point in time satisfies a preset time condition for timing a task, and if so, proceeds to the next step.
S22: judging that the holding certificate of the node B is marked as no, and not executing tasks by the node B.
S41: the node B subscribes to the timed task message with the distributed cache service.
S42: the node B receives the timing task message from the distributed cache service, and as the executor of the timing task message is "B", the node B obtains the execution authority as the execution node, and executes the timing task.
When the node A is down, the certificate of the node A is not in the front of the certificate expiration time, so that after the certificate is out of date, the node B can apply for the certificate and perform the renewal according to the need, and the operation process of the node A is the same as that of the node A.
It can be understood that when the scheduling node performs scheduling, all cluster nodes are selected according to the node routing rule, so that the scheduling node is allowed to be used as an executing node, and in combination with fig. 2, that is, the node a is used as the scheduling node, the executing node obtained by calculating the node routing rule may be "a", when the node a receives the timing task message from the distributed cache service, the executing person knowing the timing task message is "a", and at this time, the node a is used as the executing node, obtains the executing authority, and executes the timing task.
Likewise, it may be understood that, in this embodiment, after the timing task is executed once, the scheduling node of the next timing task may be selected again by applying for credentials, so long as only one scheduling node of the timing task can be guaranteed to have scheduling rights, the timing task executed by the executing node is dynamically calculated according to the node routing rule, so that whether the node is the same node at each time is regarded as the scheduling node, which is not limited in this embodiment.
By adopting the message publishing and subscribing functions of the distributed cache service, each cluster node can receive the timing task message and is processed by the designated timing task executing node, so that the problem that the timing task is repeatedly executed by a plurality of cluster nodes is effectively solved, and meanwhile, the cluster system load is balanced by scheduling through the node routing rule.
Furthermore, in the embodiment, the cluster system is a Redis cluster system, and the Redis cluster system is a high-availability high-load cluster scheme, and by applying the method for scheduling the timing tasks of the cluster system in the embodiment, the execution efficiency of the timing tasks of the system can be improved.
The embodiment solves the problems of inflexibility and unbalanced load of the timing task selecting and executing node in the prior art, does not need to additionally develop a new system under the cluster system environment, has small invasiveness to the system, judges the scheduling control authority through the certificate on the premise of ensuring the safety and the reliability of the cluster system, and then selects the executing node to execute the timing task through the scheduling node, thereby avoiding the timing task from being executed on the fixed cluster node all the time, balancing the load of the cluster system and reducing the scheduling difficulty of the timing task.
Embodiment two:
the embodiment provides a cluster system timing task scheduling control device for executing the method according to any one of the embodiments. As shown in fig. 3, a block diagram of a cluster system timing task scheduling control device according to this embodiment includes:
the acquisition node numbering module 10: the node numbering method comprises the steps of obtaining node numbers of cluster nodes;
application credential module 20: the distributed cache service application certificate is used for the cluster node to access the distributed cache service application certificate;
the dispatch control authority module 30: the cluster node used for applying the certificate is used as a scheduling node to obtain scheduling control authority;
execution timing task module 40: and the node number of the execution node is calculated from the cluster nodes by using the scheduling node according to the node routing rule, and the execution node obtains the execution authority to execute the timing task.
Further, the system further includes a timing task management module 50, configured to schedule the nodes to issue timing task messages to the distributed caches, where the timing task messages include node numbers of executing nodes, and the cluster nodes subscribe to receive the timing task messages and determine whether the executing rights exist.
The specific details of the module of the device for controlling the timing task scheduling of the trunking system are described in detail in the method for controlling the timing task scheduling of the trunking system corresponding to the first embodiment, so that the details are not repeated here.
Embodiment III:
the embodiment provides a cluster system, which comprises a plurality of cluster nodes, wherein each cluster node is provided with a unique node number, when the cluster system issues a timing task, a scheduling node is selected from the cluster nodes according to the cluster system timing task scheduling control method according to any one of the embodiments, the node number of an executing node is obtained through calculation, and the executing node obtains the executing authority of executing the timing task.
In addition, the invention also provides cluster system timing task scheduling control equipment, which comprises:
at least one processor, and a memory communicatively coupled to the at least one processor;
wherein the processor is configured to perform the method according to embodiment one by invoking a computer program stored in the memory. The computer program is program code for causing the clustered system timing task scheduling control apparatus to execute the steps in the clustered system timing task scheduling control method described in the above part of the embodiments of the present specification when the program code is run on the clustered system timing task scheduling control apparatus.
In addition, the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions for causing a computer to execute the method according to the first embodiment.
The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to the embodiment of the invention, the cluster node accesses the distributed cache service application certificate, the cluster node applied to the certificate is used as a scheduling node to obtain the scheduling control authority, the scheduling node calculates the node number of the executing node from the cluster node according to the node routing rule, and the executing node obtains the executing authority to execute the timing task. The method can be widely applied to a distributed architecture cluster system.
The above embodiments are only for illustrating the technical solution of the present invention, not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention, and are intended to be included within the scope of the appended claims and description.

Claims (6)

1. The method for controlling the timing task scheduling of the cluster system is characterized by comprising the following steps:
acquiring node numbers of cluster nodes;
the cluster node accesses a distributed cache service application credential, the credential being unique;
the cluster node applied to the certificate is used as a scheduling node to obtain scheduling control authority; updating and holding a certificate mark after the dispatching node applies the certificate, wherein the composition of the certificate comprises the following steps: node identification and credential expiration time; wherein the scheduling node renews the credential expiration time for a period of time before the credential expiration time arrives; when the scheduling node is in downtime, each cluster node re-applies for a credential request scheduling control authority after the credentials of the scheduling node expire;
the scheduling node calculates a node number of an executing node from the cluster node according to a node routing rule, and the executing node obtains an executing authority to execute the timing task, wherein the node routing rule comprises: sequential selection, reverse selection, polling selection, random selection, and designation of numbers.
2. The method for controlling the scheduling of timed tasks in a clustered system according to claim 1, wherein the scheduling node issues a timed task message to the distributed cache, the timed task message includes a node number of an executing node, and the clustered node subscribes to receive the timed task message and determines whether the executing authority exists.
3. A cluster system timing task scheduling control device, comprising:
the node numbering module is obtained: the node numbering method comprises the steps of obtaining node numbers of cluster nodes;
application credential module: accessing a distributed cache service application credential for the cluster node, the credential being unique;
and a dispatch control authority allocation module: the cluster node used for applying the certificate is used as a dispatching node to obtain dispatching control authority; updating and holding a certificate mark after the dispatching node applies the certificate, wherein the composition of the certificate comprises the following steps: node identification and credential expiration time; wherein the scheduling node renews the credential expiration time for a period of time before the credential expiration time arrives; when the scheduling node is in downtime, each cluster node re-applies for a credential request scheduling control authority after the credentials of the scheduling node expire;
executing a timing task module: the node number of the executing node is calculated from the cluster node by using the scheduling node according to a node routing rule, and the executing node obtains the executing authority to execute the timing task, wherein the node routing rule comprises the following components: sequential selection, reverse selection, polling selection, random selection, and designation of numbers.
4. A cluster system, wherein the cluster system includes a plurality of cluster nodes, each cluster node has a unique node number, when the cluster system issues a timing task, a scheduling node is selected from the cluster nodes according to a cluster system timing task scheduling control method as claimed in any one of claims 1 to 2, and the node number of an executing node is obtained by calculation, and the executing node obtains an executing authority for executing the timing task.
5. A cluster system timing task scheduling control device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the processor is adapted to perform the method of any of claims 1 to 2 by invoking a computer program stored in the memory.
6. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 2.
CN201910892326.2A 2019-09-20 2019-09-20 Cluster system timing task scheduling control method and cluster system Active CN110750343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910892326.2A CN110750343B (en) 2019-09-20 2019-09-20 Cluster system timing task scheduling control method and cluster system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910892326.2A CN110750343B (en) 2019-09-20 2019-09-20 Cluster system timing task scheduling control method and cluster system

Publications (2)

Publication Number Publication Date
CN110750343A CN110750343A (en) 2020-02-04
CN110750343B true CN110750343B (en) 2023-12-12

Family

ID=69276718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910892326.2A Active CN110750343B (en) 2019-09-20 2019-09-20 Cluster system timing task scheduling control method and cluster system

Country Status (1)

Country Link
CN (1) CN110750343B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910952B (en) * 2021-01-13 2022-08-23 叮当快药科技集团有限公司 Distributed task scheduling method and device, storage medium and electronic device
CN112817717B (en) * 2021-01-28 2024-02-09 新华三大数据技术有限公司 Scheduling method and device for timing tasks
CN112905699B (en) * 2021-02-23 2024-04-09 京东科技信息技术有限公司 Full data comparison method, device, equipment and storage medium
CN114640618B (en) * 2022-03-15 2024-03-12 平安国际智慧城市科技股份有限公司 Cluster route scheduling method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105531675A (en) * 2013-06-19 2016-04-27 日立数据系统工程英国有限公司 Decentralized distributed computing system
CN105991463A (en) * 2015-02-13 2016-10-05 阿里巴巴集团控股有限公司 Method and system for realizing flow control, message main node, and token server
US10133619B1 (en) * 2015-06-08 2018-11-20 Nutanix, Inc. Cluster-wide virtual machine health monitoring
CN110247954A (en) * 2019-05-15 2019-09-17 南京苏宁软件技术有限公司 A kind of dispatching method and system of distributed task scheduling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105531675A (en) * 2013-06-19 2016-04-27 日立数据系统工程英国有限公司 Decentralized distributed computing system
CN105991463A (en) * 2015-02-13 2016-10-05 阿里巴巴集团控股有限公司 Method and system for realizing flow control, message main node, and token server
US10133619B1 (en) * 2015-06-08 2018-11-20 Nutanix, Inc. Cluster-wide virtual machine health monitoring
CN110247954A (en) * 2019-05-15 2019-09-17 南京苏宁软件技术有限公司 A kind of dispatching method and system of distributed task scheduling

Also Published As

Publication number Publication date
CN110750343A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN110750343B (en) Cluster system timing task scheduling control method and cluster system
CN106789362B (en) Equipment management method and network management system
JP5206674B2 (en) Virtual machine management apparatus, virtual machine management method, and virtual machine management program
CN110704172B (en) Cluster system timing task scheduling method and cluster system
CN108717379B (en) Electronic device, distributed task scheduling method and storage medium
CN110704185B (en) Cluster system fragmentation timing task scheduling method and cluster system
US10977070B2 (en) Control system for microkernel architecture of industrial server and industrial server comprising the same
CN106817408B (en) Distributed server cluster scheduling method and device
CN101969399B (en) Routing method and system for clients to call services
EP3306866B1 (en) Message processing method, device and system
US20180242177A1 (en) Monitoring management method and apparatus
CN107168777B (en) Method and device for scheduling resources in distributed system
CN109257396B (en) Distributed lock scheduling method and device
CN111400039A (en) Control method and device of cloud platform, cloud platform system and electronic equipment
CN107729213B (en) Background task monitoring method and device
CN110737520B (en) Method for dispatching and controlling timing task by cluster system and cluster system
WO2007006859A1 (en) Method and device arrangement for managing a client/server environment
CN109697117B (en) Terminal control method, terminal control device and computer-readable storage medium
CN113660353B (en) Method, device, equipment and medium for managing Provisioner address based on Bluetooth Mesh
CN112612604B (en) Task scheduling method and device based on Actor model
CN113032188B (en) Method, device, server and storage medium for determining main server
CN113127289B (en) Resource management method, computer equipment and storage medium based on YARN cluster
CN115509676A (en) Container set deployment method and device
CN109101260B (en) Node software upgrading method and device and computer readable storage medium
CN112965743A (en) Software change management method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant