CN112463317A - Computer room task scheduling method and device, electronic equipment and storage medium - Google Patents

Computer room task scheduling method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112463317A
CN112463317A CN202011279879.XA CN202011279879A CN112463317A CN 112463317 A CN112463317 A CN 112463317A CN 202011279879 A CN202011279879 A CN 202011279879A CN 112463317 A CN112463317 A CN 112463317A
Authority
CN
China
Prior art keywords
task
timing
execution
equipment
scheduling
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.)
Pending
Application number
CN202011279879.XA
Other languages
Chinese (zh)
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 Hexun Huagu Information Technology Co ltd
Original Assignee
Shenzhen Hexun Huagu 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 Hexun Huagu Information Technology Co ltd filed Critical Shenzhen Hexun Huagu Information Technology Co ltd
Priority to CN202011279879.XA priority Critical patent/CN112463317A/en
Publication of CN112463317A publication Critical patent/CN112463317A/en
Pending legal-status Critical Current

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/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • 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/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a device for scheduling a machine room task, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a configuration request sent by a user; determining a timing task for each of a plurality of equipment rooms based on the configuration request; and sending the timing task of each machine room to the scheduling equipment of each machine room, so that when the scheduling equipment judges that the corresponding timing task is triggered, the corresponding execution equipment is controlled to execute the timing action of the corresponding task. According to the machine room task scheduling method, the technical problems that in the related art, each service needs to carry out independent operation and maintenance on each timing task, a centralized operation and maintenance management system is lack of reasonable definition, task scheduling management and running state monitoring on the timing tasks, and the timing task mechanism is managed independently, so that management and monitoring are relatively troublesome are solved, and operation and maintenance efficiency is greatly improved by centralized and unified management of the timing tasks of different services.

Description

