CN110750343A - 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
CN110750343A
CN110750343A CN201910892326.2A CN201910892326A CN110750343A CN 110750343 A CN110750343 A CN 110750343A CN 201910892326 A CN201910892326 A CN 201910892326A CN 110750343 A CN110750343 A CN 110750343A
Authority
CN
China
Prior art keywords
node
cluster
scheduling
execution
timing task
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.)
Granted
Application number
CN201910892326.2A
Other languages
Chinese (zh)
Other versions
CN110750343B (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 Quartet Mdt Infotech Ltd
Original Assignee
Shenzhen Quartet Mdt Infotech 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 Quartet Mdt Infotech Ltd filed Critical Shenzhen Quartet Mdt Infotech 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

Images

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 cluster system and a method for controlling timing task scheduling of the cluster system. The method comprises the steps of obtaining a node number of a cluster node, accessing a distributed cache service by the cluster node to apply for a certificate, using the cluster node applying for the certificate as a scheduling node to obtain a scheduling control authority, calculating a node number of an execution node from the cluster node by the scheduling node according to a node routing rule, and obtaining the execution authority by the execution node to execute a timing task. The problems of insufficient flexibility and unbalanced load of timing task selection execution nodes in the prior art are solved, a new system does not need to be additionally developed in a cluster system environment, the intrusiveness of the system is small, the scheduling control authority is judged through a certificate on the premise of ensuring the safety and reliability of the cluster system, the timing task is executed through the scheduling node selection execution nodes, the execution node selection flexibility is improved, the cluster system load is balanced, and the scheduling difficulty of the timing task is reduced.

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, and the like of a system, a user deploys a software program to multiple machines to run in a cluster deployment manner. When a user uses a timing task, namely a certain software program is executed at a certain appointed time point, for example, operations such as database backup and report statistics executed at the time point of zero every day belong to the timing task, due to the deployment of the cluster system, the program can be deployed to software of a plurality of machines to be executed, and is executed for a plurality of times, so that waste of system resources can be caused, and problems such as data and program errors are caused due to repeated execution.
How to execute a timing task in a cluster environment, at present, some implementation schemes exist, and it is common to deploy a timing task server separately, in this case, an external interface needs to be added to a cluster system, so as to access an executed target program through the external interface, simultaneously develop the timing task server, configure a time rule on the server, and periodically access the external interface to execute the timing task.
However, this implementation has significant disadvantages, 1) a timed task server needs to be added, which increases the system complexity; 2) besides the development on the target system, the development also needs to be carried out on a timed task server, so that the development and maintenance workload is increased; 3) the timing task is encapsulated into an external interface, so that the system safety is reduced; 4) additional development effort is required to ensure reliability and availability of the timed task server itself. Therefore, a method for controlling scheduling of a timing task of a cluster system needs to be provided, so that a new system does not need to be additionally developed in a cluster system environment, the intrusiveness to the system is small, and the problems of inflexible selection of execution nodes and unbalanced load of the timing task are solved on the premise of ensuring the safety and reliability of the cluster system.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, the invention aims to provide a method for scheduling and controlling a timing task by 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 scheduling of a timing task in a cluster system, including:
acquiring a node number of a cluster node;
the cluster node accesses a distributed cache service application certificate;
the cluster node applying for the certificate is used as a scheduling node to obtain a scheduling control authority;
and the scheduling node calculates the node number of the execution node from the cluster node according to the node routing rule, and the execution node obtains the execution authority to execute the timing task.
Further, the scheduling node issues a timed task message to the distributed cache, the timed task message includes a node number of an execution node, and the cluster node subscribes to receive the timed task message and determines whether the cluster node has an execution authority.
Further, the node routing rule includes: sequential selection, reverse order selection, round robin selection, random selection, assigned numbers.
Further, the scheduling node updates the held certificate mark after applying for the certificate, and the certificate comprises: node identification and credential expiration time.
Further, the scheduling node renews the credential expiration time before the credential expiration time arrives.
Further, when the scheduling node is down, and the certificate of the scheduling node is expired, each cluster node re-applies for the certificate to request the scheduling control authority.
In a second aspect, the present invention further provides a device for controlling scheduling of a timing task in a cluster system, including:
a node number obtaining module: the node number is used for acquiring the node number of the cluster node;
applying for a voucher module: for the cluster node to access a distributed caching service application credential;
the distribution scheduling control authority module: the cluster node which is used for applying for the certificate is used as a scheduling node to obtain scheduling control authority;
the timing task execution module: and the scheduling node is used for calculating the node number of the execution node from the cluster node according to the node routing rule, and the execution node obtains the execution authority to execute the timing task.
In a third aspect, the present invention further provides a cluster system, where the cluster system includes multiple cluster nodes, each cluster node has a unique node number, and when the cluster system issues a timing task, a scheduling node is selected from the cluster nodes according to the method for controlling scheduling of a timing task in a cluster system according to any one of the first aspect, and a node number of an executing node is obtained through calculation, and the executing node obtains an execution permission to execute the timing task.
In a fourth aspect, the present invention provides a device for scheduling and controlling a timing task in a cluster system, 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 of 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 having stored thereon computer-executable instructions for causing a computer to perform the method of any of the first aspects.
The invention has the beneficial effects that:
the invention obtains the node number of the cluster node, the cluster node accesses the distributed cache service to apply for the certificate, the cluster node applying for the certificate is used as a scheduling node to obtain the scheduling control authority, the scheduling node calculates the node number of the execution node from the cluster node according to the node routing rule, and the execution node obtains the execution authority to execute the timing task. The problems of insufficient flexibility and unbalanced load of timing task selection execution nodes in the prior art are solved, a new system does not need to be additionally developed in a cluster system environment, the intrusiveness of the system is small, the scheduling control authority is judged through a certificate on the premise of ensuring the safety and reliability of the cluster system, the timing task is executed through the scheduling node selection execution nodes, the execution node selection flexibility is improved, the cluster system load is balanced, and the scheduling difficulty of the timing task is reduced.
Further, in this embodiment, using the message publishing and subscribing functions of the distributed cache service, each cluster node can receive the timed task message, process the timed task message by the designated timed task execution node, perform scheduling according to various node routing rules, flexibly select the execution node, and balance the load of the cluster system.
The method can be widely applied to the cluster system with the distributed architecture.
Drawings
FIG. 1 is a flowchart illustrating an implementation of a method for controlling a scheduling of a timing task of a cluster system according to an embodiment of the present invention;
fig. 2 is a specific flowchart of a cluster system timing task scheduling control method according to an embodiment of the present invention;
fig. 3 is a block diagram of a timing task scheduling control apparatus of a cluster system according to a specific embodiment of 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 be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them 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 in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The first embodiment is as follows:
the embodiment of the present invention provides a method for scheduling and controlling a timed task of a cluster system, where the timed task may be a task triggered to be executed at a preset time or a task triggered to be executed according to a preset period, where triggering of the timed task refers to starting execution of the timed task when an execution condition of the timed task is met, for example, when a preset trigger time of the timed task is reached, the timed task starts execution.
Timing tasks are a very common type of function in existing systems, such as management systems. For example, the timing task may be to compress newly acquired data in the database periodically, to screen the data once at a fixed time every day, to perform database backup at a time point of zero time every day, to perform report statistics, and so on. After the timing task is created, the server or application creating the timing task may automatically start a thread or process to make the timing task execute at a specified trigger time or according to a certain period.
Fig. 1 is a flowchart of an implementation of a method for scheduling and controlling a cluster system timing task according to an embodiment of the present invention, and as shown in fig. 1, 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 a 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 in a random generation manner.
S2: the cluster node accesses the distributed cache service to apply for the certificate, further, the certificate is unique and is cache data containing node identification and certificate failure time, wherein the node identification is a node number of the cluster node which successfully applies for the certificate.
In the cluster environment of this embodiment, each cluster node applies for a credential for the distributed cache service, and the cache server maintains a node number list, and simultaneously, each cluster node subscribes to a timed task message to the distributed cache service by using the message publishing and subscribing functions of the distributed cache service.
S3: and the cluster node applying for the certificate is used as a scheduling node to obtain the scheduling control authority.
In this embodiment, the cluster node that obtains the credential is used as a scheduling node for scheduling and selecting a certain cluster node to execute the timing task. The effect of using the unique credentials is to ensure that only one scheduling node in the current cluster environment is scheduling.
S4: and the scheduling node dynamically calculates the node number of the execution node from the cluster node according to the node routing rule, and the execution node obtains the execution authority to execute the timing task.
In this embodiment, the node routing rule includes: sequential selection, reverse order selection, round robin selection, random selection, assigned numbers. Specifically, the method comprises the following steps: 1) and (3) sequential selection: for example, the selection is started from the first node to the last node according to the node number sequence; 2) selecting a reverse narrative: for example, the selection is started from the last node to the first node according to the node number sequence; 3) and (3) polling selection: sending out inquiry information at regular time, inquiring whether the nodes in each cluster system can provide services according to a certain sequence, and inquiring the next and repeated process after the services are finished; 4) random selection: selecting a node, for example, based on a random number; 5) designation number: for example, specifying the execution node according to actual needs.
It can 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 in a sequential selection manner, after the timing task is executed, the executing node in the next time selects the executing node in a random selection manner, and the like, and the selection of the routing rules of different nodes may be performed according to actual requirements, so as to ensure flexibility of executing node selection, which is not specifically limited herein.
S5: the scheduling node issues a timing task message to the distributed cache, the timing task message comprises a node number of an execution node, and the cluster node subscribes to receive the timing task message and judges whether the execution node has an execution authority.
Specifically, the cluster node receives the subscribed timed task message, and simultaneously judges whether the executing node of the timed task is itself, if so, the cluster node has an executing authority to execute the timed task, otherwise, the cluster node ignores the timed task.
It can be understood that, in this embodiment, after the scheduling node obtains the node number of the executing node through calculation, it may also only return the node number, and when the cluster system issues the timing task, the cluster system issues the node number (i.e., the timing task executor) and the timing task 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 cluster system is low in complexity and low in development cost, meanwhile, since development and code maintenance are not needed on a plurality of systems, the development efficiency is high, and since external interface packaging is not needed on a timing task execution program, the system safety is improved.
Further, the scheduling node can renew the certificate failure time in a renewal mode before the certificate failure time is reached, namely, the certificate failure time is revised again in a renewal mode before the certificate failure, once a certain cluster node successfully applies for the certificate, the cluster node can always hold the certificate through the renewal mode and always has scheduling authority to perform node scheduling, the effect is equal to that of single-machine scheduling, and other cluster nodes do not apply for the certificate, so that the scheduling authority does not exist, a plurality of nodes with the scheduling authority under a cluster system are avoided, and the scheduling efficiency is improved.
Further, when the scheduling node goes down, the voucher of the scheduling node is not renewed before the voucher expiry time, so that after the voucher expires, the rest cluster nodes apply for the voucher again to the distributed cache and renew for a new scheduling node to execute the scheduling task as required.
The above process is for improving the fault tolerance of the cluster system, and because the credentials held by the cluster nodes in this embodiment include the credential failure time, when the scheduling node goes down due to a fault, the credentials are temporarily failed in the credential failure time, so that other nodes in the cluster system can apply for the credentials and have a scheduling authority, it is ensured that the timing task is not delayed due to the down of the scheduling node, it is ensured that the timing task continues to be executed, and the reliability of the cluster system is improved.
As shown in fig. 2, a specific flowchart of the method for controlling scheduling of a cluster system timing task provided in this embodiment is shown. As can be seen from fig. 2, the method is divided into two parts: the logic controls the timing task part and the timing task part, and the flow is described below with cluster node a and cluster node B.
Node a performs the process described below, assuming that node a applies for the first application to the credential when applying for it.
S11: node a generates a node number, which is a unique identification of node a, e.g., "a".
S12: the node A starts the voucher application and simultaneously starts a renewal timer, and when the node A applies for the voucher, the renewal timer checks the current time so as to realize voucher renewal before the voucher failure time.
S13: the node A applies for obtaining a certificate from the distributed cache, wherein the certificate comprises: node identification and certificate expiration time, optionally, the data structure of the certificate includes: a KEY, a value and a certificate expiration time, wherein the KEY is a fixed value for performing the certificate identification, such as "SCHEDULE _ KEY", the value is used for saving the node identification, i.e., the node number "a" of the node a, and the certificate expiration time can be set according to the requirement, such as 60 s.
S14: and judging whether the voucher is applied by other nodes, namely judging whether the voucher with the KEY of 'SCHEDULE _ KEY' exists, if so, entering the next step, otherwise, returning the voucher to be null.
S15: a credential for the distributed cached data is generated while node a owns the credential.
S16: after the node A as a scheduling node applies for the certificate, the 'holding certificate mark' is updated to be 'yes'.
S21: the node A starts a task timer, the timer is used for checking whether the current time point meets the preset time condition of the timing task, and if yes, the next step is carried out.
S22: and judging whether the node A holds the certificate, namely judging whether the 'holding certificate mark' of the node A is 'yes', and if the result is 'yes', entering the next step.
S31: node a obtains a list of cluster node IDs 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 timed task message to the distributed cache service, and the execution of the timed task is artificially 'B', namely the node B has the execution authority as an execution node.
S41: node a subscribes to the distributed cache service for timed task messages.
S42: node a receives the timed task message from the distributed caching service and ignores the timed task message because the executor of the message is a "B".
The node B performs the procedure 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 voucher application and simultaneously starts a renewal timer, and when the node B applies for the voucher, the renewal timer checks the current time so as to realize voucher renewal before the voucher failure time.
S13: the node B applies for the acquisition credential from the distributed cache.
S14: node B checks that the credential has been applied by node A, i.e., the credential with the KEY "SCHEDULE _ KEY" exists and has the value "A".
S16: node B updates the "holding credential flag" to "no".
S21: the node B starts a task timer, the timer is used for checking whether the current time point meets the preset time condition of the timing task, and if yes, the next step is carried out.
S22: judging that the 'holding certificate mark' of the node B is known to be 'no', and then the node B does not execute the task.
S41: the node B subscribes to the distributed cache service for the timed task message.
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 serves as an execution node, obtains the execution authority and executes the timing task.
When the node a goes down, the node B may apply for the voucher and continue the voucher as needed after the voucher of the node a expires due to the voucher of the node a not continuing before the voucher expiration time, and the operation process of the node B 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 a situation that the scheduling node itself serves as an execution node is also allowed to occur, in combination with fig. 2, that is, the node a serves as the scheduling node, and the execution node obtained through calculation of the node routing rule may also be "a", when the node a receives the timing task message from the distributed cache service, it is known that an executor of the timing task message is "a", and at this time, the node a serves as the execution node, obtains an execution authority, and executes the timing task.
Similarly, it can be understood that, in this embodiment, after a timing task is executed once, a scheduling node of a next timing task is selected again by applying for a certificate, as long as it can be ensured that only one scheduling node of a timing task has a scheduling authority, a timing task is executed by an executing node obtained by dynamic calculation according to a node routing rule, and as for each time, the same node is not used as a scheduling node, this embodiment is not limited.
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 execution node, the problem that the timing task is repeatedly executed by a plurality of cluster nodes is effectively solved, and meanwhile, the scheduling is carried out through the node routing rule, so that the load of the cluster system is balanced.
Further, in this embodiment, the cluster system is a Redis cluster system, the Redis cluster system is a high-availability and high-load cluster scheme, and the method for scheduling the timed task of the cluster system according to this embodiment can improve the execution efficiency of the timed task of the system.
The embodiment overcomes the problems of inflexible selection of execution nodes and unbalanced load of the timing task in the prior art, a new system does not need to be additionally developed in a cluster system environment, the intrusiveness of the system is small, the scheduling control authority is judged through a certificate on the premise of ensuring the safety and reliability of the cluster system, the timing task is executed through the selection of the execution nodes by the scheduling nodes, the timing task is prevented from being executed on fixed cluster nodes all the time, the load of the cluster system is balanced, and the scheduling difficulty of the timing task is reduced.
Example two:
the present embodiment provides a device for controlling scheduling of a timing task in a cluster system, which is configured to execute the method according to any one of the embodiments. As shown in fig. 3, a block diagram of a timing task scheduling control device of a cluster system in this embodiment includes:
the acquiring node numbering module 10: the node number is used for acquiring the node number of the cluster node;
the application document module 20: the distributed caching service application certificate is used for the cluster node to access;
the distribution scheduling control authority module 30: the cluster node used for applying for the certificate is used as a scheduling node to obtain scheduling control authority;
the timed task execution module 40: and the scheduling node is used for calculating the node number of the execution node from the cluster node according to the node routing rule, and the execution node acquires the execution authority to execute the timing task.
Further, the system further includes a timed task management module 50, configured to schedule a node to issue a timed task message to the distributed cache, where the timed task message includes a node number of an execution node, and the cluster node subscribes to receive the timed task message and determines whether the cluster node has an execution right.
The specific details of the above-mentioned cluster system timed task scheduling control device module have been described in detail in the embodiment, which is a corresponding cluster system timed task scheduling control method, and therefore are not described herein again.
Example three:
the embodiment provides a cluster system, which 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 the cluster system timing task scheduling control method as in any embodiment, and a node number of an execution node is obtained through calculation, and the execution node obtains an execution permission to execute the timing task.
In addition, the invention also provides a cluster system timing task scheduling control device, 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 calling the computer program stored in the memory. The present invention relates to a method for controlling scheduling of a timing task of a cluster system, and more particularly, to a method for controlling scheduling of a timing task of a cluster system, which is described in the above embodiments of this specification.
In addition, the present invention also provides a computer-readable storage medium, which stores computer-executable instructions for causing a computer to perform the method according to the first embodiment.
A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The embodiment of the invention obtains the node number of the cluster node, the cluster node accesses the distributed cache service to apply for the certificate, the cluster node applying for the certificate is used as a scheduling node to obtain the scheduling control authority, the scheduling node calculates the node number of the execution node from the cluster node according to the node routing rule, and the execution node obtains the execution authority to execute the timing task. The method can be widely applied to the cluster system with the distributed architecture.
The above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same, although the present invention is described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (10)

