Method and apparatus for application deployment, and related device

By automatically determining the unconfigured resource configuration item values ​​in the cloud computing environment, the failure problem caused by resource unavailability of cloud application deployment is solved, the deployment efficiency and success rate are improved, and the user configuration process is simplified.

WO2024239612A1PCT designated stage expired Publication Date: 2024-11-28HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/138478
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-07-11
Filing Date
2023-12-13
Publication Date
2024-11-28

AI Technical Summary

Technical Problem

In a cloud computing environment, application deployment often fails due to unavailable value of resource configuration items during application deployment, resulting in users having to try and error multiple times to eliminate exceptions, reducing deployment efficiency and increasing difficulty.

Method used

Automatically determine the value of the configuration item that the user has not configured through the application deployment device, and ensure that the value of the resource configuration item is available based on the available resources in the cloud environment, thereby achieving automated deployment and improving success rate and efficiency.

Benefits of technology

It effectively improves the success rate and efficiency of application deployment, reduces the difficulty and number of configuration parameters for users to deploy applications on the cloud, simplifies the deployment process, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023138478_28112024_PF_FP_ABST
    Figure CN2023138478_28112024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a method for application deployment, which comprises: acquiring a configuration template provided by a user, wherein the configuration template comprises a first configuration item and a second configuration item, and a value of the first configuration item is configured by the user; acquiring at least one available resource matched with the second configuration item in the cloud environment, and determining a value of the second configuration item according to the at least one available resource, and then deploying an application on the cloud according to the first configuration item, the value of the first configuration item configured by the user, the second configuration item, and the value of the second configuration item automatically determined by an apparatus for application deployment. Therefore, by automatically determining the value of a remaining configuration item which is not configured by the user according to the currently available resource in the cloud environment, the success rate of application deployment can be effectively improved, and the user does not need to eliminate the application deployment abnormality by making multiple trials and errors, so that the efficiency of deploying the application on the cloud by the user can be improved, and the deployment difficulty can be reduced. In addition, the present application further provides a corresponding apparatus for application deployment and a related device.
Need to check novelty before this filing date? Find Prior Art

Description

Application deployment method, device and related equipment

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on May 19, 2023, with application number 202310573141.1 and application name “A method, device and related equipment for application deployment”, and claims priority to the Chinese patent application filed with the State Intellectual Property Office on July 11, 2023, with application number 202310847475.3 and invention name “A method, device and related equipment for application deployment”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of cloud computing technology, and in particular to an application deployment method, apparatus, and related equipment. Background Art

[0003] Application orchestration service (AOS) is a service that automates the deployment and orchestration of applications on cloud platforms. It enables one-click application creation and cloud service resource activation on the cloud, and provides efficient cloud application replication and migration capabilities.

[0004] Currently, when deploying applications on the cloud, the application orchestration service provides a template to the user, and the user enters the values ​​of multiple configuration items in the template. The application orchestration service can then deploy the application on the cloud based on the values ​​of the multiple configuration items in the template.

[0005] However, in actual application scenarios, application orchestration services often provide users with feedback on application deployment failures, requiring users to eliminate deployment anomalies through multiple trial and error methods, thereby reducing the efficiency of user application deployment on the cloud and increasing deployment difficulty.

[0006] Summary of the Invention

[0007] In view of this, embodiments of the present application provide an application deployment method to improve the efficiency of user application deployment on the cloud and reduce the deployment difficulty. The present application also provides a corresponding application deployment device, a computing device cluster, a computer-readable storage medium, and a computer program product.

[0008] In a first aspect, an embodiment of the present application provides an application deployment method, which can be executed by a corresponding application deployment device. Specifically, the application deployment device obtains a configuration template provided by a user. The configuration template can be a configuration template customized by the user, or can be a configuration template obtained after the user completes the configuration of some configuration items on the configuration template provided by the application deployment device. The configuration template includes multiple configuration items for the application, wherein the multiple configuration items include a first configuration item and a second configuration item, and the value of the first configuration item is configured by the user, and the value of the second configuration item is not configured by the user. The multiple configuration items are used to configure the resources in the cloud environment required for deploying the application; then, the application deployment device obtains at least one available resource in the cloud environment that matches the second configuration item, and the available resources include at least one of computing resources, storage resources, and network resources, and determines the value of the second configuration item based on the at least one available resource. The determined value of the second configuration item is used to indicate the target resource in the at least one available resource, so that the application deployment device deploys the application on the cloud according to the first configuration item, the value of the first configuration item specified by the user, the second configuration item, and the value of the second configuration item automatically determined by the application deployment device.

[0009] In this way, the application deployment device automatically determines the values ​​of the remaining configuration items that the user has not configured based on the currently available resources in the cloud environment. This allows the deployment of applications based on the values ​​of these configuration items to avoid application deployment failures caused by the unavailability of resources corresponding to the values ​​of these configuration items. This effectively improves the success rate of application deployment and eliminates the need for users to repeatedly troubleshoot anomalies in the application deployment process through trial and error. This can improve the efficiency of user application deployment on the cloud and reduce deployment difficulty. Furthermore, the automatic determination of the values ​​of the configuration items that the user has not configured can effectively reduce the number of parameters that the user needs to configure, further improving the efficiency of user application deployment on the cloud and reducing deployment difficulty.

