A cloud computing execution scheduling method, device, electronic device and storage medium
By converting declarative interfaces into imperative interfaces, the problem of difficult resource scheduling execution in complex systems is solved, the ease of use and availability of the cloud computing core system is improved, and the success rate of resource scheduling and backup tasks is ensured.
Patent Information
- Application Number
- CN202110519668.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-12
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-05-12
AI Technical Summary
In complex systems, it is difficult for non-professional technical personnel to use imperative application programming interfaces to complete resource scheduling, resulting in difficulty in resource scheduling execution and poor system usability.
By converting the declaration of the statement interface call to the command interface call request, the core system of the cloud computing core system can execute the command in the command type interface, and the failure message or status matching of the execution of the execution of the execution within the preset time will improve the convenience of resource dispatching. and availability.
It improves the ease of use and availability of the cloud computing core system, enables technical personnel unfamiliar with the target system to directly perform resource scheduling and backup tasks, and enhances the success rate of resource scheduling and backup tasks in complex systems.
Smart Images

Figure CN113127209B
Abstract
Description
Technical Field
[0001] The present application relates to the technical fields of cloud computing, task scheduling and virtual machine backup, and in particular to a cloud computing execution scheduling method, device, electronic device and storage medium. Background Art
[0002] An Application Programming Interface (API), also known as an application programming interface, is a set of predefined functions that aims to provide applications and developers with the ability to access a set of routines based on certain software or hardware without having to access the source code or understand the details of the internal working mechanism.
[0003] Declarative application programming interface, also known as declarative API, refers to telling the machine what needs to be done (what) in the form of an application programming interface, allowing the machine to figure out how to do it (how); common declarative application programming interface implementations include Structured Query Language (SQL).
[0004] An imperative application programming interface, also known as an imperative API, is an application programming interface that tells a machine how to do something (how). No matter what the machine is told to do (what), the machine will only execute according to the commands it is told.
[0005] In the specific practice process, it is found that in the process of interface calling for complex systems, only personnel with professional technical knowledge can use the imperative application interface to complete the resource scheduling execution results. In other words, technical personnel need to be very familiar with the target system to be able to call the imperative application interface. Technical personnel who are not familiar with the target system find it difficult to complete resource scheduling execution in a complex system. Summary of the invention
[0006] The purpose of the embodiments of the present application is to provide a cloud computing execution scheduling method, device, electronic device and storage medium, which are used to improve the problem that it is difficult to complete resource scheduling execution in a complex system.
[0007] The embodiment of the present application provides a cloud computing execution scheduling method, including: obtaining a declarative interface call request; parsing and converting the declarative interface call request to obtain an imperative interface call request; executing resource scheduling on the cloud computing core system according to the imperative interface call request to obtain an execution result. In the above implementation process, by parsing and converting the declarative interface into an imperative interface, the cloud computing core system can execute the commands in the imperative interface according to the declarative interface call request, so that technicians who are not familiar with the target system can directly use the declarative interface to execute resource scheduling on the cloud computing core system, thereby improving the ease of use and availability of the cloud computing core system, and also improving the convenience of completing resource scheduling execution in complex systems.
[0008] Optionally, in an embodiment of the present application, resource scheduling is performed on the cloud computing core system according to an imperative interface call request, including: determining whether an execution failure message sent by the cloud computing core system is obtained within a preset time; if so, re-executing resource scheduling on the cloud computing core system according to the execution failure message. In the above implementation process, if an execution failure message sent by the cloud computing core system is obtained within a preset time, resource scheduling is re-executed on the cloud computing core system according to the execution failure message, thereby improving the situation where resource scheduling fails to be performed on the cloud computing core system according to the imperative interface call request, thereby improving the availability of the cloud computing core system.
[0009] Optionally, in an embodiment of the present application, after determining whether the execution failure message sent by the cloud computing core system is obtained within the preset time, it also includes: if the execution failure message sent by the cloud computing core system is not obtained within the preset time, the declared status information in the declarative interface call request is matched with the real-time status information in the cloud computing core system to obtain a matching result, and an execution result is generated based on the matching result. In the above implementation process, by matching the declared status information in the declarative interface call request with the real-time status information in the cloud computing core system to obtain a matching result, and generating an execution result based on the matching result, the situation where the declared status information in the declarative interface call request does not match the real-time status information in the cloud computing core system, but the resource scheduling execution is mistakenly considered to be successful, thereby improving the availability of the cloud computing core system.
[0010] Optionally, in an embodiment of the present application, after obtaining the imperative interface call request, it further includes: executing the backup task on the virtual machine backup system according to the imperative interface call request to obtain the backup result. In the above implementation process, by executing the backup task on the virtual machine backup system according to the imperative interface call request to obtain the backup result, a technician who is not familiar with the target system can directly use the declarative interface to execute the backup task on the virtual machine backup system, thereby improving the ease of use and usability of the virtual machine backup system.
[0011] Optionally, in an embodiment of the present application, executing a backup task on a virtual machine backup system according to an imperative interface call request includes: determining whether a backup failure message sent by the virtual machine backup system is obtained within a preset time; if so, re-executing the backup task on the virtual machine backup system according to the backup failure message. In the above implementation process, if a backup failure message sent by the virtual machine backup system is obtained within a preset time, the backup task is re-executed on the virtual machine backup system according to the backup failure message, thereby improving the problem of failure to execute a backup task on the virtual machine backup system according to an imperative interface call request, thereby improving the availability of the virtual machine backup system.
[0012] Optionally, in an embodiment of the present application, after determining whether the backup failure message sent by the virtual machine backup system is obtained within the preset time, it also includes: if the backup failure message sent by the virtual machine backup system is not obtained within the preset time, the declared backup status in the declarative interface call request is matched with the real-time backup status in the virtual machine backup system to obtain a matching result, and a backup result is generated based on the matching result. In the above implementation process, by matching the declared backup status in the declarative interface call request with the real-time backup status in the virtual machine backup system to obtain a matching result, and generating a backup result based on the matching result, the declared backup status in the declarative interface call request does not match the real-time status information in the virtual machine backup system, but it is mistakenly believed that the backup task is successfully executed, thereby improving the availability of the virtual machine backup system.
[0013] Optionally, in an embodiment of the present application, obtaining a declarative interface call request includes: receiving a declarative interface call request sent by a terminal device; after obtaining an execution result, further including: sending the execution result to the terminal device. In the above implementation process, by receiving a declarative interface call request sent by a terminal device, and after obtaining the execution result, sending the execution result to the terminal device, a cloud computing service of declarative interface call is effectively provided to the terminal device.
[0014] The embodiment of the present application also provides a cloud computing execution scheduling device, including: a declarative interface acquisition module, used to obtain a declarative interface call request; a command interface acquisition module, used to parse and convert the declarative interface call request to obtain an imperative interface call request; an execution result acquisition module, used to perform resource scheduling on a cloud computing core system according to the imperative interface call request to obtain an execution result.
[0015] Optionally, in an embodiment of the present application, the execution result obtaining module includes: an execution message obtaining module, used to determine whether an execution failure message sent by the cloud computing core system is obtained within a preset time; a resource rescheduling module, used to re-execute resource scheduling on the cloud computing core system according to the execution failure message if the execution failure message sent by the cloud computing core system is obtained within the preset time.
[0016] Optionally, in an embodiment of the present application, the execution result obtaining module also includes: an execution result generating module, which is used to match the declared status information in the declarative interface call request with the real-time status information in the cloud computing core system to obtain a matching result if the execution failure message sent by the cloud computing core system is not obtained within a preset time, and generate an execution result based on the matching result.
[0017] Optionally, in an embodiment of the present application, the cloud computing execution scheduling device also includes: a backup result acquisition module, which is used to execute the backup task on the virtual machine backup system according to the imperative interface call request to obtain the backup result.
[0018] Optionally, in an embodiment of the present application, the backup result acquisition module includes: a backup message acquisition module, used to determine whether a backup failure message sent by the virtual machine backup system is obtained within a preset time; a backup re-execution module, used to re-execute the backup task on the virtual machine backup system according to the backup failure message if the backup failure message sent by the virtual machine backup system is obtained within the preset time.
[0019] Optionally, in an embodiment of the present application, the backup result acquisition module also includes: a backup result generation module, which is used to match the declared backup status in the declarative interface call request with the real-time backup status in the virtual machine backup system if the backup failure message sent by the virtual machine backup system is not obtained within a preset time, to obtain a matching result, and generate a backup result based on the matching result.
[0020] Optionally, in an embodiment of the present application, the declarative interface acquisition module is specifically used to: receive a declarative interface call request sent by a terminal device; the cloud computing execution scheduling device also includes: an execution result sending module, which is used to send the execution result to the terminal device.
[0021] An embodiment of the present application further provides an electronic device, including: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method described above is performed.
[0022] An embodiment of the present application further provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described above is executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 A schematic diagram of a process flow of a cloud computing execution scheduling method provided by an embodiment of the present application is shown;
[0025] Figure 2 A schematic diagram of the parsing and conversion process of a declaration interface call request provided in an embodiment of the present application is shown;
[0026] Figure 3 A schematic diagram of a process of executing a backup task in a virtual machine backup system provided by an embodiment of the present application is shown;
[0027] Figure 4 A schematic diagram showing a process of interaction between an electronic device and a terminal device provided in an embodiment of the present application;
[0028] Figure 5 A schematic diagram of the structure of a cloud computing execution scheduling device provided in an embodiment of the present application is shown;
[0029] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0030] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0031] Before introducing the cloud computing execution scheduling method provided in the embodiment of the present application, some concepts involved in the embodiment of the present application are first introduced:
[0032] Cloud storage refers to a system that uses computer cluster applications, grid technology or distributed file systems to bring together a large number of different types of storage devices in the network through application software to work together and provide external data storage and business access functions.
[0033] Infrastructure as a Service (IaaS) provides consumers with processing, storage, network and various basic computing resources to deploy and execute various software such as operating systems or applications.
[0034] Platform as a Service (PaaS) is a cloud computing service that provides computing platforms and solution services. In the typical hierarchy of cloud computing, the PaaS layer is between software as a service and infrastructure as a service.
[0035] Software as a Service (SaaS), also known as "software on demand", is a software delivery model in which the software can be used simply through the Internet without going through traditional installation steps. The software and its related data are centrally hosted in the cloud service.
[0036] A distributed database is a logically unified database formed by connecting multiple physically dispersed database units using a computer network. Each connected database unit is called a site or node. A distributed database has a unified database management system to manage it, which is called a distributed database management system.
[0037] It should be noted that the cloud computing execution scheduling method provided in the embodiment of the present application can be executed by an electronic device, where the electronic device refers to a device terminal with the function of executing a computer program or the above-mentioned server, such as an x86 server and a non-x86 server, and the non-x86 server includes: mainframes, minicomputers and UNIX servers.
[0038] Before introducing the cloud computing execution scheduling method provided in the embodiments of the present application, the application scenarios to which the cloud computing execution scheduling method is applicable are first introduced. The application scenarios here are not limited to: using the cloud computing execution scheduling method to enhance or improve the functions of the cloud computing platform or cloud storage platform of the cloud service provider, so that more non-professional technical personnel can better use the functions of the cloud computing platform or cloud storage platform; among them, the non-professional technical personnel here include: low-code developers (Rapid Developers) and no-code developers (Citizen Developers); cloud computing platforms include: IaaS platform, PaaS platform or SaaS platform, etc., and using the cloud computing execution scheduling method can enhance the resource scheduling efficiency in the cloud computing platform, and can also improve the backup efficiency of file resources in the cloud storage platform.
[0039] See also Figure 1 The flowchart of the cloud computing execution scheduling method provided by the embodiment of the present application is shown; the main idea of the cloud computing execution scheduling method is to convert the declarative interface into an imperative interface by parsing the declarative interface, so that the cloud computing core system can execute the command in the imperative interface according to the declarative interface call request, so that the technicians who are not familiar with the target system can directly use the declarative interface to perform resource scheduling on the cloud computing core system, thereby improving the usability and availability of the cloud computing core system, and also improving the convenience of completing resource scheduling execution in a complex system; the above-mentioned cloud computing execution scheduling method may include:
[0040] Step S110: Obtain a declarative interface call request.
[0041] There are many ways to obtain the declarative interface call request in the above step S110, including but not limited to: the first way of obtaining, the electronic device receives the declarative interface call request sent by other terminal devices, the terminal devices here are for example: smart phones, personal computers, tablet computers, personal digital assistants or mobile Internet devices, etc.; the declarative interface call request here can be specifically sent in the form of Representational State Transfer (REST), which is also referred to as RESTful, and RESTful is a software architecture style of the World Wide Web. The second way of obtaining is to receive the declarative interface call request sent by other business servers, and the servers here include: x86 servers and non-x86 servers, etc. The third way of obtaining is to obtain a pre-stored declarative interface call request, for example: obtaining the declarative interface call request from the file system, or obtaining the declarative interface call request from the database, or obtaining the declarative interface call request from a mobile storage device, etc.
[0042] After step S110, step S120 is executed: parsing and converting the declarative interface call request to obtain an imperative interface call request.
[0043] See also Figure 2 The schematic diagram of the parsing and conversion process of the declaration interface call request provided by the embodiment of the present application is shown; the implementation method of the above step S120 is, for example: using the system intelligent engine of the virtual machine (Virtual Machine, VM) to parse and convert the declarative interface call request to obtain the imperative interface call request; wherein, the system intelligent engine includes: a timing detection module, a declaration information management module, an execution process module, an intelligent execution module and a cloud service monitoring module, the intelligent execution module is the core module of the system intelligent engine, and the intelligent execution module can be used to receive the declarative interface call request and parse the declaration information from the declarative interface call request; wherein, the declarative interface call request can be parsed using a format such as JavaScript Object Notation (JSON) or extensible markup language (XML), so as to parse the declaration information. It can be understood that the declarative interface here can be an asynchronously called API, so after the intelligent execution module receives the declarative interface call request, the call success information can be immediately sent to the caller, and the caller here can be a terminal device or a server.
[0044] After parsing the declaration information from the declarative interface call request, the declaration information can also be stored in the persistent storage, distributed database or distributed file system (DFS) of the declaration information management module. DFS here is also called the network file system, which refers to a file system that allows files to be shared on multiple hosts through the network. DFS allows multiple users on multiple machines to share files and storage space; among them, the distributed file systems that can be used include: GFS, HDFS, Ceph, Lustre, MogileFS, MooseFS, FastDFS, TFS and GridFS. The declaration information can be stored in distributed databases such as etcd and Redis, so as to ensure the consistency of the declaration information in the cloud computing platform.
[0045] After the declaration information is stored in the persistent storage of the declaration information management module, the declaration information can also be obtained from the persistent storage, and then a timing strategy is generated based on the declaration information. The timing detection module is used to drive the intelligent execution module according to the timing strategy. The real-time status information in the cloud computing core system can be obtained through the cloud service monitoring module, so as to match the declaration status information in the declarative interface call request with the real-time status information in the cloud computing core system. If the match is successful, it means that the action corresponding to the declarative interface call request has been executed. If the match is unsuccessful, it means that the action corresponding to the declarative interface call request has not been executed (for example, during the execution process).
[0046] Finally, the execution process module is used to monitor and execute the above execution process, and a series of command operations for resource scheduling tasks are generated according to the execution process, and then each command operation is encapsulated as an imperative interface call request. When executing each command operation or completing an imperative interface call request, the execution process module needs to maintain a command operation queue or an imperative interface call request queue, formulate an execution strategy based on the real-time information of the entire virtual machine system, and complete the execution of each command operation or complete the imperative interface call request according to the execution strategy. In the above resource scheduling process, by generating a series of command operations for resource scheduling tasks according to the execution process, and then encapsulating each command operation as an imperative interface call request, the complexity of the system intelligent engine managing command operations is effectively reduced.
[0047] After step S120, step S130 is executed: resource scheduling is performed on the cloud computing core system according to the imperative interface call request to obtain an execution result.
[0048] There are many implementation methods of the above step S130, including but not limited to:
[0049] In the first implementation, if no failure message is received within a preset time, the declared state in the declarative interface call request is compared and matched with the real-time state information in the cloud computing core system. If the match is successful, it means that the resource scheduling is successful. This implementation may include:
[0050] Step S131: Determine whether an execution failure message sent by the cloud computing core system is obtained within a preset time.
[0051] An implementation example of the above-mentioned step S131 is: using the timing detection module in the above-mentioned system intelligent engine to periodically obtain execution messages from the cloud computing core system, and using the intelligent execution module in the above-mentioned system intelligent engine to determine whether the execution message obtained within the preset time is an execution failure message; wherein, the preset time can be set according to the specific situation, for example, the preset time can be set to 2 minutes, 3 minutes or 1 hour, etc.
[0052] Step S132: if an execution failure message sent by the cloud computing core system is obtained within a preset time, resource scheduling is re-executed on the cloud computing core system according to the execution failure message.
[0053] An implementation example of the above step S132 is as follows: starting a monitoring service to monitor whether the cloud computing core system sends an execution success message or an execution failure message; if an execution failure message sent by the cloud computing core system is obtained within a preset time, re-executing resource scheduling on the cloud computing core system according to the execution failure message; wherein, the resources scheduled on the cloud computing core system here may be virtual resources, such as allocated domain names, IP addresses, files on cloud storage, or data records stored in blockchain, etc.; similarly, the preset time may be set according to the specific circumstances, such as setting the preset time to 2 minutes, 3 minutes, or 1 hour, etc. The above-mentioned process of re-executing resource scheduling is specifically for example: assuming that the cloud computing core system is supported by the first host machine and the second host machine, wherein the configuration of the first host machine is 2 cores and 4G memory, and the configuration of the second host machine is 4 cores and 16G; assuming that the above-mentioned resource scheduling task is specifically hot loading resource files (the file size can be larger than 4G files), when the virtual machine on the cloud computing core system runs on the first host machine, since the configuration of the first host machine (2 cores and 4G memory) cannot meet the conditions for hot loading resource files, the execution of hot loading resource files will fail at this time; therefore, the virtual machine needs to be scheduled from the first host machine to the second host machine before the conditions for hot loading resource files can be met. Therefore, the virtual machine can be scheduled from the first host machine to the second host machine on the cloud computing core system, and then the hot loading resource files can be successfully executed.
[0054] Step S133: If the execution failure message sent by the cloud computing core system is not obtained within the preset time, the declared status information in the declarative interface call request is matched with the real-time status information in the cloud computing core system to obtain a matching result, and an execution result is generated according to the matching result.
[0055] The implementation method of the above step S133 is, for example: if the execution failure message sent by the cloud computing core system is not obtained within the preset time, the declared state information in the declarative interface call request is matched with the real-time state information in the cloud computing core system to obtain a matching result, and the execution result is generated according to the matching result. Among them, the specific process of generating the execution result according to the matching result is, for example: if the matching result is a successful match, it means that the resource scheduling is successful, and the execution result of successful resource scheduling can be directly generated; if the matching result is a failed match, it means that the resource scheduling fails, and the resource scheduling can be re-executed on the cloud computing core system.
[0056] In the above implementation process, the declarative interface call request sent by the terminal device is first received, and the declarative interface call request is parsed and converted to obtain the imperative interface call request, and then the resource scheduling is performed on the cloud computing core system according to the imperative interface call request, and finally the execution result of the resource scheduling is sent to the terminal device. In other words, by parsing and converting the declarative interface into an imperative interface, the cloud computing core system can execute the commands in the imperative interface according to the declarative interface call request, so that technicians who are not familiar with the target system can directly use the declarative interface to perform resource scheduling on the cloud computing core system, thereby improving the ease of use and availability of the cloud computing core system, and also improving the convenience of completing resource scheduling execution in complex systems.
[0057] See also Figure 3 The schematic diagram of the process of performing backup tasks in a virtual machine backup system provided by the embodiment of the present application is shown; it can be understood that the system intelligence engine in the above electronic device can be used to execute the cloud computing execution scheduling method, and the system intelligence engine provides an execution basis for performing backup tasks in the virtual machine backup system. The above cloud computing execution scheduling method can also be applied to perform backup tasks in a virtual machine backup system, such as virtual machine backup, operating system backup, or cloud hard disk image backup, etc.; the process of performing backup tasks here can include:
[0058] Step S210: The electronic device receives a declarative interface call request sent by the terminal device.
[0059] An implementation example of the above step S210 is: an electronic device receives a declarative interface call request sent by other terminal devices through the Transmission Control Protocol (TCP) or the User Datagram Protocol (UDP). The terminal devices here are, for example, smart phones, personal computers, tablet computers, personal digital assistants or mobile Internet devices.
[0060] After step S210, step S220 is executed: the electronic device parses and converts the declarative interface calling request to obtain an imperative interface calling request.
[0061] Among them, the implementation principle and implementation method of step S220 are similar to those of step S120. Therefore, its implementation principle and implementation method are not explained here. If there are any unclear points, please refer to the description of step S120.
[0062] After step S220, step S230 is performed: the electronic device executes the backup task on the virtual machine backup system according to the command interface call request to obtain the backup result.
[0063] The implementation of the above step S230 may specifically include:
[0064] Step S231: Determine whether a backup failure message sent by the virtual machine backup system is obtained within a preset time.
[0065] Step S232: if a backup failure message sent by the virtual machine backup system is obtained within a preset time, the backup task is re-executed on the virtual machine backup system according to the backup failure message.
[0066] Among them, the implementation principle and implementation method of step S231 to step S232 are similar to the implementation principle and implementation method of step S131 to step S132. Therefore, the implementation principle and implementation method will not be explained here. If there are any unclear points, please refer to the description of step S131 to step S132.
[0067] Step S233: If the backup failure message sent by the virtual machine backup system is not obtained within the preset time, the declared backup status in the declarative interface call request is matched with the real-time backup status in the virtual machine backup system to obtain a matching result, and a backup result is generated according to the matching result.
[0068] The implementation method of the above step S233 is, for example: start the monitoring service to monitor whether the virtual machine backup system sends backup-related messages; if the backup failure message sent by the virtual machine backup system is not received within the preset time, the declared backup status (Declare Backup Status) in the declarative interface call request is matched with the real-time backup status (Real-Time Backup Status) in the virtual machine backup system to obtain a matching result, and generate a backup result based on the matching result. Among them, the specific process of generating a backup result based on the matching result is, for example: if the matching result is a successful match, it means that the backup task is successfully executed, and a successful backup result can be directly generated; if the matching result is a failed match, it means that the backup task has failed to execute, and the backup task can be re-executed on the virtual machine backup system.
[0069] After step S230, step S240 is executed: the electronic device sends the backup result to the terminal device.
[0070] An implementation example of the above step S240 is: the electronic device sends the backup result to the terminal device via Hyper Text Transfer Protocol (HTTP) or Hyper Text Transfer Protocol Secure (HTTPS).
[0071] See also Figure 4 A schematic diagram of a process of interaction between an electronic device and a terminal device provided in an embodiment of the present application is shown; optionally, the electronic device executing the above-mentioned cloud computing execution scheduling method may also interact with the terminal device, and the process of interaction between the electronic device and the terminal device may include:
[0072] Step S310: The electronic device receives a declarative interface call request sent by the terminal device.
[0073] Among them, the implementation principle and implementation method of step S310 are similar to those of step S210. Therefore, its implementation principle and implementation method are not explained here. If there are any unclear points, please refer to the description of step S210.
[0074] Step S320: The electronic device parses and converts the declarative interface calling request to obtain an imperative interface calling request.
[0075] Step S330: The electronic device executes resource scheduling on the cloud computing core system according to the imperative interface call request to obtain an execution result.
[0076] Among them, the implementation principle and implementation method of step S320 to step S330 are similar to the implementation principle and implementation method of step S120 to step S130. Therefore, the implementation principle and implementation method will not be explained here. If there are any unclear points, please refer to the description of step S120 to step S130.
[0077] Step S340: The electronic device sends the execution result to the terminal device.
[0078] Among them, the implementation principle and implementation method of step S340 are similar to those of step S240. Therefore, its implementation principle and implementation method are not explained here. If there are any unclear points, please refer to the description of step S240.
[0079] See also Figure 5 The structure diagram of the cloud computing execution scheduling device provided in the embodiment of the present application is shown; the embodiment of the present application provides a cloud computing execution scheduling device 400, including:
[0080] The declarative interface acquisition module 410 is used to acquire a declarative interface call request.
[0081] The command interface acquisition module 420 is used to parse and convert the declarative interface call request to obtain the imperative interface call request.
[0082] The execution result obtaining module 430 is used to execute resource scheduling on the cloud computing core system according to the imperative interface call request to obtain the execution result.
[0083] Optionally, in the embodiment of the present application, the execution result obtaining module includes:
[0084] The execution message acquisition module is used to determine whether the execution failure message sent by the cloud computing core system is obtained within a preset time.
[0085] The resource rescheduling module is used to re-execute resource scheduling on the cloud computing core system according to the execution failure message if an execution failure message sent by the cloud computing core system is obtained within a preset time.
[0086] Optionally, in the embodiment of the present application, the execution result obtaining module further includes:
[0087] The execution result generation module is used to match the declared status information in the declarative interface call request with the real-time status information in the cloud computing core system if the execution failure message sent by the cloud computing core system is not obtained within the preset time, obtain the matching result, and generate the execution result according to the matching result.
[0088] Optionally, in the embodiment of the present application, the cloud computing execution scheduling device further includes:
[0089] The backup result acquisition module is used to execute the backup task on the virtual machine backup system according to the command interface call request and obtain the backup result.
[0090] Optionally, in the embodiment of the present application, the backup result obtaining module includes:
[0091] The backup message acquisition module is used to determine whether a backup failure message sent by the virtual machine backup system is obtained within a preset time.
[0092] The backup re-execution module is used to re-execute the backup task on the virtual machine backup system according to the backup failure message if a backup failure message sent by the virtual machine backup system is obtained within a preset time.
[0093] Optionally, in the embodiment of the present application, the backup result obtaining module further includes:
[0094] The backup result generation module is used to match the declared backup status in the declarative interface call request with the real-time backup status in the virtual machine backup system if the backup failure message sent by the virtual machine backup system is not obtained within the preset time, obtain the matching result, and generate the backup result based on the matching result.
[0095] Optionally, in an embodiment of the present application, the declarative interface acquisition module is specifically used to: receive a declarative interface call request sent by a terminal device.
[0096] The cloud computing execution scheduling device may further include: an execution result sending module, which is used to send the execution result to the terminal device.
[0097] It should be understood that the device corresponds to the above-mentioned cloud computing execution scheduling method embodiment and can execute each step involved in the above-mentioned method embodiment. The specific functions of the device can be found in the above description. To avoid repetition, the detailed description is appropriately omitted here. The device includes at least one software function module that can be stored in a memory in the form of software or firmware or solidified in the operating system (OS) of the device.
[0098] See also Figure 6 An electronic device 500 provided in an embodiment of the present application includes: a processor 510 and a memory 520, wherein the memory 520 stores machine-readable instructions executable by the processor 510, and when the machine-readable instructions are executed by the processor 510, the above method is executed.
[0099] The embodiment of the present application further provides a storage medium 530 on which a computer program is stored. When the computer program is run by the processor 510, the above method is executed.
[0100] Among them, the storage medium 530 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.
[0101] In several embodiments provided by the embodiments of the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device embodiments described above are only schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible implementation architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a part of a module, a program segment or a code, and a part of a module, a program segment or a code includes one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also be different from the order of occurrence marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which is mainly determined by the functions involved.
[0102] In addition, the functional modules of the various embodiments in the embodiments of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.
[0103] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0104] The above description is only an optional implementation manner of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiments of the present application, which should be covered within the protection scope of the embodiments of the present application.
Claims
1. A cloud computing execution scheduling method, characterized in that: include: Obtaining a declarative interface call request, wherein the declarative interface call request includes: declarative state information; Parsing and converting the declarative interface call request to obtain an imperative interface call request; Execute resource scheduling on the cloud computing core system according to the imperative interface call request to obtain an execution result; The parsing and converting of the declarative interface call request includes: using a system intelligence engine of a virtual machine to parse the declaration status information from the declarative interface call request; The resource scheduling is executed on the cloud computing core system according to the imperative interface call request, including: if no execution failure message sent by the cloud computing core system is obtained within a preset time, the declared status information in the declarative interface call request is matched with the real-time status information in the cloud computing core system to obtain a matching result, and the execution result is generated according to the matching result.
2. The method according to claim 1, characterized in that: The executing resource scheduling on the cloud computing core system according to the imperative interface call request includes: Determining whether an execution failure message sent by the cloud computing core system is obtained within a preset time; If yes, re-execute resource scheduling on the cloud computing core system according to the execution failure message.
3. The method according to claim 1, characterized in that: After obtaining the imperative interface call request, the method further includes: The backup task is executed on the virtual machine backup system according to the command interface call request to obtain the backup result.
4. The method according to claim 3, characterized in that The executing the backup task on the virtual machine backup system according to the command interface calling request includes: Determine whether a backup failure message sent by the virtual machine backup system is obtained within a preset time; If yes, the backup task is re-executed on the virtual machine backup system according to the backup failure message.
5. The method according to claim 4, characterized in that After determining whether a backup failure message sent by the virtual machine backup system is obtained within a preset time, the method further includes: If the backup failure message sent by the virtual machine backup system is not obtained within the preset time, the declared backup status in the declarative interface call request is matched with the real-time backup status in the virtual machine backup system to obtain a matching result, and the backup result is generated based on the matching result.
6. The method according to any one of claims 1 to 5, characterized in that: The obtaining of the declarative interface call request includes: Receiving the declarative interface call request sent by the terminal device; After obtaining the execution result, the method further includes: Sending the execution result to the terminal device.
7. A cloud computing execution scheduling device, characterized in that: include: A declarative interface acquisition module is used to acquire a declarative interface call request, wherein the declarative interface call request includes: declaration status information; A command interface acquisition module is used to parse and convert the declarative interface call request to obtain an imperative interface call request; An execution result obtaining module, used to execute resource scheduling on the cloud computing core system according to the imperative interface call request and obtain an execution result; The parsing and converting of the declarative interface call request includes: using a system intelligence engine of a virtual machine to parse the declaration status information from the declarative interface call request; The resource scheduling is executed on the cloud computing core system according to the imperative interface call request, including: if no execution failure message sent by the cloud computing core system is obtained within a preset time, the declared status information in the declarative interface call request is matched with the real-time status information in the cloud computing core system to obtain a matching result, and the execution result is generated according to the matching result.
8. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method according to any one of claims 1 to 6 is performed.
9. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, executes the method according to any one of claims 1 to 6.