1. A method for controlling timing task scheduling of a cluster system is characterized by comprising the following steps:
acquiring a node number of a cluster node;
the cluster node accesses a distributed cache service application certificate;
the cluster node applying for the certificate is used as a scheduling node to obtain a scheduling control authority;
and the scheduling node calculates the node number of the execution node from the cluster node according to the node routing rule, and the execution node obtains the execution authority to execute the timing task.
2. The method 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 execution node, and the cluster node subscribes to receive the timed task message and determines whether the execution node has an execution right.
3. The method according to claim 1, wherein the node routing rule comprises: sequential selection, reverse order selection, round robin selection, random selection, assigned numbers.
4. The method according to claim 1, wherein the scheduling node updates a holding credential tag after applying for the credential, and the credential comprises: node identification and credential expiration time.
5. The method as claimed in claim 4, wherein the scheduling node renews the credential expiration time before the credential expiration time arrives.
6. The method according to any one of claims 1 to 5, wherein when the scheduling node goes down, and the credential of the scheduling node expires, each cluster node re-applies for the credential to request the scheduling control permission.
7. A timing task scheduling control device of a cluster system is characterized by comprising:
a node number obtaining module: the node number is used for acquiring the node number of the cluster node;
applying for a voucher module: for the cluster node to access a distributed caching service application credential;
the distribution scheduling control authority module: the cluster node which is used for applying for the certificate is used as a scheduling node to obtain scheduling control authority;
the timing task execution module: and the scheduling node is used for calculating the node number of the execution node from the cluster node according to the node routing rule, and the execution node obtains the execution authority to execute the timing task.
8. A cluster system, characterized in that the cluster system comprises 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 the cluster system timing task scheduling control method of any one of claims 1 to 6, and a node number of an executing node is obtained through calculation, and the executing node obtains an execution authority to execute the timing task.
9. A cluster system timing task scheduling control device is characterized by 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 one of claims 1 to 6 by invoking a computer program stored in the memory.
10. A computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 6.
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 true CN110750343A (en) 2020-02-04
CN110750343B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817717A (en) * 2021-01-28 2021-05-18 新华三大数据技术有限公司 Scheduling method and device for timing task
CN112910952A (en) * 2021-01-13 2021-06-04 叮当快药科技集团有限公司 Distributed task scheduling method and device, storage medium and electronic device
CN112905699A (en) * 2021-02-23 2021-06-04 京东数科海益信息科技有限公司 Full data comparison method, device, equipment and storage medium
CN114640618A (en) * 2022-03-15 2022-06-17 平安国际智慧城市科技股份有限公司 Cluster routing 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