[0010] In a possible embodiment, the application deployment device may also obtain deployment instruction information, which is used to indicate the selection of available resources from the cloud environment for the second configuration item based on target factors (i.e., to indicate the user's preference for the resources selected for the second configuration item), wherein the target factors include one or more factors of the function, performance, and cost of the application; then, when determining the value of the second configuration item, the application deployment device may specifically determine the value of the second configuration item based on the deployment instruction information and at least one available resource. In this way, the application processing device selects appropriate available resources for the application to be deployed based on the deployment instruction information (i.e., determines the value of the second configuration item), which can make the available resources allocated to the application more in line with the user's expectations, such as selecting low-cost / high-performance resources that meet the user's expectations to deploy the application, etc., thereby improving the user experience.

[0011] In one possible implementation, when determining the value of the second configuration item, the application deployment device may first obtain scores corresponding to multiple candidate values ​​for the second configuration item, each of which indicates an available resource in the cloud environment. The device then determines the value of the second configuration item based on the scores corresponding to the multiple candidate values. In this way, the application deployment device can automatically determine an appropriate value for the second configuration item based on the scoring mechanism, thereby automatically selecting appropriate resources from the cloud environment for application deployment.

[0012] In one possible embodiment, the number of second configuration items is multiple, and each second configuration item corresponds to at least one candidate value. Then, when determining the value of the second configuration item, the application deployment device may first determine multiple configuration combinations, each of which includes multiple second configuration items and a candidate value corresponding to each of the multiple second configuration items. The candidate values ​​corresponding to the multiple second configuration items in different configuration combinations are different. Then, the application deployment device determines the score of each of the multiple configuration combinations. The score of each configuration combination is calculated based on the score of the candidate values ​​corresponding to the multiple second configuration items. Based on the score of each configuration combination, a target configuration combination is determined from the multiple configuration combinations. The candidate values ​​in the target configuration combination are the values ​​of the multiple second configuration items. In this way, determining the values ​​of the multiple second configuration items based on the configuration combination can avoid ignoring the dependencies between the configuration items, which may lead to conflicts in the values ​​set for the multiple second configuration items, thereby affecting the final application deployment effect.

[0013] In one possible implementation, the multiple candidate values ​​of the second configuration item include a target candidate value, and the score of the target candidate value is the sum of the basic score and the preferred score, wherein the preferred score is determined according to the preferred level of the target candidate value. Then, the application deployment device can also adjust the score of the target candidate value in response to an adjustment operation (such as an administrator, etc.) on the preferred level of the target candidate value. In this way, by adjusting the priority level of the candidate value, the score of the candidate value in the resource configuration process can be adjusted, thereby facilitating fine-grained management and control of available resources in the cloud environment. For example, by adjusting the preferred level of the candidate value corresponding to the available resources in some AZs, the score of the candidate value can be increased, so that the available resources in the AZ can be preferentially allocated to the applications to be deployed, thereby realizing the management of resources in the cloud environment.

[0014] In one possible implementation, when deploying an application on the cloud, the application deployment device may first output the value of the second configuration item for presentation to the user, and in response to the user's modification operation on the value of the second configuration item, determine the corrected value corresponding to the second configuration item. Thus, the application deployment device deploys the application on the cloud based on the first configuration item, the value of the first configuration item specified by the user, the second configuration item, and the corrected value corresponding to the second configuration item modified by the user. In this way, by allowing the user to modify (or confirm) the value of the second configuration item, not only can the operations required by the user to deploy the application be simplified, thereby improving configuration efficiency and reducing configuration difficulty, but it can also ensure that the final configuration of the application further meets the user's expectations, thereby improving the user's experience in deploying the application.

[0015] In one possible implementation, when deploying an application on the cloud, the application deployment device may first output the value of the second configuration item and the historical configuration record corresponding to the configuration template for presentation to the user. The historical configuration record includes the value configured for the second configuration item when the application was deployed during a historical time period. Thus, the application deployment device can respond to the user's selection operation for the value of the second configuration item and deploy the application on the cloud based on the first configuration item, the value of the first configuration item, the second configuration item, and the value of the second configuration item. In this way, by presenting the historical configuration record for the second configuration item to the user, a reference is provided for the user to configure the application. The user can then make decisions based on other users' configurations of the second configuration item and set an appropriate value for the second configuration item, thereby improving the user's experience in deploying the application.

[0016] In a second aspect, the present application provides an application deployment device, which includes an application orchestration module for obtaining a configuration template provided by a user, the configuration template including multiple configuration items for the application, the multiple configuration items including a first configuration item and a second configuration item, the value of the first configuration item is configured by the user, and the multiple configuration items are used to configure the resources in the cloud environment required for deploying the application; a cloud environment feedback module for obtaining at least one available resource in the cloud environment that matches the second configuration item, the available resources including at least one of computing resources, storage resources, and network resources; a configuration module for determining the value of the second configuration item based on at least one available resource, the value of the second configuration item being used to indicate a target resource in at least one available resource; the application orchestration module is also used to deploy the application on the cloud based on the first configuration item, the value of the first configuration item, the second configuration item, and the value of the second configuration item.

[0017] In one possible implementation, the application orchestration module is further configured to obtain deployment instruction information, where the deployment instruction information is used to indicate the selection of available resources from the cloud environment for the second configuration item based on target factors, where the target factors include one or more factors of the application's functionality, performance, and cost; and the configuration module is specifically configured to determine a value of the second configuration item based on the deployment instruction information and at least one available resource.

[0018] In one possible implementation, the configuration module is specifically used to: obtain scores corresponding to multiple candidate values ​​of the second configuration item, each of the multiple candidate values ​​is used to indicate an available resource in the cloud environment; and determine the value of the second configuration item based on the scores corresponding to the multiple candidate values.

[0019] In a possible implementation, there are multiple second configuration items, each second configuration item corresponds to at least one candidate value, and the configuration module is specifically used to: determine multiple configuration combinations, each of the multiple configuration combinations includes multiple second configuration items and a candidate value corresponding to each of the multiple second configuration items, and the candidate values ​​corresponding to the multiple second configuration items in different configuration combinations are different; determine a score for each of the multiple configuration combinations, the score of each configuration combination is calculated based on the scores of the candidate values ​​corresponding to the multiple second configuration items; determine a target configuration combination from the multiple configuration combinations based on the score of each configuration combination, and the candidate values ​​in the target configuration combination are the values ​​of the multiple second configuration items.

[0020] In one possible implementation, the multiple candidate values ​​include a target candidate value, the score of the target candidate value is the sum of the basic score and the preferred score, and the preferred score is determined according to the preferred level of the target candidate value; the configuration module is also used to: adjust the score of the target candidate value in response to an adjustment operation on the preferred level of the target candidate value.

[0021] In one possible implementation, the application orchestration module is specifically configured to: output a value of a second configuration item for presentation to a user; determine a revised value corresponding to the second configuration item in response to a user modification operation on the value of the second configuration item; and deploy an application on the cloud based on the first configuration item, the value of the first configuration item, the second configuration item, and the revised value corresponding to the second configuration item.

[0022] In one possible implementation, the application orchestration module is specifically configured to: output a value of a second configuration item for presentation to a user and a historical configuration record corresponding to the configuration template, where the historical configuration record includes the value configured for the second configuration item when the application was deployed within a historical time period; and deploy the application on the cloud in response to a user's selection operation for the value of the second configuration item based on the first configuration item, the value of the first configuration item, the second configuration item, and the value of the second configuration item.

[0023] It is worth noting that the application deployment device provided in the second aspect corresponds to the application deployment method provided in the first aspect. Therefore, the technical effects of the second aspect and any implementation method of the second aspect can refer to the technical effects of the first aspect or the corresponding implementation method of the first aspect.

[0024] In a third aspect, the present application provides a computing device cluster, wherein the computing device 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 memory is used to store instructions, and the at least one processor executes the instructions stored in the at least one memory, so that the computing device cluster executes the application deployment method in the above-mentioned first aspect or any possible implementation of the first aspect. It should be noted that the memory can be integrated into the processor or can be independent of the processor. The at least one computing device may also include a bus. The processor is connected to the memory via a bus. The memory may include a readable memory and a random access memory.

[0025] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on at least one computing device, the at least one computing device executes the method described in the first aspect or any implementation of the first aspect.

[0026] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on at least one computing device, enables the at least one computing device to execute the method described in the first aspect or any one of the implementations of the first aspect.

[0027] Based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0029] FIG1 is a schematic diagram of the structure of an exemplary application deployment system provided by the present application;

[0030] FIG2 is a flow chart of an application deployment method provided by this application;

[0031] FIG3 is a schematic diagram of an exemplary interactive interface 1 provided in this application;

[0032] FIG4 is a schematic diagram of another exemplary interactive interface 2 provided in this application;

[0033] FIG5 is a schematic diagram of the structure of a computing device provided by the present application;

[0034] FIG6 is a schematic diagram of the structure of a computing device cluster provided in this application. DETAILED DESCRIPTION

[0035] The following will describe the solutions in the embodiments provided in this application in conjunction with the drawings in this application.

