Cloud application deployment method and related equipment
By confirming and reserving cloud resources before deploying cloud applications, the problem of deployment failure caused by insufficient cloud resources in cloud computing is solved, and efficient deployment and resource utilization of cloud applications are achieved.
Patent Information
- Application Number
- CN202310678073.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-16
- Filing Date
- 2023-06-08
- Publication Date
- 2024-09-27
AI Technical Summary
In cloud computing, cloud application activation fails due to insufficient cloud resources or insufficient account balance during the deployment process, resulting in problems such as idle cloud resources and deployment failure.
By confirming whether at least two cloud resources meet the activation conditions before deploying cloud applications, and activating and reserving them when the conditions are met, we ensure that cloud resources used by cloud applications are sufficient and avoid resource waste and deployment failures.
It effectively avoids idle cloud resources and deployment failures, improves the deployment efficiency and resource utilization of cloud applications, and ensures the successful deployment of cloud applications.
Smart Images

Figure CN118713995A
Abstract
Description
[0001] This application claims priority to a Chinese patent application filed with the State Intellectual Property Office of China on March 16, 2023, with application number 202310257900.3 and invention name “A resource activation method, device and system”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of cloud computing technology, and in particular to a cloud application deployment method, system, computing device cluster, computer-readable storage medium, and computer program product. Background Art
[0003] Cloud computing refers to the provision of resources in the form of on-demand services through the Internet, including but not limited to computing resources, storage resources, and network resources. With the vigorous development of cloud computing, the number and types of cloud computing-based applications (also known as cloud applications) are increasing.
[0004] Cloud vendors can usually provide users with different types of cloud applications through cloud stores (also known as cloud markets). Cloud stores are a transaction delivery platform for cloud applications. After users purchase cloud applications through cloud stores, they usually need to deploy them. To reduce the difficulty of deployment, cloud vendors also provide orchestration services to support automatic deployment of cloud applications. In this way, after users purchase cloud applications, they can automatically complete the activation of cloud resources and the deployment of cloud applications on cloud resources, thereby achieving one-click deployment.
[0005] However, the cloud resources used by cloud applications may include multiple cloud resources. In the process of opening cloud resources, some cloud resources may be opened successfully while others may fail to be opened. This may cause cloud application deployment failure and the successfully opened cloud resources to be idle, which may lead to a waste of cloud resources. Summary of the invention
[0006] The present application provides a cloud application deployment method, which deploys cloud applications on the basis of ensuring that cloud resources meet the activation conditions, effectively avoids idle cloud resources, and improves the deployment efficiency of cloud applications. The present application also provides a cloud application deployment system, a computing device cluster, a computer-readable storage medium, and a computer program product corresponding to the method.
[0007] In a first aspect, the present application provides a method for deploying a cloud application, wherein the cloud application uses at least two cloud resources, the at least two cloud resources include a first cloud resource and a second cloud resource, the first cloud resource is managed by a first resource management system, and the second cloud resource is managed by a second resource management system.
[0008] The method may be executed by a cloud application deployment system. The cloud application deployment system may be a software system, which is deployed in a computing device cluster. The computing device cluster executes the program code of the cloud application deployment system, thereby executing the cloud application deployment method of the present application. The cloud application deployment system may also be a hardware system. For example, the cloud application deployment system may be a computing device cluster with a cloud application deployment function. When the cloud application deployment system is running, the cloud application deployment method of the present application is executed.
[0009] Specifically, the cloud application deployment system can receive a user's deployment request for the cloud application, and based on the deployment request, confirm with the first resource management system and the second resource management system whether the first cloud resources and the second cloud resources meet the activation conditions, wherein the activation conditions include whether the first cloud resources and the second cloud resources have sufficient balances. When both the first cloud resources and the second cloud resources meet the activation conditions, the cloud application deployment system activates the first cloud resources and the second cloud resources, and deploys the cloud application based on the activated first cloud resources and the second cloud resources.
[0010] This method confirms whether the various cloud resources used by the cloud application meet the activation conditions before deploying the cloud application, activates the cloud resources on the basis of satisfying the activation conditions, and then deploys the cloud application. In this way, it avoids the failure of activation of some cloud resources due to insufficient cloud resources, which further leads to the failure of cloud application deployment, but the waste of cloud resources caused by the idleness of the successfully activated cloud resources.
[0011] In some possible implementations, the cloud application deployment system may also confirm with the account management system whether the user's account balance meets the activation conditions. When the first cloud resource, the second cloud resource and the user's account balance all meet the activation conditions, the cloud application deployment system may activate the first cloud resource and the second cloud resource, and deduct the user's account balance.
[0012] This method takes into account the situation where the activation of cloud resources fails due to insufficient user account balance. Cloud resources are activated and the account balance is deducted based on sufficient user account balance, thereby ensuring successful deployment of cloud applications.
[0013] In some possible implementations, the cloud application deployment system applies to the first resource management system and the second resource management system for reserving the first cloud resources and the second cloud resources. When the requests to the first resource management system and the second resource management system for reserving the first cloud resources and the second cloud resources are both successful, the first cloud resources and the second cloud resources reserved by the first resource management system and the second resource management system are called.
[0014] This method confirms whether the cloud resources meet the activation conditions by reserving cloud resources, thereby ensuring that the cloud resources used by the cloud application are sufficient and avoiding cloud application deployment failures due to situations such as cloud resources being sold out.
[0015] In some possible implementations, the user's account balance satisfies the activation condition, including the user's account balance satisfies the balance required for activating the first cloud resource, and after deducting the balance required for activating the first cloud resource, the user's account balance still satisfies the balance required for activating the second cloud resource.
[0016] This method takes into account that the process of opening the first cloud resource and the second cloud resource involves two deductions of account balance. When the user's account balance meets the balance required for opening the first cloud resource and after deducting the balance required for opening the first cloud resource, the user's account balance still meets the balance required for opening the second cloud resource. This ensures that the account balance is sufficient and avoids cloud application deployment failures due to insufficient account balance.
[0017] In some possible implementations, the cloud application deployment system may receive a user's request to view properties of the cloud application, obtain properties of the first cloud resource and properties of the second cloud resource based on the property view request, and return the properties of the first cloud resource and properties of the second cloud resource to the user.
[0018] This method supports users to view the properties of cloud resources and provides assistance to users in making decisions by showing them the properties of cloud resources. For example, when cloud resources support different specifications and configurations, users can select from multiple specifications and configurations to determine the properties of cloud resources.
[0019] In some possible implementations, the cloud application deployment system may determine the balance required to activate the first cloud resource based on the attributes of the first cloud resource, and determine the balance required to activate the second cloud resource based on the attributes of the second cloud resource.
[0020] In this method, considering that the balance required for activating cloud resources is related to the attributes of cloud resources, the balance required for activating cloud resources can be determined by the attributes of cloud resources, and then the account balance to be reserved can be determined.
[0021] In some possible implementations, a deployment system for a cloud application may receive a deployment request from a user for a cloud application, obtain a deployment template corresponding to the cloud application based on the deployment request, then parse the deployment template to determine first cloud resources and second cloud resources used by the cloud application, and confirm with the first resource management system and the second resource management system whether the first cloud resources and the second cloud resources meet activation conditions.
[0022] The method can determine the cloud resources used by the cloud application through the deployment template corresponding to the cloud application, wherein the deployment template can be used to describe the dependency relationship between the cloud application and the cloud resources used by the cloud application. In this way, the cloud resources are automatically determined based on the deployment template, thereby improving the efficiency of cloud application deployment.
[0023] In some possible implementations, a deployment system of a cloud application may receive an automatic deployment request from a user for a cloud application, and obtain a deployment template corresponding to the cloud application according to the automatic deployment request.
[0024] This method supports users to deploy cloud applications in an automatic deployment manner. When users choose to automatically deploy cloud applications, they can obtain deployment templates to automatically determine the cloud resources used by the cloud applications.
[0025] In some possible implementations, a cloud application deployment system may receive a manual deployment request for a cloud application and present prompt information to a user, where the prompt information is used to confirm with the user whether the cloud application uses at least two cloud resources and, if so, confirm with a first resource management system and a second resource management system whether the first cloud resources and the second cloud resources meet activation conditions.
[0026] This method supports users to deploy the cloud in a manual deployment manner. Since when users choose to manually deploy cloud applications, they cannot determine whether it involves the need to confirm whether the cloud resources meet the activation conditions. Therefore, by presenting prompt information to the user, it is determined whether the cloud application uses at least two cloud resources, and then it is determined whether it is necessary to confirm whether the cloud resources meet the activation conditions.
[0027] In some possible implementations, a cloud application deployment system receives a first resource reservation credential returned by a first resource management system and a second resource reservation credential returned by a second resource management system. Then, the cloud application deployment system activates the first cloud resource based on the reserved first cloud resource and the first resource reservation credential, and activates the second cloud resource based on the reserved second cloud resource and the second resource reservation credential.
[0028] In this method, receiving the resource reservation certificate indicates that the reservation of cloud resources is successful, that is, the cloud resources meet the activation conditions. In this way, cloud resources can be activated on the basis of ensuring sufficient cloud resources, thereby realizing the deployment of cloud applications.
[0029] In some possible implementations, the cloud application deployment system can be decoupled into an orchestration subsystem and a reservation subsystem. The reservation subsystem implements the function of reserving cloud resources and account balances (i.e., confirming whether the cloud resources and account balances meet the activation conditions), and the orchestration subsystem implements the function of activating cloud resources and deploying cloud applications. In this way, the reservation subsystem can be provided to other services as a separate, general functional module to achieve functional reuse.
[0030] In some possible implementations, when cloud resources or account balance reservation fails, for example, cloud resources are sold out or account balance is insufficient, the cloud application deployment system can send a prompt message to the user, which is used to prompt that the cloud resources are sold out or the account balance is insufficient. In this way, the deployment of the cloud application can be stopped in time.
[0031] In some possible implementations, the cloud application deployment system can indicate the reserved cloud resources or account balances in the form of reservation marks, thereby preventing the reserved cloud resources from being allocated to other users or used by other users, and preventing the reserved account balances from being used in other transactions, thereby improving the success rate of deploying cloud applications. Furthermore, when cloud resources are successfully activated, the cloud application deployment system can change the reservation mark, thereby avoiding long-term reservation and improving the utilization rate of cloud resources or account balances.
[0032] In a second aspect, the present application provides a deployment system for a cloud application, wherein the cloud application uses at least two cloud resources, wherein the at least two cloud resources include a first cloud resource and a second cloud resource, wherein the first cloud resource is managed by a first resource management system, and the second cloud resource is managed by a second resource management system, and the system includes:
[0033] a confirmation module, configured to receive a deployment request from a user for the cloud application, and confirm with the first resource management system and the second resource management system, according to the deployment request, whether the first cloud resource and the second cloud resource meet an activation condition, wherein the activation condition includes whether the first cloud resource and the second cloud resource have a sufficient balance;
[0034] An activation module, configured to activate the first cloud resource and the second cloud resource when both the first cloud resource and the second cloud resource meet activation conditions;
[0035] A deployment module is used to deploy the cloud application according to the activated first cloud resources and second cloud resources.
[0036] In some possible implementations, the confirmation module is further configured to:
[0037] receiving a deployment request from a user for the cloud application, and confirming with the first resource management system, the second resource management system, and the account management system whether the first cloud resource, the second cloud resource, and the user's account balance meet activation conditions according to the deployment request;
[0038] The activation module is also used for:
[0039] When the first cloud resource, the second cloud resource, and the account balance of the user all meet activation conditions, the first cloud resource and the second cloud resource are activated, and the account balance of the user is deducted.
[0040] In some possible implementations, the confirmation module is specifically used to:
[0041] Applying to the first resource management system and the second resource management system to reserve the first cloud resources and the second cloud resources;
[0042] The activation module is specifically used for:
[0043] When the requests to the first resource management system and the second resource management system for reserving the first cloud resources and the second cloud resources are both successful, the first cloud resources and the second cloud resources reserved by the first resource management system and the second resource management system are called.
[0044] In some possible implementations, the activation module is specifically used to:
[0045] When the user's account balance meets the balance required for opening the first cloud resource, and after deducting the balance required for opening the first cloud resource, the user's account balance still meets the balance required for opening the second cloud resource, the user's account balance meets the opening condition.
[0046] In some possible implementations, the system further includes:
[0047] The viewing module is used to receive a user's property viewing request for the cloud application, obtain the properties of the first cloud resource and the properties of the second cloud resource according to the property viewing request, and return the properties of the first cloud resource and the properties of the second cloud resource to the user.
[0048] In some possible implementations, the activation module is further configured to:
[0049] The balance required for activating the first cloud resource is determined according to the attribute of the first cloud resource, and the balance required for activating the second cloud resource is determined according to the attribute of the second cloud resource.
[0050] In some possible implementations, the confirmation module is specifically used to:
[0051] Receiving a deployment request from a user for the cloud application, and acquiring a deployment template corresponding to the cloud application according to the deployment request;
[0052] Parsing the deployment template to determine a first cloud resource and a second cloud resource used by the cloud application;
[0053] Confirm with the first resource management system and the second resource management system whether the first cloud resources and the second cloud resources meet activation conditions.
[0054] In some possible implementations, the confirmation module is specifically used to:
[0055] An automatic deployment request from a user for the cloud application is received, and a deployment template corresponding to the cloud application is acquired according to the automatic deployment request.
[0056] In some possible implementations, the confirmation module is specifically used to:
[0057] receiving a manual deployment request from a user for the cloud application, and presenting prompt information to the user according to the manual deployment request, wherein the prompt information is used to confirm with the user whether the cloud application uses at least two cloud resources;
[0058] If so, confirm with the first resource management system and the second resource management system whether the first cloud resources and the second cloud resources meet the activation conditions.
[0059] In some possible implementations, the activation module is further configured to:
[0060] Receiving a first resource reservation voucher returned by the first resource management system, and receiving a second resource reservation voucher returned by the second resource management system;
[0061] The activation module is specifically used for:
[0062] The first cloud resource is activated according to the reserved first cloud resource and the first resource reservation credential, and the second cloud resource is activated according to the reserved second cloud resource and the second resource reservation credential.
[0063] In a third aspect, the present application provides a computing device cluster. The computing device cluster includes at least one computing device, and the at least one computing device includes at least one processor and at least one memory. The at least one processor and the at least one memory communicate with each other. The at least one processor is used to execute instructions stored in the at least one memory, so that the computing device or the computing device cluster executes the cloud application deployment method described in the first aspect or any implementation of the first aspect.
[0064] In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions are stored, and the instructions instruct a computing device or a computing device cluster to execute the cloud application deployment method described in the above-mentioned first aspect or any implementation of the first aspect.
[0065] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computing device or a computing device cluster, enables the computing device or the computing device cluster to execute the cloud application deployment method described in the first aspect or any one of the implementations of the first aspect.
[0066] Based on the implementations provided in the above aspects, the present application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the technical method of the embodiments of the present application, the drawings required for use in the embodiments are briefly introduced below.
[0068] Figure 1 A schematic diagram of the architecture of an orchestration service provided in an embodiment of the present application;
[0069] Figure 2 A schematic diagram of the architecture of a cloud application deployment system provided in an embodiment of the present application;
[0070] Figure 3 A flowchart of a cloud application deployment method provided in an embodiment of the present application;
[0071] Figure 4 A schematic diagram of a deployment configuration interface of a cloud application provided in an embodiment of the present application;
[0072] Figure 5 A flowchart of a cloud application deployment method provided in an embodiment of the present application;
[0073] Figure 6 A schematic diagram of the structure of a cloud application deployment system provided in an embodiment of the present application;
[0074] Figure 7 A schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0075] Figure 8 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;
[0076] Fig. 9 A schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application;
[0077] Fig.10 A schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0078] The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0079] First, some technical terms involved in the embodiments of the present application are introduced.
[0080] Cloud computing, also known as network computing, is a computing method based on the Internet. Specifically, cloud computing vendors can provide cloud resources, and users access cloud resources through the Internet to achieve cloud computing. Different from traditional computing methods, cloud computing vendors can provide cloud resources on demand, and users do not need to purchase, configure or manage resources by themselves. They can use cloud resources at a lower cost, reduce resource waste, and improve resource utilization.
[0081] Cloud resources refer to resources deployed in a cloud environment. The cloud environment can be a public cloud, a private cloud, or a hybrid cloud. Cloud resources can include different types. For example, cloud resources can include computing resources (such as cloud servers), storage resources (such as cloud disks), and network resources (such as bandwidth). In addition to infrastructure resources such as computing resources, storage resources, and network resources, cloud resources can also include software, such as software as a service (SaaS) that implements corresponding functions, including but not limited to SaaS for online meetings and SaaS for cloud desktops.
[0082] Cloud applications refer to applications developed or deployed through cloud computing. Users can quickly and conveniently access cloud applications through the Internet without having to download or install cloud applications locally, which enriches the use scenarios of cloud applications.
[0083] Cloud vendors can usually provide users with different types of cloud applications through cloud stores (also known as cloud markets or cloud resource consoles). After users purchase cloud applications through cloud stores, they usually need to deploy them. For example, users can manually write and run deployment code to activate cloud resources and further implement the deployment of cloud applications.
[0084] In order to reduce the difficulty of deployment, cloud vendors also provide orchestration services, such as application orchestration services or resource orchestration services, to support automatic deployment of cloud applications. Among them, orchestration services are a kind of infrastructure-as-code (IaC) service or tool. Orchestration services can realize automatic deployment of cloud applications through deployment templates. The deployment template can be used to describe the dependency relationship between cloud applications and cloud resources used by cloud applications. In this way, cloud resources are activated based on deployment templates without manual deployment, and cloud applications can be deployed in one click.
[0085] See also Figure 1The schematic diagram of the architecture of an orchestration service is shown. After a user purchases a cloud application in a cloud store, the cloud application can be automatically deployed based on the orchestration service. Specifically, the orchestration service determines the cloud resources used by the cloud application by parsing the deployment template, and then the orchestration service applies to activate the above cloud resources. In addition, the orchestration service applies to the account management system to deduct the user's account balance, for example, to apply to deduct the balance required to activate the above cloud resources from the user's account balance, thereby realizing the automatic deployment of the cloud application on the cloud resources.
[0086] However, the cloud resources used by cloud applications may include multiple cloud resources. In the process of opening cloud resources, some cloud resources may be opened successfully, while others may fail to be opened. For example, when a certain cloud resource is sold out, the opening of the cloud resource may fail. This may cause the cloud application deployment to fail, and the cloud resources that have been opened successfully will be idle, resulting in a waste of cloud resources.
[0087] In view of this, the present application provides a method for deploying a cloud application, wherein the cloud application uses at least two cloud resources, the at least two cloud resources include a first cloud resource and a second cloud resource, the first cloud resource is managed by a first resource management system, and the second cloud resource is managed by a second resource management system.
[0088] The method may be executed by a cloud application deployment system. The cloud application deployment system may be a software system, which is deployed in a computing device cluster. The computing device cluster executes the program code of the cloud application deployment system, thereby executing the cloud application deployment method of the present application. The cloud application deployment system may also be a hardware system. For example, the cloud application deployment system may be a computing device cluster with a cloud application deployment function. When the cloud application deployment system is running, the cloud application deployment method of the present application is executed.
[0089] Specifically, the cloud application deployment system can receive a user's deployment request for the cloud application, and based on the deployment request, confirm with the first resource management system and the second resource management system whether the first cloud resources and the second cloud resources meet the activation conditions, wherein the activation conditions include whether the first cloud resources and the second cloud resources have sufficient balances. When both the first cloud resources and the second cloud resources meet the activation conditions, the cloud application deployment system activates the first cloud resources and the second cloud resources, and deploys the cloud application based on the activated first cloud resources and the second cloud resources.
[0090] This method confirms whether the various cloud resources used by the cloud application meet the activation conditions before deploying the cloud application, activates the cloud resources on the basis of satisfying the activation conditions, and then deploys the cloud application. In this way, it avoids the failure of activation of some cloud resources due to insufficient cloud resources, which further leads to the failure of cloud application deployment, but the cloud resources that have been successfully activated are idle, resulting in a waste of cloud resources.
[0091] In order to make the technical solution of the present application clearer and easier to understand, the deployment system of the cloud application of the present application will be introduced below with reference to the accompanying drawings.
[0092] See also Figure 2 The schematic diagram of the architecture of a cloud application deployment system is shown, where the cloud application deployment system 10 can be connected to a cloud application management system 20 to deploy cloud applications obtained by users from the cloud application management system 20. The cloud application management system 20 is used to manage cloud applications, for example, to support cloud vendors to launch cloud applications and to support users to obtain cloud applications (for example, to purchase cloud applications). The cloud application management system 20 can be a cloud store, a cloud market, or a cloud resource console.
[0093] The cloud application management system 20 can provide at least one cloud application to the user. The cloud applications provided by the cloud application management system 20 include but are not limited to the following types: software as a service (SaaS) cloud applications, license cloud applications, application programming interface (API) cloud applications, mirror cloud applications, and container cloud applications.
[0094] The cloud application deployment system 10 is used to receive a deployment request from a user for a cloud application, wherein the cloud application uses at least two cloud resources, for example, cloud resources including a first cloud resource and a second cloud resource, the first cloud resource can be managed by a first resource management system 32, and the second cloud resource can be managed by a second resource management system 34. According to the deployment request, the cloud application deployment system 10 can confirm with the first resource management system 32 and the second resource management system 34 whether the first cloud resource and the second cloud resource meet the activation conditions, for example, confirm with the first resource management system 32 and the second resource management system 34 whether the first cloud resource and the second cloud resource have sufficient balances.
[0095] Considering that the first cloud resource and the second cloud resource can be used on a pay-as-you-go basis, insufficient account balance of the user may lead to failure of cloud application deployment, and the cloud application deployment system 10 may also confirm whether the user's account balance meets the activation conditions. Specifically, the cloud application deployment system 10 may be connected to the account management system 40. The account management system 40 may be used to manage multiple cloud accounts. The cloud application deployment system 10 may confirm with the account management system 40 whether the user's account balance meets the activation conditions, for example, confirming with the account management system 40 whether the user's account balance meets the balance required to activate the first cloud resource and the second cloud resource.
[0096] When both the first cloud resource and the second cloud resource meet the activation conditions, the cloud application deployment system 10 can activate the first cloud resource and the second cloud resource, and deploy the cloud application based on the activated first cloud resource and the second cloud resource. In this way, the cloud application is deployed after ensuring that the cloud resources or the account balance meet the activation conditions, avoiding the failure of cloud resource activation due to insufficient cloud resources or insufficient account balance, which further leads to the failure of cloud application deployment, but the activated cloud resources start to be charged, causing losses to users and idle cloud resources.
[0097] In some embodiments, the cloud application deployment system 10 may include an orchestration subsystem 12 and a reservation subsystem 14. The orchestration subsystem 12 may also be referred to as an orchestration service, and the reservation subsystem 14 may also be referred to as a reservation service, a resource guarantee subsystem, or a resource guarantee service. The reservation subsystem 14 is used to confirm whether the cloud resources or account balances meet the activation conditions, for example, by applying to the first resource management system 32 and the second resource management system 34 to reserve the first cloud resources and the second cloud resources. When the activation conditions are met, the orchestration subsystem 12 is used to activate the cloud resources and deploy the cloud application.
[0098] based on Figure 2 The cloud application deployment system 10 shown in the embodiment, the present application also provides a cloud application deployment method. The cloud application deployment method of the present application is described in detail below in conjunction with the embodiment.
[0099] See also Figure 3 The flowchart of a cloud application deployment method shown is executed by a cloud application deployment system 10, and the method specifically includes the following steps:
[0100] S302: The cloud application deployment system 10 receives a deployment request from a user for a cloud application.
[0101] Cloud applications refer to applications based on cloud computing, including but not limited to cloud software, cloud services, and cloud solutions. Considering the user's demand for cloud applications with diversified functions, cloud vendors can provide different types of cloud applications through the cloud application management system 20. The cloud application management system 20 is used to manage cloud applications and provide at least one cloud application to users. Users can obtain cloud applications through the cloud application management system 20 according to actual needs and trigger a deployment request for the cloud application. The cloud application management system 20 can send the deployment request to the deployment system 10 of the cloud application.
[0102] The cloud application management system 20 supports users to select different deployment methods for cloud applications. Generally, the deployment methods of cloud applications include manual deployment and automatic deployment. Figure 4The schematic diagram of a deployment configuration interface of a cloud application is shown, and the deployment configuration interface 400 can use a graphical user interface (GUI) or a command user interface (CUI) to support interaction with the user, so as to implement corresponding functions. Among them, the deployment configuration interface 400 can include an information display area 402, a deployed cloud application viewing area 404, and a to-be-deployed cloud application viewing area 406.
[0103] The information display area 402 is used to display information related to cloud application deployment, such as user information, the number of cloud applications to be deployed, and the number of deployed cloud applications. The deployed cloud application viewing area 404 is used to view the cloud applications deployed by the user. When the user clicks the arrow mark on the left side of the deployed cloud application viewing area 404, the specific information of the deployed cloud application (not shown in the figure) can be displayed, such as the cloud application name, cloud application specifications, cloud application working status, etc. The to-be-deployed cloud application viewing area 406 is used to view the cloud applications to be deployed by the user, such as cloud applications that have been purchased but not deployed in the cloud application management system 20. When the user clicks the arrow mark on the left side of the to-be-deployed cloud application viewing area 406, the specific information of the to-be-deployed cloud application can be displayed.
[0104] Furthermore, in order to facilitate users to quickly deploy cloud applications, a deployment control may be presented, which may be a manual deployment control 408 or an automatic deployment control 410. Users may select a deployment method for cloud applications by triggering different deployment controls. For example, users may select to deploy cloud applications in a manual deployment manner by triggering the manual deployment control 408, and the cloud application management system 20 may send a manual deployment request for cloud applications to the cloud application deployment system 10. For another example, users may select to deploy cloud applications in an automatic deployment manner by triggering the automatic deployment control 410, and the cloud application management system 20 may send an automatic deployment request for cloud applications to the cloud application deployment system 10.
[0105] S304: The cloud application deployment system 10 confirms with the first resource management system 32 whether the first cloud resource meets the activation condition.
[0106] S306: The cloud application deployment system 10 confirms with the second resource management system 34 whether the second cloud resource meets the activation condition.
[0107] Cloud applications usually use at least one cloud resource. After the cloud resources are enabled, cloud applications can be deployed on the cloud resources. Cloud resources refer to resources deployed on the cloud. Different types of cloud resources can be managed by different resource management systems. For example, computing resources can be managed by the management system of elastic cloud servers (ECS) or bare metal servers (BMS), storage resources can be managed by the management system of elastic volume services (EVS) or object storage services (OBS), and network resources can be managed by the management system of virtual private clouds (VPC) or elastic load balance (ELB).
[0108] It is understandable that when a cloud application uses one cloud resource, if the cloud resource fails to be activated, the cloud application deployment fails, and the cloud resource will not be idle. In other words, when a cloud application uses one cloud resource, there is no need to confirm whether the cloud resource meets the activation conditions before deploying the cloud application. When a cloud application uses at least two cloud resources (also called combined cloud resources), some cloud resources may be successfully activated while others fail to be activated. Therefore, when a cloud application uses at least two cloud resources, it involves the need to confirm whether the cloud resources meet the activation conditions.
[0109] Based on this, when a cloud application uses at least two cloud resources, the cloud application deployment system 10 can confirm with the resource management system whether the cloud resources meet the activation conditions according to the deployment request. In the embodiment of the present application, the at least two cloud resources may include a first cloud resource and a second cloud resource, the first cloud resource is managed by the first resource management system 32, and the second cloud resource is managed by the second resource management system 34. Therefore, the cloud application deployment system 10 can confirm with the first resource management system 32 whether the first cloud resource meets the activation conditions, and confirm with the second resource management system 34 whether the second cloud resource meets the activation conditions.
[0110] Depending on the different cloud application deployment methods, the cloud application deployment system 10 may confirm whether cloud resources meet the activation conditions in different ways. Below, the process of confirming whether cloud resources meet the activation conditions will be introduced in two different deployment methods: manual deployment and automatic deployment.
[0111] In some embodiments, the cloud application is deployed manually. Since it is difficult for the cloud application deployment system 10 to directly obtain the cloud resources used by the cloud application under manual deployment, the cloud application deployment system 10 can receive a manual deployment request for the cloud application, and present a prompt message to the user based on the manual deployment request. The prompt message is used to confirm with the user whether the cloud application uses at least two cloud resources. Furthermore, if the user confirms that the cloud application uses at least two cloud resources, it means that deploying the cloud application involves the need to confirm whether the cloud resources meet the activation conditions. The cloud application deployment system 10 can confirm with the first resource management system 32 whether the first cloud resource meets the activation conditions, and confirm with the second resource management system 34 whether the second cloud resource meets the activation conditions.
[0112] In other embodiments, the deployment mode of the cloud application is automatic deployment. The deployment system 10 of the cloud application can determine the cloud resources used by the cloud application through the deployment template. Specifically, the deployment system 10 of the cloud application can receive an automatic deployment request for the cloud application, obtain the deployment template corresponding to the cloud application according to the automatic deployment request, parse the deployment template, determine the first cloud resource and the second cloud resource used by the cloud application, thereby confirming to the first resource management system 32 whether the first cloud resource meets the activation condition, and confirming to the second resource management system 34 whether the second cloud resource meets the activation condition. Among them, the deployment template is used to describe the dependency relationship between the cloud application and the cloud resources used by the cloud application. The deployment template can be provided by the cloud application provider, for example, it can be a deployment template written by the cloud application provider based on the public template provided by the cloud vendor, combined with the deployment information such as the cloud resources used by the cloud application. In this way, the deployment system 10 of the cloud application can automatically determine the cloud resources used by the cloud application by parsing the deployment template, and then confirm to the corresponding resource management system whether the cloud resources meet the activation conditions.
[0113] In some possible implementations, the first cloud resource and the second cloud resource can be used on a pay-as-you-go basis. In the process of obtaining and deploying cloud applications, the user first needs to use the account balance to obtain the cloud application. If the account balance is greater than or equal to the balance required to obtain the cloud application, the cloud application can be successfully obtained. Then, the account balance needs to be used to activate the cloud resource. If the account balance at this time is greater than or equal to the balance required to activate the cloud resource, the cloud resource can be successfully activated, and the cloud application can be successfully deployed.
[0114] When a cloud application uses at least two cloud resources, after the cloud application is successfully acquired, the account balance may support the activation of cloud resource A, but the account balance after the activation of cloud resource A no longer supports the activation of cloud resource B. In this case, the cloud application deployment fails, but cloud resource A has been successfully activated and billing has begun, resulting in a waste of cloud resources in cloud resource A and, at the same time, causing losses to users.
[0115] Therefore, the cloud application deployment system 10 may also confirm with the account management system 40 whether the user's account balance meets the activation condition.
[0116] Among them, the account management system 40 refers to a system for managing multiple cloud accounts. Among them, the cloud account can represent the user identity in different scenarios when the user accesses the cloud platform, for example, it represents the user identity in scenarios such as obtaining cloud applications and using cloud applications. Furthermore, the cloud account supports transactions using payment funds, and payment funds refer to funds held by the cloud account in the form of electronic data, including but not limited to currency, virtual currency (such as gold coins, silver coins), points, points (such as experience points, growth points), etc. The payment funds that can be used for transactions in the cloud account are also called account balances. Users can use the account balances in the cloud account to conduct transactions, for example, using the account balances to obtain cloud applications, using the account balances to activate cloud resources, etc.
[0117] It should be noted that the embodiment of the present application does not limit the execution order of S304 and S306. In other possible implementations of the embodiment of the present application, the cloud application deployment system 10 may also execute S306 first, then execute S304, or execute S304 and S306 in parallel.
[0118] Furthermore, the embodiment of the present application does not limit the order of confirming whether the cloud resources meet the activation conditions and confirming whether the account balance meets the activation conditions. In other possible implementations of the embodiment of the present application, the cloud application deployment system 10 may first confirm whether the account balance meets the activation conditions, and then confirm whether the cloud resources meet the activation conditions, or the cloud application deployment system 10 may also perform the confirmation of whether the cloud resources meet the activation conditions and the confirmation of whether the account balance meets the activation conditions in parallel.
[0119] S308: When both the first cloud resource and the second cloud resource meet the activation conditions, the cloud application deployment system 10 activates the first cloud resource and the second cloud resource.
[0120] The activation conditions include whether the first cloud resources and the second cloud resources have sufficient balances, specifically, whether the first resource management system 32 has sufficient first cloud resources, and whether the second resource management system 34 has sufficient second cloud resources.
[0121] Specifically, the cloud application deployment system 10 may apply to the first resource management system 32 for reserving the first cloud resource, and to the second resource management system 34 for reserving the second cloud resource. When both reservation requests are successful, the first cloud resource and the second cloud resource meet the opening conditions. In some embodiments, the cloud application deployment system 10 may send a first resource reservation application to the first resource management system 32, wherein the first resource reservation application may include resource information of the first cloud resource to be reserved (e.g., the number of the first cloud resource, the specification of the first cloud resource). The first resource management system 32 may respond to the first resource reservation application and query the balance of the first cloud resource pool corresponding to the first cloud resource. If the balance of the first cloud resource pool is greater than or equal to the first cloud resource, the first cloud resource is reserved. At this time, the first cloud resource meets the opening conditions. If the balance of the first cloud resource pool is less than the first cloud resource, the reservation of the first cloud resource fails. At this time, the first cloud resource does not meet the opening conditions, and the cloud application deployment system 10 may send a prompt message to the user, which is used to prompt that the first cloud resource is insufficient.
[0122] Similarly, the cloud application deployment system 10 may send a second resource reservation application to the second resource management system 34, wherein the second resource reservation application may include resource information of the second cloud resource to be reserved (e.g., the number of the second cloud resources, the specifications of the second cloud resources). The second resource management system 34 may query the balance of the second cloud resource pool corresponding to the second cloud resource in response to the second resource reservation application. If the balance of the second cloud resource pool is greater than or equal to the second cloud resource, the second cloud resource is reserved. At this time, the second cloud resource meets the activation condition. If the balance of the second cloud resource pool is less than the second cloud resource, the second cloud resource reservation fails. At this time, the second cloud resource does not meet the activation condition, and the cloud application deployment system 10 may send a prompt message to the user, which is used to prompt that the second cloud resource is insufficient.
[0123] In this way, if the reservation of the first cloud resource or the second cloud resource fails, for example, the balance of the first cloud resource is insufficient or the balance of the second cloud resource is insufficient, that is, the first cloud resource or the second cloud resource does not meet the activation conditions, the cloud application deployment system 10 can inform the user and stop the deployment of the cloud application in time, so as to avoid the waste of cloud resources caused by the idleness of the successfully activated cloud resources after some cloud resources are successfully activated due to the failure of the activation of other cloud resources, thereby improving the utilization rate of cloud resources and the deployment efficiency of cloud applications.
[0124] When the cloud application deployment system 10 successfully applies to the first resource management system 32 and the second resource management system 34 for reserving the first cloud resources and the second cloud resources, the cloud application deployment system 10 can call the first cloud resources and the second cloud resources reserved by the first resource management system 32 and the second resource management system 34, thereby realizing the activation of the first cloud resources and the second cloud resources.
[0125] In specific implementation, the cloud application deployment system 10 can receive the first resource reservation credential returned by the first resource management system 32 and the second resource reservation credential returned by the second resource management system 34, activate the first cloud resource according to the reserved first cloud resource and the first resource reservation credential, and activate the second cloud resource according to the reserved second cloud resource and the second cloud resource reservation credential.
[0126] In some possible implementations, the cloud application deployment system 10 may also confirm with the account management system 40 whether the user's account balance meets the activation conditions. When the first cloud resource, the second cloud resource and the user's account balance all meet the activation conditions, the cloud application deployment system 10 may also deduct the user's account balance.
[0127] The user's account balance meeting the activation condition means that the user's account balance meets the balance required for activating the first cloud resource, and after deducting the balance required for activating the first cloud resource, the user's account balance still meets the balance required for activating the second cloud resource. In this way, it is ensured that the user's account balance is sufficient.
[0128] In some embodiments, the cloud application deployment system 10 may apply to the account management system 40 to reserve the user's account balance. Specifically, the cloud application deployment system 10 may send an account balance reservation application to the account management system 40, wherein the account balance reservation application may include the user's account identifier and the account balance to be reserved. The account management system 40 may respond to the account balance reservation application and query the user's account balance according to the account identifier. If the user's account balance is greater than or equal to the account balance to be reserved, the corresponding account balance is reserved. At this time, the user's account balance meets the activation conditions. If the user's account balance is less than the account balance to be reserved, the account balance reservation fails. At this time, the user's account balance does not meet the activation conditions, and the cloud application deployment system 10 may send a prompt message to the user, which is used to prompt that the account balance is insufficient.
[0129] It should be noted that the execution order of opening cloud resources and deducting account balances is not limited in the embodiments of the present application. In other possible implementations of the embodiments of the present application, the cloud application deployment system 10 may also deduct the account balance first and then open cloud resources, or execute the deduction of account balance and opening cloud resources in parallel.
[0130] S310: Deploy cloud applications according to the activated first cloud resources and second cloud resources.
[0131] Based on the above description, the cloud application deployment system 10 can realize the deployment of cloud applications on the first cloud resource and the second cloud resource. In this way, by confirming whether the first cloud resource and the second cloud resource meet the activation conditions before deploying the cloud application, the cloud application can be deployed on the basis of ensuring sufficient cloud resources, avoiding the failure of cloud resource activation due to insufficient cloud resources, which in turn leads to the failure of cloud application deployment, but the successfully activated cloud resources are idle, resulting in a waste of cloud resources.
[0132] Furthermore, by confirming whether the user's account balance meets the activation conditions before deploying the cloud application, the cloud application can be deployed on the basis of ensuring that the account balance is sufficient, avoiding the failure of some cloud resources to be activated due to insufficient account balance, but the successful cloud resources will start to be charged, causing losses to the user.
[0133] In some possible implementations, according to the functions of the cloud application deployment system 10, the cloud application deployment system 10 may specifically include an orchestration subsystem 12 and a reservation subsystem 14. Among them, the reservation subsystem 14 is used to confirm whether the cloud resources or the user's account balance meets the activation conditions, and the above function can also be called a reservation function. The orchestration subsystem 12 is used to activate cloud resources and deploy cloud applications, and the above function can also be called an orchestration function. In this way, the decoupling of the orchestration function and the reservation function in the cloud application deployment system 10 is achieved, and the reservation subsystem 14 can be provided as a general functional module to other services, such as other services that can use the reservation function.
[0134] See also Figure 5 The flowchart of a cloud application deployment method shown in FIG. 1 includes the following steps:
[0135] S502 : The cloud application management system 20 sends a deployment request for the cloud application to the orchestration subsystem 12 .
[0136] S504: The orchestration subsystem 12 determines the cloud resources used by the cloud application.
[0137] Depending on the deployment mode of the cloud application, the orchestration subsystem 12 may determine the cloud resources used by the cloud application in different ways. For example, when the deployment mode of the cloud application is manual deployment, the orchestration subsystem 12 may inquire the user about the cloud resources used by the cloud application, thereby determining the cloud resources used by the cloud application. For another example, when the deployment mode of the cloud application is automatic deployment, the orchestration subsystem 12 may determine the cloud resources used by the cloud application by parsing the deployment template.
[0138] S506 : The orchestration subsystem 12 sends a reservation request to the reservation subsystem 14 .
[0139] When a cloud application uses at least two cloud resources, deploying the cloud application involves confirming whether the cloud resources or the user's account balance meet the requirements for activation. The orchestration subsystem 12 may send a reservation request to the reservation subsystem 14. The reservation request may specifically include a cloud resource reservation request and an account balance reservation request. In this way, before deploying the cloud application, it is ensured that the cloud resources or the account balance meet the activation conditions, thereby ensuring the successful activation of the cloud resources.
[0140] It is understandable that when a cloud application uses a cloud resource, orchestration subsystem 12 can directly activate the cloud resource without sending a reservation request to reservation subsystem 14 .
[0141] S508: The reservation subsystem 14 determines the account balance to be reserved according to the attributes of the first cloud resource and the attributes of the second cloud resource.
[0142] The attributes of the first cloud resource are used to describe the configuration information or usage information of the first cloud resource, and the attributes of the second cloud resource are used to describe the configuration information or usage information of the second cloud resource. The configuration information may include specifications, architecture, etc., and the usage information may include billing mode, billing cycle, payment method, etc. Taking ECS as an example, the configuration information may include central processing unit (CPU) architecture, memory capacity, disk type, network bandwidth, and the usage information may include billing mode (e.g., annual, monthly, pay-as-you-go), purchase duration, and number of instances purchased.
[0143] In some embodiments, orchestration subsystem 12 may display cloud resource attributes to users to help users deploy cloud applications. In specific implementations, orchestration subsystem 12 may receive an attribute viewing request for a cloud application, obtain the attributes of a first cloud resource and a second cloud resource according to the attribute viewing request, and return the attributes of the first cloud resource and the second cloud resource to the user.
[0144] Furthermore, when a cloud resource supports multiple configurations or multiple usage modes, the user can also select the desired cloud resource attributes. For example, the user can select from multiple configurations supported by the first cloud resource and the second cloud resource to determine configuration information, or select from different usage modes supported by the first cloud resource and the second cloud resource to determine usage information, thereby determining the attributes of the first cloud resource and the attributes of the second cloud resource.
[0145] Since the balances required to activate cloud resources with different attributes are different, the reservation subsystem 14 can determine the balance required to activate the first cloud resource based on the attributes of the first cloud resource, and determine the balance required to activate the second cloud resource based on the attributes of the second cloud resource, thereby determining the account balance to be reserved.
[0146] S510: The reservation subsystem 14 applies to the account management system 40 for reserving the user's account balance.
[0147] S512: The reservation subsystem 14 applies to the first resource management system 32 for reserving the first cloud resource.
[0148] S514: The reservation subsystem 14 applies to the second resource management system 34 for reserving the second cloud resources.
[0149] S510 to S514 are similar to S308 above and will not be described in detail here.
[0150] In some embodiments, the reservation subsystem 14 may indicate the reserved account balance or cloud resource in the form of a reservation mark. Specifically, the reservation subsystem 14 may mark the account balance of the user reserved in the account management system 40 as reserved, indicating that the corresponding account balance has been reserved and cannot be used in other transactions. The reservation subsystem 14 may also mark the first cloud resource reserved in the first resource management system 32 as reserved, and mark the second cloud resource reserved in the second resource management system 34 as reserved, indicating that the first cloud resource and the second cloud resource have been reserved and cannot be called to other users or used by other users.
[0151] S516: The reservation subsystem 14 returns the resource reservation certificate and the account balance reservation certificate to the orchestration subsystem 12.
[0152] Since the orchestration function and the reservation function are decoupled in the embodiment of the present application, in order to facilitate the orchestration subsystem 12 to perform resource orchestration, when the first cloud resources, the second cloud resources and the user's account balance all meet the activation conditions, that is, after the reservation subsystem 14 completes the account balance reservation, the first cloud resource reservation and the second cloud resource reservation, the account balance reservation certificate sent by the account management system 40 and the resource reservation certificate sent by the first resource management system 32 and the second resource management system 34 can be returned to the orchestration subsystem 12, wherein the resource reservation certificate may include the first resource reservation certificate and the second resource reservation certificate.
[0153] In this way, orchestration subsystem 12 can carry the account balance reservation credential and the resource reservation credential to perform cloud resource provisioning or account balance deduction operations.
[0154] S518: The orchestration subsystem 12 activates the first cloud resource according to the reserved first cloud resource and the first resource reservation credential, and activates the second cloud resource according to the reserved second cloud resource and the second resource reservation credential.
[0155] S520: The orchestration subsystem 12 deducts the user's account balance according to the account balance reservation voucher.
[0156] S522: The orchestration subsystem 12 deploys cloud applications according to the activated first cloud resources and second cloud resources.
[0157] S524 : The orchestration subsystem 12 sends the deployment result of the cloud application to the cloud application management system 20 and the reservation subsystem 14 .
[0158] After completing the deployment of the cloud application, the orchestration subsystem 12 can send the deployment result of the cloud application, for example, a result indicating that the cloud application deployment is successful, to the cloud application management system 20. In this way, when the user queries the deployment status of the cloud application, the cloud application management system 20 can present the deployment result of the cloud application to the user so that the user can use the cloud application in a timely manner.
[0159] In addition, the orchestration subsystem 12 may also send the deployment result of the cloud application to the reservation subsystem 14 to inform the reservation subsystem 14 of the deployment result of the cloud application so that the reservation subsystem 14 can process the reservation mark to avoid long-term reservation of the account balance and cloud resources and improve the utilization rate of the account balance or cloud resources.
[0160] S526 : The reservation subsystem 14 changes the first resource reservation flag in the first resource management system 32 .
[0161] When the cloud application deployment result indicates that the cloud application deployment is successful, the reservation subsystem 14 may change the first resource reservation mark in the first resource management system 32. Specifically, the reservation subsystem 14 may change the first resource reservation mark in the first resource management system 32 to completed, indicating that the first cloud resource has been successfully opened.
[0162] S528 : The reservation subsystem 14 changes the second resource reservation mark in the second resource management system 34 .
[0163] Similarly, the reservation subsystem 14 may change the second resource reservation mark in the second resource management system 34 to completed, indicating that the second cloud resource has been successfully provisioned.
[0164] S530 : The reservation subsystem 14 changes the account balance reservation flag in the account management system 40 .
[0165] Similarly, the reservation subsystem 14 may change the account balance reservation flag in the account management system 40 to completed, indicating that the account balance has been successfully deducted.
[0166] It should be noted that the embodiment of the present application does not limit the execution order of S526, S528 and S530. In other possible implementations of the embodiment of the present application, the reservation subsystem 14 may also execute S526, S528 and S530 in other execution orders, or execute S526, S528 and S530 in parallel.
[0167] In the embodiment of the present application, by decoupling the deployment system of cloud applications into an orchestration subsystem and a reservation subsystem, the reservation subsystem can realize the function of reserving cloud resources and account balances (i.e., confirming whether cloud resources and account balances meet the activation conditions), and the orchestration subsystem can realize the function of activating cloud resources and deploying cloud applications. In this way, cloud applications are deployed on the basis of ensuring sufficient account balances and cloud resources, avoiding idle cloud resources and improving the deployment efficiency of cloud applications. At the same time, the reservation subsystem can also be provided to other services as a separate, general function module to realize function reuse.
[0168] Furthermore, after applying to reserve an account balance and cloud resources, by indicating the successfully reserved account balance and cloud resources in the form of a reservation mark, it can be ensured that the successfully reserved account balance and cloud resources are used in the process of deploying cloud applications, effectively avoiding the successfully reserved account balance from being used in other transactions, or the successfully reserved cloud resources from being called to or used by other users, thereby improving the success rate of deploying cloud applications.
[0169] Based on the cloud application deployment method of the aforementioned embodiment, the present application embodiment further provides a cloud application deployment system 10 as described above. The cloud application deployment system 10 is introduced below in conjunction with the accompanying drawings.
[0170] See also Figure 6 The structure diagram of the cloud application deployment system 10 shown in the figure, wherein the cloud application uses at least two cloud resources, the at least two cloud resources include a first cloud resource and a second cloud resource, the first cloud resource is managed by a first resource management system, and the second cloud resource is managed by a second resource management system, and the system 10 includes:
[0171] The confirmation module 102 is used to receive a deployment request for a cloud application from a user, and confirm with the first resource management system and the second resource management system whether the first cloud resource and the second cloud resource meet the activation conditions according to the deployment request, wherein the activation conditions include whether the first cloud resource and the second cloud resource have sufficient balances;
[0172] An activation module 104, configured to activate the first cloud resource and the second cloud resource when both the first cloud resource and the second cloud resource meet activation conditions;
[0173] The deployment module 106 is used to deploy cloud applications according to the activated first cloud resources and second cloud resources.
[0174] Among them, the activation module 104 and the deployment module 106 may be modules in the orchestration subsystem 12 , and the confirmation module 102 may be a module in the reservation subsystem 14 .
[0175] It should be noted that the above module division method is only a possible implementation method provided by the embodiment of the present application. In other possible implementation methods, different module division methods can be used as needed, and the embodiment of the present application does not limit this.
[0176] The above confirmation module 102, activation module 104 and deployment module 106 can be implemented by hardware modules or by software modules. Among them, the confirmation module 102, activation module 104 and deployment module 106 can be implemented by a computing device or a computing engine on a computing device. Below, the confirmation module 102 is taken as an example for description.
[0177] When implemented by software, the confirmation module 102 may be an application or an application module running on a computing device or a computing device cluster, such as a computing engine.
[0178] When implemented by hardware, the confirmation module 102 may include at least one computing device, such as a server, etc. Alternatively, the confirmation module 102 may also be a device implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), etc. The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0179] In some possible implementations, the confirmation module 102 is further configured to:
[0180] receiving a deployment request from a user for a cloud application, and confirming with the first resource management system, the second resource management system, and the account management system whether the first cloud resources, the second cloud resources, and the user's account balance meet activation conditions according to the deployment request;
[0181] The activation module 104 is also used for:
[0182] When the first cloud resource, the second cloud resource and the user's account balance all meet the activation conditions, the first cloud resource and the second cloud resource are activated, and the user's account balance is deducted.
[0183] In some possible implementations, the confirmation module 102 is specifically configured to:
[0184] Apply to the first resource management system and the second resource management system to reserve the first cloud resources and the second cloud resources;
[0185] The activation module 104 is specifically used for:
[0186] When the requests to the first resource management system and the second resource management system for reserving the first cloud resources and the second cloud resources are both successful, the first cloud resources and the second cloud resources reserved by the first resource management system and the second resource management system are called.
[0187] In some possible implementations, the activation module 104 is specifically configured to:
[0188] When the user's account balance meets the balance required for opening the first cloud resource, and after deducting the balance required for opening the first cloud resource, the user's account balance still meets the balance required for opening the second cloud resource, the user's account balance meets the opening condition.
[0189] In some possible implementations, the system 10 further includes:
[0190] The viewing module is used to receive a user's property viewing request for a cloud application, obtain the properties of the first cloud resource and the properties of the second cloud resource according to the property viewing request, and return the properties of the first cloud resource and the properties of the second cloud resource to the user.
[0191] In some possible implementations, the activation module 104 is further configured to:
[0192] The balance required for opening the first cloud resource is determined according to the attribute of the first cloud resource, and the balance required for opening the second cloud resource is determined according to the attribute of the second cloud resource.
[0193] In some possible implementations, the confirmation module 102 is specifically configured to:
[0194] Receive a deployment request from a user for a cloud application, and obtain a deployment template corresponding to the cloud application according to the deployment request;
[0195] Parse the deployment template to determine the first cloud resource and the second cloud resource used by the cloud application;
[0196] Confirm with the first resource management system and the second resource management system whether the first cloud resources and the second cloud resources meet the activation conditions.
[0197] In some possible implementations, the confirmation module 102 is specifically configured to:
[0198] Receive an automatic deployment request from a user for a cloud application, and obtain a deployment template corresponding to the cloud application according to the automatic deployment request.
[0199] In some possible implementations, the confirmation module 102 is specifically configured to:
[0200] receiving a manual deployment request from a user for a cloud application, and presenting prompt information to the user according to the manual deployment request, the prompt information being used to confirm with the user whether the cloud application uses at least two cloud resources;
[0201] If so, confirm with the first resource management system and the second resource management system whether the first cloud resources and the second cloud resources meet the activation conditions.
[0202] In some possible implementations, the activation module 104 is further configured to:
[0203] Receiving a first resource reservation certificate returned by the first resource management system, and receiving a second resource reservation certificate returned by the second resource management system;
[0204] The activation module 104 is specifically used for:
[0205] The first cloud resource is activated according to the reserved first cloud resource and the first resource reservation credential, and the second cloud resource is activated according to the reserved second cloud resource and the second resource reservation credential.
[0206] The present application embodiment also provides a computing device 700. Figure 7 As shown, computing device 700 includes: bus 702, processor 704, memory 706 and communication interface 708. Processor 704, memory 706 and communication interface 708 communicate through bus 702. Computing device 700 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in computing device 700.
[0207] The bus 702 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The bus 704 is represented by only one line, but does not mean that there is only one bus or one type of bus. The bus 704 may include a path for transmitting information between various components of the computing device 700 (eg, the memory 706, the processor 704, and the communication interface 708).
[0208] The processor 704 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0209] The memory 706 may include a volatile memory, such as a random access memory (RAM). The processor 704 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid state drive (SSD). The memory 706 stores executable program code, and the processor 704 executes the executable program code to implement the aforementioned cloud application deployment method. Specifically, the memory 706 stores instructions for the cloud application deployment system 10 to execute the cloud application deployment method.
[0210] The communication interface 708 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 700 and other devices or communication networks.
[0211] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0212] like Figure 8 As shown, the computing device cluster includes at least one computing device 700. The memory 706 in one or more computing devices 700 in the computing device cluster may store the same cloud application deployment system 10 for executing the cloud application deployment method instructions.
[0213] In some possible implementations, one or more computing devices 700 in the computing device cluster may also be used to execute some instructions of the cloud application deployment system 10 for executing the cloud application deployment method. In other words, the combination of one or more computing devices 700 may jointly execute the instructions of the cloud application deployment system 10 for executing the cloud application deployment method.
[0214] It should be noted that the memory 706 in different computing devices 700 in the computing device cluster can store different instructions for executing partial functions of the cloud application deployment system 10.
[0215] Fig. 9 A possible implementation is shown. Fig. 9 As shown, two computing devices 700A and 700B are connected via a communication interface 708. The memory in computing device 700A stores instructions for executing the functions of confirmation module 102. The memory in computing device 700B stores instructions for executing the functions of provisioning module 104 and deployment module 106. In other words, the memories 706 of computing devices 700A and 700B jointly store instructions for the cloud application deployment system 10 to execute the cloud application deployment method.
[0216] Fig. 9 The connection method between the computing device clusters shown may be considered to be that the cloud application deployment method provided in this application needs to confirm whether the cloud resources meet the activation conditions and deploy the cloud application. Therefore, it is considered that the functions implemented by the confirmation module 102 are executed by the computing device 700A, and the functions implemented by the activation module 104 and the deployment module 106 are executed by the computing device 700B.
[0217] It should be understood that Fig. 9 The functions of the computing device 700A shown in FIG. 7 may also be completed by multiple computing devices 700. Similarly, the functions of the computing device 700B may also be completed by multiple computing devices 700.
[0218] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.10 A possible implementation is shown. Fig.10 As shown, two computing devices 700C and 700D are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 706 in the computing device 700C stores instructions for executing the functions of the confirmation module 102. At the same time, the memory 706 in the computing device 700D stores instructions for executing the functions of the activation module 104 and the deployment module 106.
[0219] Fig.10 The connection method between the computing device clusters shown may be considered to be that the deployment method of the cloud application provided in this application needs to confirm whether the cloud resources meet the activation conditions and deploy the cloud application. Therefore, it is considered that the functions implemented by the confirmation module 102 are executed by the computing device 700C, and the functions implemented by the activation module 104 and the deployment module 106 are executed by the computing device 700D. It should be understood that Fig.10 The functions of the computing device 700C shown in FIG. 700A may also be completed by multiple computing devices 700. Similarly, the functions of the computing device 700D may also be completed by multiple computing devices 700.
[0220] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned deployment system for cloud applications for executing the deployment method of cloud applications.
[0221] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the above-mentioned cloud application deployment method.
[0222] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for deploying a cloud application, characterized in that: The cloud application uses at least two cloud resources, the at least two cloud resources include a first cloud resource and a second cloud resource, the first cloud resource is managed by a first resource management system, and the second cloud resource is managed by a second resource management system, and the method includes: receiving a deployment request for the cloud application from a user, and confirming with the first resource management system and the second resource management system whether the first cloud resource and the second cloud resource meet an activation condition according to the deployment request, wherein the activation condition includes whether the first cloud resource and the second cloud resource have sufficient balances; When both the first cloud resource and the second cloud resource meet the activation condition, activate the first cloud resource and the second cloud resource; The cloud application is deployed according to the activated first cloud resources and the second cloud resources.
2. The method according to claim 1, characterized in that: The receiving a deployment request from a user for the cloud application, and confirming with the first resource management system and the second resource management system whether the first cloud resource and the second cloud resource meet an activation condition according to the deployment request, further includes: receiving a deployment request from a user for the cloud application, and confirming with the first resource management system, the second resource management system, and the account management system whether the first cloud resource, the second cloud resource, and the user's account balance meet activation conditions according to the deployment request; When both the first cloud resource and the second cloud resource meet the activation condition, activating the first cloud resource and the second cloud resource further includes: When the first cloud resource, the second cloud resource, and the account balance of the user all meet activation conditions, the first cloud resource and the second cloud resource are activated, and the account balance of the user is deducted.
3. The method according to claim 1, characterized in that The confirming, according to the deployment request, whether the first cloud resource and the second cloud resource meet an activation condition with the first resource management system and the second resource management system includes: Applying to the first resource management system and the second resource management system to reserve the first cloud resources and the second cloud resources; When both the first cloud resource and the second cloud resource meet the activation condition, activating the first cloud resource and the second cloud resource includes: When the requests to the first resource management system and the second resource management system for reserving the first cloud resources and the second cloud resources are both successful, the first cloud resources and the second cloud resources reserved by the first resource management system and the second resource management system are called.
4. The method according to claim 2, characterized in that: The user's account balance meets the activation conditions, including: The user's account balance satisfies a balance required for opening the first cloud resource, and after deducting the balance required for opening the first cloud resource, the user's account balance still satisfies a balance required for opening the second cloud resource.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Receive a property viewing request from a user for the cloud application, obtain properties of the first cloud resource and properties of the second cloud resource according to the property viewing request, and return the properties of the first cloud resource and properties of the second cloud resource to the user.
6. The method according to claim 5, characterized in that The method further comprises: The balance required for activating the first cloud resource is determined according to the attribute of the first cloud resource, and the balance required for activating the second cloud resource is determined according to the attribute of the second cloud resource.
7. The method according to any one of claims 1 to 6, characterized in that: The receiving a deployment request from a user for the cloud application, and confirming with the first resource management system and the second resource management system whether the first cloud resource and the second cloud resource meet an activation condition according to the deployment request, includes: Receiving a deployment request from a user for the cloud application, and acquiring a deployment template corresponding to the cloud application according to the deployment request; Parsing the deployment template to determine a first cloud resource and a second cloud resource used by the cloud application; Confirm with the first resource management system and the second resource management system whether the first cloud resources and the second cloud resources meet activation conditions.
8. The method according to claim 7, characterized in that The receiving a deployment request from a user for the cloud application, and acquiring a deployment template corresponding to the cloud application according to the deployment request, includes: An automatic deployment request from a user for the cloud application is received, and a deployment template corresponding to the cloud application is acquired according to the automatic deployment request.
9. The method according to any one of claims 1 to 6, characterized in that: The receiving a deployment request from a user for the cloud application, and confirming with the first resource management system and the second resource management system whether the first cloud resource and the second cloud resource meet an activation condition according to the deployment request, includes: receiving a manual deployment request from a user for the cloud application, and presenting prompt information to the user according to the manual deployment request, wherein the prompt information is used to confirm with the user whether the cloud application uses at least two cloud resources; If so, confirm with the first resource management system and the second resource management system whether the first cloud resources and the second cloud resources meet the activation conditions.
10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: Receiving a first resource reservation voucher returned by the first resource management system, and receiving a second resource reservation voucher returned by the second resource management system; When both the first cloud resource and the second cloud resource meet the activation condition, activating the first cloud resource and the second cloud resource includes: The first cloud resource is activated according to the reserved first cloud resource and the first resource reservation credential, and the second cloud resource is activated according to the reserved second cloud resource and the second resource reservation credential.
11. A cloud application deployment system, characterized in that: The cloud application uses at least two cloud resources, the at least two cloud resources include a first cloud resource and a second cloud resource, the first cloud resource is managed by a first resource management system, and the second cloud resource is managed by a second resource management system, and the system includes: a confirmation module, configured to receive a deployment request from a user for the cloud application, and confirm with the first resource management system and the second resource management system, according to the deployment request, whether the first cloud resource and the second cloud resource meet an activation condition, wherein the activation condition includes whether the first cloud resource and the second cloud resource have a sufficient balance; An activation module, configured to activate the first cloud resource and the second cloud resource when both the first cloud resource and the second cloud resource meet activation conditions; A deployment module is used to deploy the cloud application according to the activated first cloud resources and second cloud resources.
12. The system according to claim 11, characterized in that The confirmation module is also used for: receiving a deployment request from a user for the cloud application, and confirming with the first resource management system, the second resource management system, and the account management system whether the first cloud resource, the second cloud resource, and the user's account balance meet activation conditions according to the deployment request; The activation module is also used for: When the first cloud resource, the second cloud resource, and the account balance of the user all meet activation conditions, the first cloud resource and the second cloud resource are activated, and the account balance of the user is deducted.
13. The system according to claim 11, characterized in that The confirmation module is specifically used for: Applying to the first resource management system and the second resource management system to reserve the first cloud resources and the second cloud resources; The activation module is specifically used for: When the requests to the first resource management system and the second resource management system for reserving the first cloud resources and the second cloud resources are both successful, the first cloud resources and the second cloud resources reserved by the first resource management system and the second resource management system are called.
14. The system according to claim 12, characterized in that The activation module is specifically used for: When the user's account balance meets the balance required for opening the first cloud resource, and after deducting the balance required for opening the first cloud resource, the user's account balance still meets the balance required for opening the second cloud resource, the user's account balance meets the opening condition.
15. The system according to any one of claims 11 to 14, characterized in that: The system further comprises: The viewing module is used to receive a user's property viewing request for the cloud application, obtain the properties of the first cloud resource and the properties of the second cloud resource according to the property viewing request, and return the properties of the first cloud resource and the properties of the second cloud resource to the user.
16. The system according to claim 15, characterized in that The activation module is also used for: The balance required for activating the first cloud resource is determined according to the attribute of the first cloud resource, and the balance required for activating the second cloud resource is determined according to the attribute of the second cloud resource.
17. The system according to any one of claims 11 to 16, characterized in that: The confirmation module is specifically used for: Receiving a deployment request from a user for the cloud application, and acquiring a deployment template corresponding to the cloud application according to the deployment request; Parsing the deployment template to determine a first cloud resource and a second cloud resource used by the cloud application; Confirm with the first resource management system and the second resource management system whether the first cloud resources and the second cloud resources meet activation conditions.
18. The system according to claim 17, characterized in that The confirmation module is specifically used for: An automatic deployment request from a user for the cloud application is received, and a deployment template corresponding to the cloud application is acquired according to the automatic deployment request.
19. The system according to any one of claims 11 to 16, characterized in that: The confirmation module is specifically used for: receiving a manual deployment request from a user for the cloud application, and presenting prompt information to the user according to the manual deployment request, wherein the prompt information is used to confirm with the user whether the cloud application uses at least two cloud resources; If so, confirm with the first resource management system and the second resource management system whether the first cloud resources and the second cloud resources meet the activation conditions.
20. The system according to any one of claims 11 to 19, characterized in that The activation module is also used for: Receiving a first resource reservation voucher returned by the first resource management system, and receiving a second resource reservation voucher returned by the second resource management system; The activation module is specifically used for: The first cloud resource is activated according to the reserved first cloud resource and the first resource reservation credential, and the second cloud resource is activated according to the reserved second cloud resource and the second resource reservation credential.
21. A computing device cluster, characterized in that: The computing device cluster includes at least one computing device, and the at least one computing device includes at least one processor and at least one memory, wherein the at least one memory stores computer-readable instructions; the at least one processor executes the computer-readable instructions so that the computing device cluster executes the method as described in any one of claims 1 to 10.
22. A computer-readable storage medium, characterized in that: The method comprises computer-readable instructions; the computer-readable instructions are used to implement the method according to any one of claims 1 to 10.
23. A computer program product, characterized in that The method comprises computer-readable instructions; the computer-readable instructions are used to implement the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Method and device for deploying application based on cloud computing
CN106325998A
Method for deploying virtual machine and related device
CN112306625A
Method and system for managing hybrid cloud resources
CN113065105A
Cloud management system, method and device for Internet of Things platform
CN114372244A
Cloud resource allocation method, system and device and storage medium
CN114389868A