Computer room task scheduling method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for scheduling a computer room task, electronic equipment and a storage medium.
Background
Currently, the internet field often needs to execute some periodic business logic, for example, periodically generate statistical reports, or calculate some business indexes, and the demand for timing tasks is particularly high. Especially when there are many service lines, each service line usually has a timing task requirement and is deployed in different machine rooms.
However, for some complex service lines, data is stored in a plurality of machine rooms in a distributed manner, and sometimes the same task needs to deploy a timing task in a plurality of machine rooms at the same time, so that each service needs to perform independent operation and maintenance on each timing task, a centralized operation and maintenance management system is lacked to perform reasonable definition, task scheduling management and running state monitoring on the timing task, and a mechanism for managing the timing task independently causes relatively troublesome management and monitoring, and needs to be solved.
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, a first object of the present invention is to provide a computer room task scheduling method, which solves the technical problems in the related art that each service needs to perform independent operation and maintenance on each timing task, a centralized operation and maintenance management system is lacked to perform reasonable definition, task scheduling management and operation state monitoring on the timing tasks, and the mechanism of each independent management timing task causes relatively troublesome management and monitoring, and greatly improves operation and maintenance efficiency by intensively and uniformly managing the timing tasks of different services.
The second purpose of the invention is to provide a machine room task scheduling device.
A third object of the invention is to propose an electronic device.
A fourth object of the invention is to propose a computer-readable storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a method for scheduling a machine room task, including the following steps: receiving a configuration request sent by a user; determining a timing task for each of a plurality of equipment rooms based on the configuration request; and sending the timing task of each machine room to the scheduling equipment of each machine room, so that when the scheduling equipment judges that the corresponding timing task is triggered, the corresponding execution equipment is controlled to execute the timing action of the corresponding task.
In some embodiments, after receiving the configuration request sent by the user, the method further includes: acquiring definition information of execution equipment of at least one machine room in the plurality of machine rooms; and identifying the execution range of the execution equipment according to the definition information, and sending the execution range to corresponding scheduling equipment so as to determine the timing action according to the execution range.
In some embodiments, the computer room task scheduling method further includes: receiving alarm information generated when the execution equipment executes the timing action and is abnormal; and sending the alarm information to terminal equipment.
In some embodiments, the computer room task scheduling method further includes: configuring a task transferring strategy according to the configuration request; and sending the task transferring strategy to each machine room so as to execute a corresponding timing task according to the task transferring strategy.
In some embodiments, the computer room task scheduling method further includes: acquiring current execution information generated by the execution equipment executing the timing action of the corresponding task; and displaying the current execution information, and/or generating statistical data according to the current execution information.
In order to achieve the above object, a second embodiment of the present invention provides a machine room task scheduling device, including: the first receiving module is used for receiving a configuration request sent by a user; the determining module is used for determining a timing task of each machine room in the plurality of machine rooms based on the configuration request; and the control module is used for sending the timing task of each machine room to the scheduling equipment of each machine room, so that when the scheduling equipment judges that the corresponding timing task is triggered, the corresponding execution equipment is controlled to execute the timing action of the corresponding task.
In some embodiments, after receiving the configuration request sent by the user, the first receiving module is further configured to: acquiring definition information of execution equipment of at least one machine room in the plurality of machine rooms; and identifying the execution range of the execution equipment according to the definition information, and sending the execution range to corresponding scheduling equipment so as to determine the timing action according to the execution range.
In some embodiments, the aforementioned machine room task scheduling device further includes: the second receiving module is used for receiving alarm information generated when the execution equipment executes the timing action and the timing action is abnormal; and the sending module is used for sending the alarm information to the terminal equipment.
In some embodiments, the aforementioned machine room task scheduling device further includes: the configuration module is used for configuring a task transferring strategy according to the configuration request; and the execution module is used for sending the task transferring strategy to each machine room so as to execute the corresponding timing task according to the task transferring strategy.
In some embodiments, the aforementioned machine room task scheduling device further includes: the acquisition module is used for acquiring current execution information generated by the execution equipment executing the timing action of the corresponding task; and the display module is used for displaying the current execution information and/or generating statistical data according to the current execution information.
In order to achieve the above object, an embodiment of a third aspect of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the above computer room task scheduling method.
In order to achieve the above object, a fourth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the above-mentioned computer room task scheduling method.
Therefore, the configuration request sent by a user can be received, the timing task of each machine room in the multiple machine rooms is determined based on the configuration request, and the timing task of each machine room is sent to the scheduling equipment of each machine room, so that when the scheduling equipment judges that the corresponding timing task is triggered, the corresponding execution equipment is controlled to execute the timing action of the corresponding task, the technical problems that in the related technology, each service needs to carry out independent operation and maintenance on the respective timing task, a centralized operation and maintenance management system is lack of reasonable definition, task scheduling management and running state monitoring on the timing task, and the timing task mechanism is managed independently, so that management and monitoring are relatively troublesome are solved, and the operation and maintenance efficiency is greatly improved by centrally and uniformly managing the timing tasks of different services.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a method for scheduling a machine room task according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a timing task system related to a machine room task scheduling method according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a machine room task scheduling device according to an embodiment of the present invention; and
fig. 4 is a block diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes a computer room task scheduling method, device, electronic device, and storage medium according to an embodiment of the present invention with reference to the drawings.
Before the method for scheduling a task in a machine room according to the embodiment of the present invention is introduced, a timing task system related to the method for scheduling a task in a machine room according to the embodiment of the present invention is briefly introduced.
Specifically, the timed task system may include: the system comprises an actuator, a scheduler and a management console, wherein the actuator, the scheduler and the management console can communicate with each other through long connection of a Transmission Control Protocol (TCP), wherein the communication Protocol can be a self-defined Remote Procedure Call (RPC) communication Protocol, which is divided into a message header and a message body, and the message header is used for encapsulating general Protocol information, such as: the requestCode is used for identifying different request types such as a registration request, a heartbeat request and the like; the message body is used to carry the relevant content required by the specific request, taking the registration protocol as an example: the request message body carries information of the name of the machine room where the actuator is located, the name of a service line, the name of a service, ip, a port and the like, so that the server side can conveniently perform centralized control on the actuator. The management console is used for sending related operation and maintenance instructions to the scheduler, and summarizing and displaying timing tasks and execution conditions of all the machine rooms; simultaneously providing authority control over each actuator and timing task; the scheduler, as an agent service layer between the management console and the executor, receives a relevant management request from the management console on one hand, triggers the timing task according to relevant rules and routes the timing task to a specified executor on the other hand, and receives relevant requests sent from the executor, such as a timing task execution result and a registration request.
Fig. 1 is a schematic flow chart of a method for scheduling a machine room task according to an embodiment of the present invention. As shown in fig. 1, the method for scheduling tasks in a computer room includes the following steps:
s101, receiving a configuration request sent by a user.
It can be understood that, as shown in fig. 2, the console cluster, that is, the management console, may receive the configuration request sent by the user, where there are many ways for the management console to receive the configuration request sent by the user, for example, the user may directly control the management console, which is not limited herein.
S102, determining a timing task of each machine room in the plurality of machine rooms based on the configuration request.
And S103, sending the timing task of each machine room to the scheduling equipment of each machine room, so that when the scheduling equipment judges that the corresponding timing task is triggered, the corresponding execution equipment is controlled to execute the timing action of the corresponding task.
The scheduling device may be a scheduler, and the executing device may be an actuator, where each machine room may be provided with one scheduling device and multiple executing devices, and each executing device corresponds to a corresponding service, and as shown in fig. 2, each of the first service, the third service, and the fourth service is provided with a corresponding executing device (actuator).
It should be understood that, the manner for determining to trigger the corresponding timing task may be set by a person skilled in the art, and is not limited specifically herein, as shown in fig. 2, the scheduling device may communicate with the management console through an RPC protocol, and the management console may send the timing task to the scheduling device in each room after determining the timing task of each of the multiple rooms according to the configuration request of the user, for example, the timing task is a task of a service one of the rooms, and may send the timing task to the scheduling device in the first room, and when triggering the timing task, control the corresponding execution device of the service one of the rooms to execute the corresponding timing action.
Therefore, the technical problems that in the related technology, each service needs to carry out independent operation and maintenance on each timing task, a centralized operation and maintenance management system is lack of carrying out reasonable definition, task scheduling management and running state monitoring on the timing tasks, and the timing task mechanisms are managed independently respectively, so that management and monitoring are relatively troublesome are solved, and the operation and maintenance efficiency is greatly improved by intensively and uniformly managing the timing tasks of different services.
In an embodiment of the present invention, after receiving a configuration request sent by a user, the method further includes: acquiring definition information of execution equipment of at least one machine room in a plurality of machine rooms; and identifying the execution range of the execution equipment according to the definition information, and sending the execution range to the corresponding scheduling equipment so as to determine the timing action according to the execution range.
The definition information may include a machine room where the execution device needs to be deployed, a name of the execution device, an alarm code, an ip regular expression and the like, wherein the machine room and the ip regular expression may be used to preliminarily control the deployment range of the execution device, and reduce the security risk caused by an unexpected reason; the alert code may be used to send alerts to associated affiliates when an abnormal condition occurs during task execution.
It should be understood that, in the embodiment of the present invention, a plurality of machine rooms may be provided, as shown in fig. 2, the machine rooms include a machine room one and a machine room two, and after definition information of an execution device of at least one machine room is acquired, the embodiment of the present invention may identify an execution range of the execution device according to the definition information, and send the execution range to a corresponding scheduling device, so as to determine a timing action according to the execution range.
It should be noted that, when the timing action is determined according to the execution range, the execution device in the embodiment of the present invention may automatically register with the scheduling device of the corresponding machine room during the starting process, and register information such as the machine room to which the execution device belongs, the service to which the execution device belongs, the name of the executor, the ip, the port, the current person in charge, and the like, and the scheduling device may check, according to the definition information, whether the registration request is legal and determine whether the registration is passed, for example, whether the ip where the execution device is located matches the defined ip rule expression, whether the name of the execution device is defined, and the like.
In an embodiment of the present invention, the method for scheduling tasks in a computer room further includes: receiving alarm information generated when the execution of the timing action by the execution equipment is abnormal; and sending the alarm information to the terminal equipment.
It can be understood that, after receiving a timing task execution request sent by the scheduling device of the machine room where the execution device is located, the execution device may analyze the timing task, for example, obtain information such as a task type, a task name, a file path where a task logic is located, a task logic entry method name, and a task parameter. The combination of the file path where the task logic is located and the name of the task logic entry method represents a unique timing task logic in the execution equipment, and the specific implementation is provided by a service party.
The execution equipment can judge according to the task type, if the task type is a shell script type, the execution equipment triggers the execution of the corresponding business logic through the file path where the task logic is located and the name of the task logic entry method; if the task type is a coding task, the specific business logic represented by the task logic entry is selected to be executed by judging the name of the task logic entry method, and after the task is executed or when the task is executed and fails due to abnormity in the execution process, alarm information can be generated and sent to terminal equipment (such as a mobile phone, a tablet and the like), or a scheduling equipment interface is called to inform whether the execution is successful or not. In an embodiment of the present invention, the method for scheduling tasks in a computer room further includes: configuring a task transferring strategy according to the configuration request; and sending the task transferring strategy to each machine room so as to execute the corresponding timing task according to the task transferring strategy.
It should be understood that the task scheduling policy mainly includes a free combination of factors such as an execution frequency, an execution range, an exception handling policy, and the like, for example, the task scheduling policy includes an execution frequency and an exception handling policy, and then the task scheduling policy may correspond to the timing task: all executive equipment of all computer rooms execute the timing task once every 30 minutes, and retry the task for 3 times at most when the task fails.
Therefore, after the task scheduling policy including the execution frequency and the exception handling policy is sent to each machine room, all the execution devices of all the machine rooms execute the timing task once every 30 minutes, and the timing task is retried for 3 times at most when the failure occurs.
In an embodiment of the present invention, the method for scheduling tasks in a computer room further includes: acquiring current execution information generated by executing the timing action of the corresponding task by the execution equipment; and displaying the current execution information, and/or generating statistical data according to the current execution information.
It can be understood that, in order to further implement monitoring of the execution condition of the current timing task, the embodiment of the present invention may obtain current execution information generated by the current execution device executing the timing action of the corresponding task, and display the current execution information on the management console, or generate statistical data according to the current execution information while displaying the current execution information, so as to facilitate tracking the execution condition of the timing task of each machine room. Therefore, whether the timing task is executed or not, success or failure and the reason of the failure can be conveniently checked, the difficulty of troubleshooting in the execution process of the timing task is reduced, and the operation and maintenance efficiency is greatly improved.
According to the machine room task scheduling method provided by the embodiment of the invention, the configuration request sent by a user can be received, the timing task of each machine room in a plurality of machine rooms is determined based on the configuration request, and the timing task of each machine room is sent to the scheduling equipment of each machine room, so that when the scheduling equipment judges that the corresponding timing task is triggered, the corresponding execution equipment is controlled to execute the timing action of the corresponding task, the technical problems that each service in the related technology needs to carry out independent operation and maintenance on the respective timing task, a centralized operation and maintenance management system is lacked to carry out reasonable definition, task scheduling management and operation state monitoring on the timing task, and the timing task mechanism is managed independently respectively to cause relatively troublesome management and monitoring are solved, and the operation and maintenance efficiency is greatly improved by intensively and uniformly managing the timing tasks of different services.
In order to implement the above embodiments, the present invention further provides a machine room task scheduling device.
Fig. 3 is a block diagram of a machine room task scheduling device according to an embodiment of the present invention.
As shown in fig. 3, the machine room task scheduling device 10 includes: a first receiving module 100, a determining module 200 and a control module 300.
The first receiving module 100 is configured to receive a configuration request sent by a user;
the determining module 200 is configured to determine a timing task for each of a plurality of equipment rooms based on the configuration request; and
the control module 300 is configured to send the timing task of each machine room to the scheduling device of each machine room, so that when the scheduling device determines that the corresponding timing task is triggered, the corresponding execution device is controlled to execute the timing action of the corresponding task.
According to an embodiment of the present application, after receiving the configuration request sent by the user, the first receiving module 100 is further configured to:
acquiring definition information of execution equipment of at least one machine room in a plurality of machine rooms;
and identifying the execution range of the execution equipment according to the definition information, and sending the execution range to the corresponding scheduling equipment so as to determine the timing action according to the execution range.
According to an embodiment of the present application, the aforementioned machine room task scheduling device 10 further includes: and a second receiving module.
The second receiving module is used for receiving alarm information generated when the execution equipment executes the timing action and is abnormal;
and the sending module is used for sending the alarm information to the terminal equipment.
According to an embodiment of the present application, the aforementioned machine room task scheduling device 10 further includes: a configuration module and an execution module.
The configuration module is used for configuring a task transferring strategy according to a configuration request;
and the execution module is used for sending the task transferring strategy to each machine room so as to execute the corresponding timing task according to the task transferring strategy.
According to an embodiment of the present application, the aforementioned machine room task scheduling device 10 further includes: the device comprises an acquisition module and a display module.
The system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring current execution information generated by executing the timing action of a corresponding task by an execution device;
and the display module is used for displaying the current execution information and/or generating statistical data according to the current execution information.
It should be noted that the foregoing explanation on the embodiment of the computer room task scheduling method is also applicable to the computer room task scheduling device of the embodiment, and details are not described here.
According to the machine room task scheduling device provided by the embodiment of the invention, the configuration request sent by a user can be received, the timing task of each machine room in a plurality of machine rooms is determined based on the configuration request, and the timing task of each machine room is sent to the scheduling equipment of each machine room, so that when the scheduling equipment judges that the corresponding timing task is triggered, the corresponding execution equipment is controlled to execute the timing action of the corresponding task, the technical problems that in the related technology, each service needs to carry out independent operation and maintenance on the respective timing task, a centralized operation and maintenance management system is lack of carrying out reasonable definition, task scheduling management and operation state monitoring on the timing task, and the timing task mechanism is managed independently to cause relatively troublesome management and monitoring are solved, and the operation and maintenance efficiency is greatly improved by centrally and uniformly managing the timing tasks of different services.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present application. The electronic device may include:
memory 401, processor 402, and computer programs stored on memory 401 and executable on processor 402.
The processor 402 implements the computer room task scheduling method provided in the above embodiments when executing a program.
Further, the electronic device further includes:
a communication interface 403 for communication between the memory 401 and the processor 402.
A memory 401 for storing computer programs executable on the processor 402.
Memory 401 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
If the memory 401, the processor 402 and the communication interface 403 are implemented independently, the communication interface 403, the memory 401 and the processor 402 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Optionally, in a specific implementation, if the memory 401, the processor 402, and the communication interface 403 are integrated on a chip, the memory 401, the processor 402, and the communication interface 403 may complete mutual communication through an internal interface.
The processor 402 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present Application.
In order to implement the foregoing embodiments, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the foregoing computer room task scheduling method, and the method includes:
receiving a configuration request sent by a user;
determining a timing task for each of a plurality of equipment rooms based on the configuration request; and
and sending the timing task of each machine room to the scheduling equipment of each machine room, so that when the scheduling equipment judges that the corresponding timing task is triggered, the corresponding execution equipment is controlled to execute the timing action of the corresponding task.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A machine room task scheduling method is characterized by comprising the following steps:
receiving a configuration request sent by a user;
determining a timing task for each of a plurality of equipment rooms based on the configuration request; and
and sending the timing task of each machine room to the scheduling equipment of each machine room, so that when the scheduling equipment judges that the corresponding timing task is triggered, the corresponding execution equipment is controlled to execute the timing action of the corresponding task.
2. The method of claim 1, further comprising, after receiving the configuration request sent by the user:
acquiring definition information of execution equipment of at least one machine room in the plurality of machine rooms;
and identifying the execution range of the execution equipment according to the definition information, and sending the execution range to corresponding scheduling equipment so as to determine the timing action according to the execution range.
3. The method of claim 1, further comprising:
receiving alarm information generated when the execution equipment executes the timing action and is abnormal;
and sending the alarm information to terminal equipment.
4. The method of claim 1, further comprising:
configuring a task transferring strategy according to the configuration request;
and sending the task transferring strategy to each machine room so as to execute a corresponding timing task according to the task transferring strategy.
5. The method of claim 1, further comprising:
acquiring current execution information generated by the execution equipment executing the timing action of the corresponding task;
and displaying the current execution information, and/or generating statistical data according to the current execution information.
6. A machine room task scheduling apparatus, comprising:
the first receiving module is used for receiving a configuration request sent by a user;
the determining module is used for determining a timing task of each machine room in the plurality of machine rooms based on the configuration request; and
and the control module is used for sending the timing task of each machine room to the scheduling equipment of each machine room, so that when the scheduling equipment judges that the corresponding timing task is triggered, the corresponding execution equipment is controlled to execute the timing action of the corresponding task.
7. The apparatus of claim 1, wherein after receiving the configuration request sent by the user, the receiving module is further configured to:
acquiring definition information of execution equipment of at least one machine room in the plurality of machine rooms;
and identifying the execution range of the execution equipment according to the definition information, and sending the execution range to corresponding scheduling equipment so as to determine the timing action according to the execution range.
8. The apparatus of claim 1, further comprising:
the second receiving module is used for receiving alarm information generated when the execution equipment executes the timing action and the timing action is abnormal;
and the sending module is used for sending the alarm information to the terminal equipment.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for scheduling room tasks according to any one of claims 1 to 5 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a method for scheduling tasks of a room as defined in any one of the claims 1 to 5.
CN202011279879.XA 2020-11-16 2020-11-16 Computer room task scheduling method and device, electronic equipment and storage medium Pending CN112463317A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011279879.XA CN112463317A (en) 2020-11-16 2020-11-16 Computer room task scheduling method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011279879.XA CN112463317A (en) 2020-11-16 2020-11-16 Computer room task scheduling method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112463317A true CN112463317A (en) 2021-03-09