[0036] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate and are merely used to describe the manner in which objects with the same attributes are described in the embodiments of this application.

[0037] Referring to Figure 1 , a schematic diagram of the structure of an exemplary application deployment system provided by this application is shown. As shown in Figure 1 , the application deployment system 10 includes a client 100, a cloud platform 200, and an application deployment device 300, wherein the client 100, the cloud platform 200, and the application deployment device 300 can communicate with each other via a network.

[0038] The client 100 can be an application running on a user's device, or a web browser provided by the application deployment system 10. FIG1 illustrates only one client included in the application deployment system 10. In actual applications, the application deployment system 10 can include any number of clients, without limitation.

[0039] Cloud platform 200 is a platform that provides computing, networking, and storage capabilities based on hardware and software resources. One or more applications can be deployed on cloud platform 200, which, when running, can provide corresponding cloud services, such as Elastic Cloud Server (ECS) and cloud storage services.

[0040] The application deployment apparatus 300 includes an application orchestration module 301, a configuration module 302, and a cloud environment feedback module 303, and is used to facilitate users in deploying applications on the cloud platform 200. In actual application, the application deployment apparatus 300 can be deployed in the cloud to provide users with cloud services for deploying applications.

[0041] Typically, the application deployment apparatus 300 provides a configuration template to the user through the client 100. The configuration template may be a text description file in YAML or JSON format, and may define multiple configuration items required for deploying the application. The multiple configuration items are used to configure the resources in the cloud environment required for deploying the application, such as the region (region) and availability zone (AZ) where the application is located, the specifications of the processor and memory specifications that support the application, etc. The user enters the values ​​of each configuration item in the configuration template on the client 100, and the application deployment apparatus 300 can then deploy the corresponding application on the cloud platform 200 based on the values ​​of each configuration item in the configuration template.

[0042] However, the usage of resources in the cloud environment is in a dynamic state. This means that during the application deployment process, the number / specifications of resources indicated by the values ​​of some configuration items entered by the user in the configuration template may be difficult to meet the resource requirements of the application at runtime, resulting in the application failing to be deployed on the cloud platform 200. For example, the user configures 4U8G (i.e., 4 processors and 8G of memory) resources in AZ1 for the application in the configuration template. However, in the actual application scenario, the number of unallocated processors in the remaining computing resources in AZ1 may be less than 4, or the size of the unallocated memory resources may be less than 8G. This makes the remaining available computing resources in AZ1 unable to meet the resource requirements when deploying the application, resulting in the failure of application deployment. In this case, the user usually adopts a trial and error method to modify the values ​​of the corresponding configuration items in the configuration template and try to request the application deployment device 300 to deploy the application again based on the modified configuration template. In this way, the user eliminates deployment anomalies through multiple trial and error, which will result in low efficiency and high difficulty in deploying applications on the cloud platform 200.

[0043] Based on this, the present application provides an application deployment method, in which the application deployment device 300 automatically sets appropriate values ​​for some configuration items to improve the efficiency of deploying applications and reduce the difficulty of deploying applications. In specific implementation, the user can enter corresponding values ​​for some configuration items in the configuration template on the client 100, such as configuring the specifications of the computing resources required to support the operation of the application, and the region or AZ where the application is located can be unconfigured. Then, the application orchestration module 301 can obtain the configuration template provided by the client 100, traverse the configuration template, determine the remaining configuration items that the user has not configured, and provide the remaining configuration items that the user has not configured to the configuration module 302. Then, the configuration module 302 can instruct the cloud environment feedback module 303 to collect one or more available resources in the cloud environment that match the configuration items that the user has not configured, and the resources include at least one of computing resources, storage resources, and network resources, and determine the values ​​of the configuration items based on the one or more available resources, and feed them back to the application orchestration module 301. In this way, the application orchestration module 301 can deploy the application on the cloud, specifically on the cloud platform 200, based on the values ​​defined by the user for some configuration items in the configuration template and the values ​​of the remaining configuration items fed back by the configuration module 302.

[0044] In this way, the application deployment device 300 automatically determines the values ​​of the remaining configuration items that the user has not configured based on the currently available resources in the cloud environment. This allows the deployment of applications based on the values ​​of these configuration items to avoid application deployment failures caused by the unavailability of resources corresponding to the values ​​of these configuration items (such as having been allocated to other applications, etc.). This can effectively improve the success rate of application deployment and eliminate the need for users to eliminate deployment anomalies through multiple trial and error methods, thereby improving the efficiency of user application deployment on the cloud and reducing deployment difficulty. In addition, the automatic determination of the values ​​of the configuration items that the user has not configured by the application deployment device 300 can also effectively reduce the number of parameters that the user needs to configure, thereby further improving the efficiency of user application deployment on the cloud and reducing deployment difficulty.

[0045] It is worth noting that the application deployment system 10 shown in FIG1 is only used as an exemplary illustration. In actual application, the application deployment system 10 may also have other possible structures. For example, in other possible implementations, the number of clients and cloud platforms included in the application deployment system 10 may also be multiple, such as the application deployment device 300 can support users to deploy applications on multiple cloud platforms, etc. In addition, the division of functional modules in the application deployment device 300 in FIG1 is not limited to the example shown in FIG1. ​​In other possible implementations, the configuration module 302 may also be divided into a scoring module and an associative configuration module, wherein the scoring module is used to determine the scores of multiple optional values ​​of the second configuration item, and the associative configuration module is used to determine a unique value from multiple optional values ​​as the value of the second configuration item, etc., and this is not limited.

[0046] Exemplarily, the application deployment apparatus 300 in FIG. 1 may be implemented by software or hardware.

[0047] As an example of a software functional unit, the application deployment device 300 may include code running on a computing instance. The computing instance may include at least one of a host, a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the application deployment device 300 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same AZ or in different AZs, and each AZ includes one data center or multiple data centers with close geographical locations. Generally, a region may include multiple AZs.

[0048] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.

[0049] As an example of a hardware functional unit, the application deployment apparatus 300 may include at least one computing device, such as a server. Alternatively, the application deployment apparatus 300 may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), a data processing unit (DPU), or any combination thereof.

[0050] Next, various non-limiting specific implementations of the application deployment process are described in detail.

[0051] Refer to Figure 2, which is a flow chart of an application deployment method according to an embodiment of the present application. This method can be applied to the application deployment system 10 shown in Figure 1 above, or it can also be applied to other applicable application deployment systems. The following description uses the application to the application deployment system 10 shown in Figure 1 as an example.

[0052] The application deployment method shown in FIG2 may specifically include:

[0053] S201: The client 100 obtains a configuration template provided by the user, which includes multiple configuration items for the application, including a first configuration item and a second configuration item, wherein the value of the first configuration item is configured by the user, and the multiple configuration items in the configuration template are used to configure resources in the cloud environment required to deploy the application.

[0054] When a user needs to deploy an application on the cloud platform 200 , the user may provide relevant configurations for the application, specifically, information such as resources required for the application to be deployed.