Cited By (8)

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

Also Published As

Publication number Publication date
CN110750343B (en) 2023-12-12

Similar Documents

Publication Publication Date Title
CN110750343A (en) Cluster system timing task scheduling control method and cluster system
JP6954267B2 (en) Network Functions Virtualization Management Orchestration Equipment, Methods and Programs
US8191064B2 (en) Method and device for scheduling true CPU resources for a virtual machine system
CN110704172B (en) Cluster system timing task scheduling method and cluster system
CN110704185A (en) Cluster system and method for scheduling fragment timing tasks of cluster system
CN101969399B (en) Routing method and system for clients to call services
CN108011931B (en) Web data acquisition method and Web data acquisition system
EP2989543A1 (en) Method and device for updating client
CN107005452B (en) Network function virtualization resource processing method and virtual network function manager
US9921882B2 (en) Information processing system, deployment method, processing device, and deployment device
EP3306866B1 (en) Message processing method, device and system
EP3629522B1 (en) Systems and methods for testing resilience of a distributed network
US20180242177A1 (en) Monitoring management method and apparatus
US20210406127A1 (en) Method to orchestrate a container-based application on a terminal device
CN111258726B (en) Task scheduling method and device
CN112506647A (en) Method, system, device and storage medium for load balancing of stateful servers
CN111459676A (en) Node resource management method, device and storage medium
CN110806939A (en) Timed task processing method, device and system
CN112865993A (en) Method and device for switching slave nodes in distributed master-slave system
CN110737520B (en) Method for dispatching and controlling timing task by cluster system and cluster system
CN113703929B (en) Task scheduling method, system, computing device and storage medium
CN112035579B (en) Graph management, data storage and data query methods, devices and storage medium
CN111756800A (en) Method and system for processing burst flow
CN111767122A (en) Distributed task scheduling management method and device
CN113032188B (en) Method, device, server and storage medium for determining main server

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