Family

ID=74836309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011279879.XA Pending CN112463317A (en) 2020-11-16 2020-11-16 Computer room task scheduling method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112463317A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590216A (en) * 2021-07-19 2021-11-02 上海淇玥信息技术有限公司 Timing task centralized management method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590216A (en) * 2021-07-19 2021-11-02 上海淇玥信息技术有限公司 Timing task centralized management method and device and electronic equipment
CN113590216B (en) * 2021-07-19 2024-03-19 上海淇玥信息技术有限公司 Timing task centralized management method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN110535902A (en) The processing method and electronic device of monitoring intelligent are realized based on micro services
CN113067875B (en) Access method, device and equipment based on dynamic flow control of micro-service gateway
CN111367662B (en) Load balancing method, device and system
CN110830283B (en) Fault detection method, device, equipment and system
CN109428779A (en) A kind of monitoring alarm method and device of distributed service
CN108845912A (en) Service interface calls the alarm method of failure and calculates equipment
CN110995522B (en) Information processing method and device
CN112579356A (en) Fault processing method and server
CN111611057A (en) Distributed retry method, device, electronic equipment and storage medium
CN112463317A (en) Computer room task scheduling method and device, electronic equipment and storage medium
CN110312245A (en) A kind of business monitoring method and device of transnational roaming terminal
JP2003233512A (en) Client monitoring system with maintenance function, monitoring server, program, and client monitoring/ maintaining method
CN111949421B (en) SDK calling method, device, electronic equipment and computer readable storage medium
CN110224872B (en) Communication method, device and storage medium
WO2020037607A1 (en) Data transmission method and apparatus
US20070171896A1 (en) Management system and management method for managing a communication apparatus
CN109947630B (en) Fault notification method, device and storage medium
CN112214437A (en) Storage device, communication method and device and computer readable storage medium
CN112988405A (en) Micro-service automatic degradation method and device and computing equipment
CN117041172B (en) White box switch interface request processing method and device
CN112769889B (en) Service data pushing method and device, storage medium and electronic device
CN108810142A (en) Monitoring method, device, computer equipment and the storage medium of Zookeeper
CN114710494B (en) Application management method, device and storage medium
CN116263696A (en) Machine room task notification processing method, device and task notification processing system
CN115700483A (en) Timeout time information configuration method and device, storage medium and computer equipment

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