[0055] As an implementation example, the application deployment device 300 can provide a configuration template to the client 100, in which multiple configuration items are defined. At this time, the client 100 can present a configuration interface to the user based on the configuration template, in which multiple configuration items are displayed, so that the user can enter the values ​​of some configuration items on the configuration interface according to the requirements of the application to be deployed, such as specifying the number of processors, memory size, database used, etc. required for the application to run. For the remaining configuration items, the user can not set the values ​​of these configuration items, such as the user can not specify the region and AZ where the application is located. For the convenience of description and distinction, the configuration item for which the user sets the value is referred to as the first configuration item, and the configuration item for which the user does not set the value is referred to as the second configuration item. The number of the first configuration item and the second configuration item can be one or more. Then, the client 100 can add the value entered by the user for the first configuration item to the configuration template, and send the configuration template including the value of the first configuration item to the application orchestration module 301.

[0056] In another implementation example, a user can customize a configuration template on client 100. The customized configuration template includes multiple configuration items, and a value is set for a first configuration item among the multiple configuration items, while a value is not set for a second configuration item among the multiple configuration items. Client 100 can then send the user-defined configuration template including the value of the first configuration item to application orchestration module 301.

[0057] In this embodiment, for the second configuration item that is not configured by the user, the application deployment device 300 can automatically set an appropriate value for it. In actual application scenarios, there may be a large number of available resources of certain types in the cloud environment. Accordingly, the second configuration item can have multiple values. For example, the second configuration item can include a configuration item for a computing specification. The value of the second configuration item can be processors 1 to 4 in AZ1 (the memory space size in the computing specification is fixed, such as a fixed size of 8G, which will not be described here), or processors 5 to 8 in AZ2, or processors 3 to 6 in AZ3.

[0058] To this end, in a further possible implementation, the user may also input deployment instruction information to the client 100, which indicates the user's preference for the resources selected for the second configuration item, such as giving priority to selecting lower-cost resources based on cost considerations, or giving priority to selecting higher-performance resources based on performance considerations, or giving priority to selecting higher-performance resources based on functionality considerations, etc. In a specific implementation, the deployment instruction information is used to instruct the application deployment device 300 to select available resources from the cloud environment for the second configuration item based on target factors. The target factors may be, for example, one or more of the functions, performance, and costs of the application to be deployed, or other types of factors, so that the application deployment device 300 can subsequently use the deployment instruction information to select appropriate available resources for the second configuration item to deploy the application. Accordingly, the client 100 may send the deployment instruction information and the above-mentioned configuration template together to the application orchestration module 301.

[0059] S202 : The application orchestration module 301 sends the configuration template provided by the user to the configuration module 302 .

[0060] In specific implementation, the application orchestration module 301 can parse the received configuration template, determine the first configuration item and the value of the first configuration item, and determine the second configuration item that is not configured, such as determining the configuration item with an empty value as the second configuration item. In actual application scenarios, since there may be dependencies between different configuration items, such as configuration item 1 is used to configure the AZ where the application is located, and configuration item 2 is used to configure the number of processors required to support the operation of the application, when configuring processors for the application, it is necessary to configure the corresponding number of processors for the application from the AZ indicated by the value of configuration item 1. Therefore, the application orchestration module 301 can send the first configuration item, the value of the first configuration item, and the second configuration item to the configuration module 302 to request the configuration module 302 to set the corresponding value for the second configuration item.

[0061] Furthermore, when the application orchestration module 301 receives the deployment instruction information sent by the client 100 , the application orchestration module 301 may also send the deployment instruction information to the configuration module 302 , so that the configuration module 302 sets a corresponding value for the second configuration item according to the deployment instruction information.

[0062] S203: The configuration module 302 requests the cloud environment feedback module 303 for at least one available resource in the cloud environment that matches the second configuration item.

[0063] In this embodiment, available resources refer to resources in the cloud environment that can be allocated to applications that need to be deployed. The resources can be one or more of computing resources, storage resources, and network resources.

[0064] For example, computing resources may be resources with computing power, such as a central processing unit (CPU), a data processing unit (DPU), or an infrastructure processing unit (IPU).

[0065] Storage resources can be resources with storage capabilities such as cache, memory, and storage devices.

[0066] Network resources, for example, may be network transmission resources such as uplink bandwidth, downlink bandwidth, and network card type.

[0067] S204: The cloud environment feedback module 303 feeds back at least one available resource matching the second configuration item to the configuration module 302.

[0068] In this embodiment, the application deployment apparatus 300 may automatically set a value for the second configuration item based on currently available resources in the cloud environment to avoid application deployment failure caused by unavailability of resources in the cloud environment indicated by the value set for the second configuration item.

[0069] Exemplarily, the value of the second configuration item may be an identifier of an available resource that matches the second configuration item (e.g., a resource ID). For example, the second configuration item is used to configure one processor required for deploying an application. Assuming the cloud environment includes three processors, namely processor 1, processor 2, and processor 3, and processor 2 and processor 3 are idle, the available resource that matches the second configuration item is processor 2 or processor 3. The value of the second configuration item may be the identifier of processor 2 or the identifier of processor 3.

[0070] In one possible implementation, the configuration module 302 may generate a request including a first configuration item, a value of the first configuration item, and a second configuration item, and send the request to the cloud environment feedback module 303 to request available resources in the cloud environment that match the second configuration item. The cloud environment feedback module 303 may respond to the request and call a query interface based on the information of the received configuration item to query the available resources in the cloud environment, such as querying the remaining amount of available resources, network delay, cost, and other information, and filter out the available resources that match the second configuration item. In actual application, for some resources that cannot be accessed through the query interface, such as the access address of the cloud service, the technician may manually enter the part of the available resources and provide it to the cloud environment feedback module 303.

[0071] Among them, the number of available resources screened by the cloud environment feedback module 303 can be one or more, and the value corresponding to the second configuration item can be one or more. For example, when the available resource matching the second configuration item is processor 2 or processor 3, the value of the second configuration item can be the identifier of processor 2 or the identifier of processor 3. In this embodiment, the cloud environment feedback module 303 can feed back information about various available resources corresponding to the second configuration item to the configuration module 302, so that the configuration module 302 determines the value of the second configuration item based on one of the available resources. For ease of description, the value that may be set for the second configuration item is referred to as a candidate value below.

[0072] In addition, there may be multiple configuration items that the user has not configured, and accordingly, there may be multiple second configuration items. In this case, the available resources that match the second configuration items screened out by the cloud environment feedback module 303 may specifically be at least one available resource that matches each second configuration item, and there may be one or more candidate values ​​corresponding to each second configuration item.

[0073] In actual use, the application deployment apparatus 300 may be configured with one or more plug-ins, so that the cloud environment feedback module 303 can use these plug-ins to collect available resources in the cloud environment. For example, when the application deployment apparatus 300 is configured with multiple plug-ins, different plug-ins can collect different types of available resources in the cloud environment. Thus, when it is necessary to collect a new type of available resource in the cloud environment, a new plug-in can be deployed on the application deployment apparatus 300 to collect the new type of available resource.

[0074] S205: The configuration module 302 determines a value of the second configuration item based on at least one available resource matching the second configuration item, and provides the value of the second configuration item to the application orchestration module 301. The value of the second configuration item is used to indicate a target resource in the at least one available resource.

[0075] The configuration module 302 may select one of the available resources from the at least one available resource as a target resource, and set the value of the second configuration item according to the selected target resource.

[0076] In this embodiment, the following implementation examples of determining the value of the second configuration item are provided.

[0077] In the first implementation example, when multiple available resources match the second configuration item, there may be multiple candidate values ​​corresponding to the multiple available resources. In this case, the configuration module 302 may randomly select one candidate value from the multiple candidate values ​​as the value of the second configuration item; or, based on load balancing or other policies, the configuration module may select one candidate value from the multiple candidate values ​​as the value of the second configuration item. When only one available resource matches the second configuration item, the second configuration item corresponds to one candidate value, and the configuration module 302 may directly determine this candidate value as the value of the second configuration item.

[0078] In a second implementation example, the configuration module 302 may determine the value of the second configuration item by scoring.

[0079] In specific implementation, the configuration module 302 first scores the candidate values ​​corresponding to each available resource. For example, the configuration module 302 can calculate the score of the candidate value corresponding to each available resource in the function dimension, the performance dimension, and the cost dimension, which are score 1, score 2, and score 3, respectively. Then, the configuration module 302 compares the sizes of score 1, score 2, and score 3, and determines the maximum score value (assuming it is score 2). Then, the configuration module 302 can determine the maximum score value as the score of the candidate value (that is, the score of the candidate value is score 2). Alternatively, the configuration module 302 can sort according to the priority of "function>performance>cost" and give priority to determining the score of the candidate value in the function dimension as the score of the candidate value.

[0080] The functional dimension scores of candidate values ​​corresponding to available resources can be manually annotated by technicians in advance for the available resources, so that configuration module 302 can obtain the functional dimension scores of the candidate values ​​by reading the manually annotated results. For example, the functions of elastic load balancing (ELB) can be divided into dedicated and shared types. Although the basic functions of the two are the same, the dedicated type is superior to the shared type in terms of reliability and protocol support. Therefore, technicians can annotate the functional dimension scores of the dedicated type as higher than those of the shared type.

[0081] The performance score of the candidate value can be determined by configuration module 302 based on the performance of the available resources. Typically, the performance of the available resources is positively correlated with the performance score of the candidate value. For example, computing resources can be categorized by performance into "general-purpose," "general-purpose computing plus," and "high-performance computing." General-purpose computing resources have the lowest performance and the lowest score, while high-performance computing resources have the highest performance and the highest score.

[0082] Similarly, the score of the candidate value in the cost dimension can be determined by the configuration module 302 according to the cost of the available resources. The cost of the available resources is negatively correlated with the score of the candidate value in the cost dimension.

[0083] Furthermore, the maximum score determined by the configuration module 302 from the scores of the functional dimension, the performance dimension, and the cost dimension can be used as the basic score of the candidate value. The candidate value can also have a preferred score, which is determined according to the preferred level of the candidate value. The preferred level of each candidate value can be set by a technician or by the configuration module 302. Taking the score of a candidate value of the second configuration item (hereinafter referred to as the target candidate value) as an example, the configuration module 302 can select the score of one dimension of function, performance, and cost as the basic score of the target candidate value in the above manner, and determine the preferred level of the target candidate value, and determine the preferred score based on the preferred level. For example, the preferred level can include three levels: "recommended", "recommended+", and "recommended++", and the corresponding preferred scores are 5 points, 10 points, and 15 points respectively. Then, the configuration module 302 can calculate the sum of the basic score and the preferred score, and use the sum as the score of the target candidate value.

[0084] In actual application, the configuration module 302 may include a scoring management file, which records the basic scores and preferred levels of one or more candidate values. For example, the content recorded in the scoring management file may be as shown in Table 1 below.

[0085] Table 1

[0086] Cloud resources refer to the cloud resources to which the configuration item belongs, such as cloud computing resources like Elastic Cloud Server (ECS) and Cloud Container Engine (CCE). If a configuration item doesn't have an associated cloud resource, such as the access address of a cloud service, a generic identifier such as "global" can be used for that cloud resource.

[0087] The scoring content of the values ​​of multiple configuration items can be recorded in the scoring management file, so that after the configuration module 302 determines the candidate value of the configuration item based on the received available resources, it can determine the basic score and preferred score corresponding to the candidate value by searching the scoring management file, and then calculate the final score corresponding to the candidate value. For example, assuming that the preferred level corresponding to the original target candidate value was originally "recommended", the preferred score corresponding to the candidate value is 5 points. Then, the technician can perform an adjustment operation on the preferred level corresponding to the target candidate value, specifically adjusting the preferred level to "recommended ++", so that the preferred score corresponding to the candidate value is adjusted to 15 accordingly. In this way, the score of the final target candidate value is further increased by 10 points (i.e., 15 points - 5 points) on the original basis.

[0088] In actual application, technicians can also modify the preference level of the (candidate) value of the configuration item recorded in the scoring management file to adjust the preference score corresponding to the value, and then modify the final score corresponding to the value.

[0089] In addition, when configuration module 302 receives deployment indication information sent by application orchestration module 301 (used to indicate the user's preference for the resource selected for the second configuration item), configuration module 302 can also determine the score of the candidate value corresponding to each available resource based on the deployment indication information.

[0090] Specifically, the configuration module 302 can determine, based on the deployment instruction information, to select available resources from the cloud environment for the second configuration item based on the target factor. The target factor can be one or more factors of the function, performance or cost of the application to be deployed, so that the configuration module 302 can select the score of the dimension that matches the target factor from the score of the candidate value in the function dimension, the score of the performance dimension, and the score of the cost dimension according to the target factor. For example, when the target factor is specifically a factor in the function dimension, the configuration module 302 can use the score of the candidate value in the function dimension as the score of the candidate value. Alternatively, when the target factor includes a factor in the performance dimension and a factor in the cost dimension, the configuration module 302 can compare the score of the candidate value in the performance dimension and the score in the cost dimension, and use the score with the larger score as the score of the candidate value.

[0091] After determining the scores of each candidate value for the second configuration item, the configuration module 302 may select the candidate value with the highest score from the multiple candidate values ​​and determine the candidate value as the value of the second configuration item. When multiple candidate values ​​have the same score, the configuration module 302 may randomly select one candidate value from the multiple candidate values ​​as the value of the second configuration item. Alternatively, the configuration module 302 may select the candidate value with the highest score in the other dimension from the multiple candidate values ​​based on the scores of other dimensions as the value of the second configuration item. For example, assuming that the configuration module 302 determines the score of each candidate value in the functional dimension as the score of the candidate value based on the deployment instruction information, then when multiple candidate values ​​have the same score, the configuration module 302 may sort the scores of the multiple candidate values ​​in the functional dimension according to the priority order of "function > performance > cost", further compare the scores of the multiple candidate values ​​in the functional dimension, determine the candidate value with the highest score in the functional dimension from the multiple candidate values, and determine the candidate value as the value of the second configuration item. If there are still multiple candidate values ​​with the same score in the function dimension, the configuration module 302 may continue to compare the scores of the multiple candidate values ​​in the cost dimension, and determine the candidate value with the largest score in the cost dimension among the multiple candidate values ​​as the value of the second configuration item.

[0092] Alternatively, there may be multiple second configuration items, and dependencies may exist between different second configuration items. In this case, after obtaining the scores for each candidate value, the configuration module 302 may also determine multiple configuration combinations, such as those based on the dependencies between different second configuration items. Each configuration combination includes the same multiple second configuration items, and each second configuration item in each configuration combination corresponds to a candidate value. Furthermore, the candidate values ​​corresponding to the multiple second configuration items in different configuration combinations may differ. The configuration module 302 may then calculate a score for each configuration combination. For example, the configuration module 302 may calculate the sum of the scores for the candidate values ​​of all second configuration items in the configuration combination and use the resulting sum as the score for the configuration combination. Alternatively, the configuration module 302 may perform a weighted sum of the scores for the candidate value corresponding to all second configuration items in the configuration combination, with different weights corresponding to different second configuration items, and use the resulting sum as the score for the configuration combination. Finally, the configuration module 302 may determine the configuration combination with the highest score based on the scores of each configuration combination, thereby determining the candidate values ​​for each second configuration item in the configuration combination as the value for the second configuration item.

[0093] In this way, it is possible to avoid ignoring the dependencies between configuration items, which may lead to conflicts in the values ​​set for multiple second configuration items, affecting the final application deployment effect. In addition, when the score of the configuration combination is calculated by weighted summation, by setting different weights for different configuration items, the management granularity of the configuration items can be improved, and better configuration recommendations can be provided to users, thereby improving the overall configuration effect for the application to be deployed. For example, when the user indicates that the available resources with lower costs should be selected based on cost considerations, by setting the weight value of the configuration item for AZ lower and the weight value of the computing resource specification higher, the configuration for the application can finally select computing resources with better specifications, rather than selecting computing resources with poorer specifications because the weight value of the configuration item for AZ is set too high.

[0094] In actual application, the configuration module 302 can maintain a configuration item weight file, such as a configuration item weight table, which is used to record the weights corresponding to each configuration item. Exemplarily, the configuration item weight file can record the weight values ​​corresponding to each configuration item based on the format shown in Table 2 below.

[0095] Table 2

[0096] In this way, when calculating the score of each configuration combination, the configuration module 302 can perform weighted summation on the scores of multiple second configuration items in each configuration combination according to the weights of each configuration item recorded in the configuration item weight file to calculate the score of each configuration combination.

[0097] It should be noted that the above-mentioned specific implementation methods for determining the values ​​of one or more second configuration items are merely exemplary. In other possible implementations, the configuration module 302 may also use other methods to determine the values ​​of the second configuration items. For example, the configuration module 302 may determine the values ​​of the second configuration items by combining or varying the above-mentioned implementation methods, and this is not a limitation.

[0098] After determining the value of the second configuration item, the configuration module 302 may send it to the application orchestration module 301 .

[0099] S206: The application orchestration module 301 deploys the application on the cloud according to the first configuration item, the value of the first configuration item, the second configuration item, and the value of the second configuration item.

[0100] In this embodiment, the following specific implementation examples of deploying applications on the cloud are provided.

[0101] In a first implementation, the application orchestration module 301 deploys the application on the cloud based on the value configured by the user for the first configuration item and the value automatically configured by the configuration module 302 for the second configuration item. Specifically, the available resources in the cloud environment indicated by the value of the first configuration item and the value of the second configuration item are allocated to the application so as to support the successful operation of the application based on the available resources, thereby realizing the deployment of the application on the cloud.

[0102] In this way, the user only needs to provide some configuration parameters, and the remaining configuration parameters can be automatically filled in by the application deployment device 300, thereby reducing the number of parameters that the user needs to configure during the application deployment process, thereby improving the efficiency of the user's application deployment on the cloud and reducing the difficulty of deployment. In addition, the resources in the cloud environment indicated by the value of the second configuration item are available, thereby avoiding the problem of application deployment failure caused by resource unavailability, further improving the efficiency of application deployment and reducing the difficulty of application deployment.

[0103] In a second implementation, the application orchestration module 301 can output the second configuration item, specifically, the output of the second configuration item to the client 100, so that the client 100 presents the value of the second configuration item to the user. For example, the client 100 can present an interactive interface 1 as shown in Figure 3 to the user, and the interactive interface 1 includes a custom configuration and a recommended configuration, wherein the custom configuration includes multiple first configuration items and the values ​​of the multiple first configuration items, and the recommended configuration includes multiple second configuration items and the values ​​of the multiple second configuration items. In this way, the user can manually confirm the value of the second configuration item in the recommended configuration. When the user confirms on the client 100 that the value of the second configuration item is appropriate, the application orchestration module 301 deploys the application on the cloud based on the value configured for the first configuration item and the value automatically configured for the second configuration item. When the user determines that the value of the second configuration item is inappropriate, the user can modify the value of the second configuration item on the client 100 (in actual application, the user can modify the values ​​of some of the second configuration items among the multiple second configuration items), so that the application orchestration module 301 can respond to the user's modification operation on the value of the part of the second configuration items, determine the corrected value corresponding to the part of the second configuration items, and deploy the application on the cloud, that is, deploy the application on the cloud platform 200 according to the value configured for the first configuration item and the corrected value configured for the second configuration item.

[0104] In this way, by the user confirming (and modifying) the value of the second configuration item, not only can the operations required by the user to deploy the application be simplified, the configuration efficiency can be improved and the configuration difficulty can be reduced, but the final configuration for the application can also meet the user's expectations, thereby improving the user's experience in deploying the application.

[0105] In a third implementation, when a user provides values ​​for some configuration items (i.e., the first configuration item) based on a configuration template, the configuration module 302 can obtain the historical configuration record corresponding to the configuration template, such as obtaining the historical configuration record from the database shown in FIG1 . The historical configuration record includes the value configured for the second configuration item when the application was deployed within a historical time period. For example, the configuration module 302 can obtain configuration information for one or more applications using the configuration template by multiple users in the past year, and the configuration information includes the value of the second configuration item (and may also include the value of the first configuration item). Thus, the configuration module 302 provides the historical configuration record corresponding to the configuration template to the application orchestration module 301.

[0106] Application orchestration module 301, through client 100, can present to the user not only the value automatically configured by configuration module 302 for the second configuration item, but also the historical configuration records corresponding to the configuration template. As shown in FIG4 , the interactive interface 2 presented by client 100 can include multiple historical configuration records, as well as the value currently configured by application deployment apparatus 300 for the second configuration item. Furthermore, application orchestration module 301 can also present on interactive interface 2 the success rate of deploying applications using each historical configuration record.

[0107] In this way, the user can refer to the value configured for the second configuration item by other users in the historical time period (and the success rate of deploying the application corresponding to the value) based on the historical configuration record, and use this to verify whether the value automatically configured for the second configuration item by the current application deployment device 300 is appropriate. When the user confirms on the client 100 that the value of the second configuration item is appropriate, the application orchestration module 301 deploys the application on the cloud based on the value configured for the first configuration item and the value automatically configured for the second configuration item. When the user determines that the value of the second configuration item is inappropriate, the user can modify the value of the second configuration item on the client 100, such as referring to the configuration of the second configuration item by other users in the historical time period, modifying the value of the second configuration item on the interactive interface 2, etc., so that the application orchestration module 301 can deploy the application on the cloud based on the value configured for the first configuration item and the modified value configured for the second configuration item, that is, deploy the application on the cloud platform 200.

[0108] In this way, by presenting the historical configuration records for the second configuration item to the user, a reference is provided for the user to configure the application, so that the user can make decisions based on the configuration of the second configuration item by other users and set a suitable value for the second configuration item, thereby improving the user's experience in deploying the application.

[0109] It is worth noting that the above implementation method of deploying applications on the cloud based on the values ​​of multiple configuration items is only used as some exemplary explanations. In actual application, the application orchestration module 301 can also use other methods to deploy applications, and this is not limited to this.

[0110] Furthermore, after completing application deployment, application orchestration module 301 can also provide feedback to the user via client 100 on the application deployment result, such as feedback that the application deployment was successful or feedback that the application deployment failed, so that the user can be informed of the application deployment status. Furthermore, application orchestration module 301 (or configuration module 302) can also generate a new historical configuration record based on the application deployment result generated by the value of the second configuration item, and write the new historical configuration record into a database, such as the database shown in FIG1 , to provide a configuration reference for the user when deploying other applications.

[0111] In the embodiment shown in FIG. 2 , the application deployment apparatus 300 involved in the application deployment process may be software configured on a computing device or a computing device cluster. Running the software on the computing device or computing device cluster enables the computing device or computing device cluster to implement the functions of the application deployment apparatus 300. The following describes the application deployment apparatus 300 involved in the application deployment process in detail, based on hardware device implementation.

[0112] Figure 5 shows a structural diagram of a computing device, on which the above-mentioned application deployment device 300 can be deployed. The computing device can be a computing device in a cloud environment (such as a server), or a computing device in an edge environment, etc., which can be specifically used to implement the functions of the application deployment device 300 in the embodiment shown in Figure 2 above.

[0113] As shown in Figure 5, the computing device 500 includes a processor 510, a memory 520, a communication interface 530 and a bus 540. The processor 510, the memory 520 and the communication interface 530 communicate with each other through the bus 540. The bus 540 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in Figure 5, but it does not mean that there is only one bus or one type of bus. The communication interface 530 is used to communicate with the outside, such as receiving configuration templates and deployment instructions provided by the user.

[0114] The processor 510 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a graphics processing unit (GPU), or one or more integrated circuits. The processor 510 may also be an integrated circuit chip with signal processing capabilities. During implementation, the functions of the application deployment device 300 may be implemented by hardware integrated logic circuits or software instructions in the processor 510. The processor 510 may also be a general-purpose processor, a digital signal processor (DSP), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The methods disclosed in the embodiments of this application may be directly implemented as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, or the like. The storage medium is located in the memory 520 , and the processor 510 reads the information in the memory 520 and completes part or all of the functions of the application deployment device 300 in combination with its hardware.

[0115] The memory 520 may include a volatile memory, such as a random access memory (RAM), or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a HDD, or an SSD.

[0116] The memory 520 stores executable code, and the processor 510 executes the executable code to execute the method executed by the aforementioned application deployment device 300.

[0117] Specifically, in the case of implementing the embodiment shown in Figure 2, and in the case where the application deployment device 300 described in the embodiment shown in Figure 2 is implemented by software, the software or program code required to execute the functions of the application deployment device 300 in Figure 2 is stored in the memory 520, and the interaction between the application deployment device 300 and other devices is realized through the communication interface 530. The processor is used to execute the instructions in the memory 520 to implement the method executed by the application deployment device 300.

[0118] FIG6 shows a schematic diagram of the structure of a computing device cluster. The computing device cluster 60 shown in FIG6 includes multiple computing devices, and the application deployment apparatus 300 can be distributedly deployed on multiple computing devices in the computing device cluster 60. As shown in FIG6 , the computing device cluster 60 includes multiple computing devices 600, each of which includes a memory 620, a processor 610, a communication interface 630, and a bus 640. The memory 620, the processor 610, and the communication interface 630 are communicatively connected to each other via the bus 640.

[0119] Processor 610 can be a CPU, GPU, ASIC, or one or more integrated circuits. Processor 610 can also be an integrated circuit chip with signal processing capabilities. During implementation, some functions of application deployment apparatus 300 can be performed by hardware integrated logic circuits or software instructions within processor 610. Processor 610 can also be a DSP, FPGA, general-purpose processor, other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components, and can implement or execute some of the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules within the decoding processor. The software modules can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. This storage medium is located in memory 620. In each computing device 600, processor 610 reads information from memory 620 and, in conjunction with its hardware, can perform some of the functions of application deployment apparatus 300.

[0120] The memory 620 may include ROM, RAM, static storage devices, dynamic storage devices, a hard disk (e.g., an SSD, an HDD), etc. The memory 620 may store program code, for example, part or all of the program code for implementing the application orchestration module 301, part or all of the program code for implementing the configuration module 302, part or all of the program code for implementing the cloud environment feedback module 303, etc. For each computing device 600, when the program code stored in the memory 620 is executed by the processor 610, the processor 610 executes part of the method executed by the application deployment apparatus 300 based on the communication interface 630. For example, some computing devices 600 may be used to execute the method executed by the application orchestration module 301, while other computing devices 600 may be used to execute the methods executed by the configuration module 302 and the cloud environment feedback module 303. The memory 620 may also store data, for example, intermediate data or result data generated by the processor 610 during execution, such as multiple candidate values ​​for the second configuration item, the score corresponding to each candidate value, the value of the second configuration item, etc.

[0121] The communication interface 603 in each computing device 600 is used for external communication, such as interacting with other computing devices 600 .

[0122] The bus 640 may be a peripheral component interconnect standard bus or an extended industry standard architecture bus, etc. For ease of illustration, the bus 640 in each computing device 600 in FIG6 is represented by only one thick line, but this does not mean that there is only one bus or one type of bus.

[0123] The plurality of computing devices 600 establish communication paths through a communication network to implement the functions of the application deployment apparatus 300. Any computing device may be a computing device (eg, a server) in a cloud environment or a computing device in an edge environment.

[0124] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on one or more computing devices, it enables the one or more computing devices to execute the method executed by the application deployment device 300 of the above embodiment.

[0125] In addition, embodiments of the present application further provide a computer program product. When executed by one or more computing devices, the one or more computing devices perform any of the aforementioned application deployment methods. The computer program product may be a software installation package. When any of the aforementioned application deployment methods is required, the computer program product may be downloaded and executed on a computer.

[0126] It should also be noted that the embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the embodiment drawings provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.

[0127] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions performed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special circuits, etc. However, for the present application, software program implementation is a better implementation method in most cases. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., and includes a number of instructions to enable a computer device (which can be a personal computer, training equipment, or network equipment, etc.) to execute the methods described in each embodiment of the present application.

[0128] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0129] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website, a computer, a training device or a data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. 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 drive (SSD)).

Claims

1. An application deployment method, characterized in that: The method comprises: Acquire a configuration template provided by a user, the configuration template including multiple configuration items for the application, the multiple configuration items including a first configuration item and a second configuration item, the value of the first configuration item is configured by the user, and the multiple configuration items are used to configure resources in the cloud environment required for deploying the application; Acquire at least one available resource in the cloud environment that matches the second configuration item, where the available resource includes at least one of a computing resource, a storage resource, and a network resource; Determine, according to the at least one available resource, a value of the second configuration item, where the value of the second configuration item is used to indicate a target resource in the at least one available resource; The application is deployed on the cloud according to the first configuration item, the value of the first configuration item, the second configuration item, and the value of the second configuration item.

2. The method according to claim 1, characterized in that The method further comprises: Acquire deployment instruction information, where the deployment instruction information is used to instruct selection of available resources from the cloud environment for the second configuration item based on target factors, where the target factors include one or more factors of the function, performance, and cost of the application; Then, determining the value of the second configuration item according to the at least one available resource includes: Determine a value of the second configuration item according to the deployment instruction information and the at least one available resource.

3. The method according to claim 1 or 2, characterized in that: The determining, according to the at least one available resource, a value of the second configuration item includes: Obtain scores corresponding to a plurality of candidate values ​​of the second configuration item, each of the plurality of candidate values ​​being used to indicate an available resource in the cloud environment; The value of the second configuration item is determined according to the scores respectively corresponding to the multiple candidate values.

4. The method according to claim 3, characterized in that There are multiple second configuration items, and each of the second configuration items corresponds to at least one candidate value; The determining the value of the second configuration item according to the scores respectively corresponding to the multiple candidate values ​​includes: Determine a plurality of configuration combinations, each of the plurality of configuration combinations comprising the plurality of second configuration items and a candidate value respectively corresponding to the plurality of second configuration items, and the candidate values ​​respectively corresponding to the plurality of second configuration items in different configuration combinations are different; Determine a score for each of the multiple configuration combinations, where the score for each of the configuration combinations is calculated based on the scores of the candidate values ​​respectively corresponding to the multiple second configuration items; According to the score of each configuration combination, a target configuration combination is determined from the multiple configuration combinations, and the candidate values ​​in the target configuration combination are the values ​​of the multiple second configuration items.

5. The method according to claim 3, characterized in that: The multiple candidate values ​​include a target candidate value, the score of the target candidate value is the sum of a basic score and a preferred score, and the preferred score is determined according to the preferred level of the target candidate value; The method further comprises: In response to an adjustment operation on the preference level of the target candidate value, the score of the target candidate value is adjusted.

6. The method according to any one of claims 1 to 5, characterized in that: The deploying the application on the cloud according to the first configuration item, the value of the first configuration item, the second configuration item, and the value of the second configuration item includes: outputting a value of the second configuration item for presenting to a user; In response to a user modification operation on the value of the second configuration item, determining a revised value corresponding to the second configuration item; The application is deployed on the cloud according to the first configuration item, the value of the first configuration item, the second configuration item, and the correction value corresponding to the second configuration item.

7. The method according to any one of claims 1 to 5, characterized in that: The deploying the application on the cloud according to the first configuration item, the value of the first configuration item, the second configuration item, and the value of the second configuration item includes: Outputting a value of the second configuration item and a historical configuration record corresponding to the configuration template for presentation to a user, wherein the historical configuration record includes a value configured for the second configuration item when the application is deployed within a historical time period; In response to a user's selection operation on a value of the second configuration item, the application is deployed on the cloud according to the first configuration item, the value of the first configuration item, the second configuration item, and the value of the second configuration item.

8. An application deployment device, characterized in that: The device comprises: An application orchestration module, used to obtain a configuration template provided by a user, wherein the configuration template includes multiple configuration items for the application, wherein the multiple configuration items include a first configuration item and a second configuration item, wherein the value of the first configuration item is configured by the user, and the multiple configuration items are used to configure resources in the cloud environment required for deploying the application; a cloud environment feedback module, configured to obtain at least one available resource in the cloud environment that matches the second configuration item, wherein the available resource includes at least one of a computing resource, a storage resource, and a network resource; A configuration module, configured to determine a value of the second configuration item according to the at least one available resource, wherein the value of the second configuration item is used to indicate a target resource in the at least one available resource; The application orchestration module is further used to deploy the application on the cloud according to the first configuration item, the value of the first configuration item, the second configuration item, and the value of the second configuration item.

9. The device according to claim 8, characterized in that The application orchestration module is further used to: obtain deployment instruction information, where the deployment instruction information is used to instruct to select available resources from the cloud environment for the second configuration item based on a target factor, where the target factor includes one or more factors of the function, performance, and cost of the application; The configuration module is specifically used to determine the value of the second configuration item according to the deployment instruction information and the at least one available resource.

10. The device according to claim 8 or 9, characterized in that The configuration module is specifically used for: Obtain scores corresponding to a plurality of candidate values ​​of the second configuration item, each of the plurality of candidate values ​​being used to indicate an available resource in the cloud environment; The value of the second configuration item is determined according to the scores respectively corresponding to the multiple candidate values.

11. The device according to claim 10, characterized in that There are multiple second configuration items, each of which corresponds to at least one candidate value, and the configuration module is specifically used to: Determine a plurality of configuration combinations, each of the plurality of configuration combinations comprising the plurality of second configuration items and a candidate value respectively corresponding to the plurality of second configuration items, and the candidate values ​​respectively corresponding to the plurality of second configuration items in different configuration combinations are different; Determine a score for each of the multiple configuration combinations, where the score for each of the configuration combinations is calculated based on the scores of the candidate values ​​respectively corresponding to the multiple second configuration items; According to the score of each configuration combination, a target configuration combination is determined from the multiple configuration combinations, and the candidate values ​​in the target configuration combination are the values ​​of the multiple second configuration items.

12. The device according to claim 10, characterized in that The multiple candidate values ​​include a target candidate value, the score of the target candidate value is the sum of a basic score and a preferred score, and the preferred score is determined according to the preferred level of the target candidate value; The configuration module is further configured to adjust the score of the target candidate value in response to an adjustment operation on the preference level of the target candidate value.

13. The device according to any one of claims 8 to 12, characterized in that The application orchestration module is specifically used for: outputting a value of the second configuration item for presenting to a user; In response to a user modification operation on the value of the second configuration item, determining a revised value corresponding to the second configuration item; The application is deployed on the cloud according to the first configuration item, the value of the first configuration item, the second configuration item, and the correction value corresponding to the second configuration item.

14. The device according to any one of claims 8 to 12, characterized in that The application orchestration module is specifically used for: Outputting a value of the second configuration item and a historical configuration record corresponding to the configuration template for presentation to a user, wherein the historical configuration record includes a value configured for the second configuration item when the application is deployed within a historical time period; In response to a user's selection operation on a value of the second configuration item, the application is deployed on the cloud according to the first configuration item, the value of the first configuration item, the second configuration item, and the value of the second configuration item.

15. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the computing device cluster executes the method according to any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on at least one computing device, enable the at least one computing device to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Application deployment method and device and related equipment

    CN119002936A

  • Method and device for configuring software in cloud calculation environment

    CN104317642A

  • Resource adjustment method and related equipment

    CN111580977A

  • Implementation method for cloud platform resource arrangement

    CN111880811A

  • Software interaction platform and method for automatically deploying resources in cloud environment

    CN111897541A