Application deployment method and device and related equipment
By automatically determining the unconfigured resource configuration item values in cloud computing, the failure of cloud application deployment due to resource unavailability is solved, the deployment efficiency and success rate are improved, and the user's operation process is simplified.
Patent Information
- Application Number
- CN202310847475.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-19
- Filing Date
- 2023-07-11
- Publication Date
- 2024-11-22
AI Technical Summary
In cloud computing, application orchestration services often fail when deploying applications due to unavailable value of resource configuration items, resulting in users having to try and error multiple times to eliminate exceptions, reducing deployment efficiency and increasing difficulty.
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 realizing automatic deployment of applications and improving success rate and efficiency.
It effectively improves the success rate and efficiency of cloud application deployment, reduces the user's configuration difficulty and the number of abnormalities exclusions during the deployment process, and simplifies the user's operation process.
Smart Images

Figure CN119002936A_ABST
Abstract
Description
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on May 19, 2023, with application number 202310573141.1 and application name “An application deployment method, device and related equipment”, all contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of cloud computing technology, and in particular to an application deployment method, apparatus, and related equipment. Background Art
[0003] Application orchestration service (AOS) is a service that automatically deploys and orchestrates applications on the cloud platform. 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, in the process of 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 into the template, so that the application orchestration service can deploy the application on the cloud according to 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, which requires 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. Summary of the invention
[0006] In view of this, the embodiment of the present application provides 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.
[0007] 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, which 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 resources in a 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, the available resource includes 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, and the determined value of the second configuration item is used to indicate a 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.
[0008] 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 makes it possible to avoid the failure of application deployment due to the unavailability of resources corresponding to the values of the configuration items when deploying applications based on the values of the configuration items. This can effectively improve the success rate of deploying applications, and eliminate the need for users to eliminate anomalies in the application deployment process through multiple trial and error methods, thereby improving the efficiency of users deploying applications on the cloud and reducing the difficulty of deployment. In addition, the application deployment device automatically determines the values of the configuration items that the user has not configured, which can also effectively reduce the number of parameters that the user needs to configure, thereby further improving the efficiency of users deploying applications on the cloud and reducing the difficulty of deployment.
[0009] In a possible implementation, the application deployment device may also obtain deployment indication information, which is used to indicate the selection of available resources from the cloud environment for the second configuration item based on the target factor (that is, to indicate the user's preference for the resources selected for the second configuration item), wherein the target factor includes 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 indication 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 indication information (that is, 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.
[0010] In a possible implementation, when determining the value of the second configuration item, the application deployment device may specifically first obtain scores corresponding to multiple candidate values of the second configuration item, each of which is used to indicate an available resource in the cloud environment, and then determine the value of the second configuration item according to the scores corresponding to the multiple candidate values. In this way, the application deployment device can automatically determine a suitable value for the second configuration item based on the scoring mechanism, that is, automatically select a suitable resource from the cloud environment to deploy the application.
[0011] In a possible implementation, 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, and 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, and the score of each configuration combination is calculated based on the score of the candidate values corresponding to the multiple second configuration items, and determines the 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. In this way, by determining the values of the multiple second configuration items based on the configuration combination, it is possible to avoid ignoring the dependency 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.
[0012] In a 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 achieving management of resources in the cloud environment.
[0013] In a possible implementation, when the application deployment device deploys the application on the cloud, it may specifically output the value of the second configuration item for presentation to the user first, and determine the correction value corresponding to the second configuration item in response to the user's modification operation on the value of the second configuration item, 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 correction value corresponding to the second configuration item modified by the user. In this way, by the user modifying (or confirming) the value of the second configuration item, not only can the operations required to be performed by the user when deploying the application be simplified, the configuration efficiency can be improved, and the configuration difficulty can be reduced, but also the final configuration for the application can further meet the user's expectations, thereby improving the user's experience in deploying the application.
[0014] In a possible implementation, when the application deployment device deploys an application on the cloud, it may specifically first output the value of the second configuration item and the historical configuration record corresponding to the configuration template for presentation to the user, and the historical configuration record includes the value configured for the second configuration item when the application is deployed within the historical time period, so that 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 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. 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, so that the user can make decisions based on other users' configuration of the second configuration item and set a suitable value for the second configuration item, thereby improving the user's experience in deploying the application.
[0015] 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 resources in a 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.
[0016] In a possible implementation, the application orchestration module is further used to: obtain deployment indication information, the deployment indication information is used to indicate the selection of available resources from the cloud environment for the second configuration item based on target factors, the target factors including one or more factors of the application's function, performance, and cost; the configuration module is specifically used to: determine the value of the second configuration item based on the deployment indication information and at least one available resource.
[0017] In a 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 according to the scores corresponding to the multiple candidate values.
[0018] 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 scores of each configuration combination, and the candidate values in the target configuration combination are the values of the multiple second configuration items.
[0019] 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.
[0020] In one possible implementation, the application orchestration module is specifically used to: output the value of the second configuration item for presentation to the user; determine the revised value corresponding to the second configuration item in response to the user's modification operation on the value of the second configuration item; and 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 revised value corresponding to the second configuration item.
[0021] In one possible implementation, the application orchestration module is specifically used to: output a value of a second configuration item for presentation to a user and a historical configuration record corresponding to the configuration template, the historical configuration record including a value configured for the second configuration item when the application was deployed within a historical time period; and in response to a user's selection operation on the value of the second configuration item, 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.
[0022] 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.
[0023] 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.
[0024] In a fourth aspect, the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on at least one computing device, the at least one computing device executes the method described in the first aspect or any one of the implementations of the first aspect.
[0025] 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.
[0026] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. 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.
[0028] Figure 1 A schematic diagram of the structure of an exemplary application deployment system provided in this application;
[0029] Figure 2 A flowchart of an application deployment method provided for this application;
[0030] Figure 3 A schematic diagram of an exemplary interactive interface 1 provided in this application;
[0031] Figure 4 A schematic diagram of another exemplary interactive interface 2 provided in this application;
[0032] Figure 5 A schematic diagram of the structure of a computing device provided for this application;
[0033] Figure 6 A schematic diagram of the structure of a computing device cluster provided in this application. DETAILED DESCRIPTION
[0034] The scheme in the embodiments provided in this application will be described below in conjunction with the drawings in this application.
[0035] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances. This is just a way of distinguishing objects with the same attributes when describing the embodiments of this application.
[0036] See also Figure 1 , shows a schematic diagram of the structure of an exemplary application deployment system provided by the present application. Figure 1 As shown, 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 through a network.
[0037] The client 100 may be an application program running on a user-side device, or may be a network browser provided externally by the application deployment system 10 . Figure 1Only one client included in the application deployment system 10 is illustrated. In actual application, the application deployment system 10 may include any number of clients, and there is no limitation on this.
[0038] The cloud platform 200 is a platform that provides computing, network and storage capabilities based on hardware and software resources. One or more applications can be deployed on the cloud platform 200, and the application can provide corresponding cloud services when running, such as Elastic Cloud Server (ECS), cloud storage services, etc.
[0039] The application deployment device 300 includes an application arrangement module 301, a configuration module 302 and a cloud environment feedback module 303, which is used to facilitate users to deploy applications on the cloud platform 200. In actual application, the application deployment device 300 can be deployed in the cloud to provide users with cloud services for deploying applications.
[0040] Typically, the application deployment device 300 may provide a configuration template to the user through the client 100. The configuration template may be a text description file in the YAML format or the 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 configuring the region (region) and availability zone (AZ) where the application is located, the specifications of the processor supporting the running of the application, the memory specifications, etc. The user enters the value of each configuration item in the configuration template on the client 100, so that the application deployment device 300 can deploy the corresponding application on the cloud platform 200 according to the value of each configuration item in the configuration template.
[0041] However, the usage of resources in the cloud environment is in a state of dynamic change, which makes it difficult for the number / specification of resources indicated by the values of some configuration items entered by the user in the configuration template to meet the resource requirements of the application at runtime, so that the application fails to be deployed on the cloud platform 200. For example, the user configures 4U8G (i.e., 4 processors and 8G memory) specifications in AZ1 for the application in the configuration template, but 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, which 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. At this time, the user usually adopts a trial and error method to modify the value of the corresponding configuration item in the configuration template, and tries 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 methods, which will result in low efficiency and high difficulty in deploying applications on the cloud platform 200.
[0042] 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 resource includes at least one of computing resources, storage resources and network resources, and determine the value of the part of the configuration items based on the one or more available resources, and feed it back to the application orchestration module 301. In this way, application orchestration module 301 can deploy applications on the cloud, specifically on 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 configuration module 302.
[0043] 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 makes it possible to avoid the failure of application deployment due to the unavailability of resources corresponding to the values of the configuration items (such as being allocated to other applications, etc.) when deploying applications based on the values of the configuration items. This can effectively improve the success rate of deploying applications, and users do not need to eliminate deployment anomalies through multiple trial and error, thereby improving the efficiency of users deploying applications on the cloud and reducing the difficulty of deployment. In addition, the application deployment device 300 automatically determines the values of the configuration items that the user has not configured, which can also effectively reduce the number of parameters that the user needs to configure, thereby further improving the efficiency of users deploying applications on the cloud and reducing the difficulty of deployment.
[0044] It is worth noting that the above Figure 1 The application deployment system 10 shown is only used as an example. 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 may support users to deploy applications on multiple cloud platforms. In addition, Figure 1 The functional module division in the application deployment device 300 is not limited to Figure 1In the example shown, 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 to this.
[0045] For example, the above Figure 1 The application deployment device 300 may be implemented by software or by hardware.
[0046] 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 a data center or multiple data centers with close geographical locations. Generally, a region may include multiple AZs.
[0047] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0048] As an example of a hardware functional unit, the application deployment device 300 may include at least one computing device, such as a server, etc. Alternatively, the application deployment device 300 may be implemented using a device including 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.
[0049] Next, various non-limiting specific implementations of the application deployment process are described in detail.
[0050] See also Figure 2 , is a flow chart of an application deployment method in an embodiment of the present application. The method can be applied to the above Figure 1 The application deployment system 10 shown in FIG. 10 may also be applied to other applicable application deployment systems. Figure 1 The application deployment system 10 shown is taken as an example for explanation.
[0051] Figure 2 The application deployment method shown may specifically include:
[0052] S201: The client 100 obtains a configuration template provided by a user, where the configuration template includes multiple configuration items for the application, where the multiple configuration items include a first configuration item and a second configuration item, where 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.
[0053] When a user needs to deploy an application on the cloud platform 200, the user may provide relevant configuration for the application, specifically, configuration of resources and other information required for the application during deployment.
[0054] 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. Among them, 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.
[0055] In another implementation example, a user may customize a configuration template on the client 100, the customized configuration template includes multiple configuration items, and sets a value for a first configuration item among the multiple configuration items, while a second configuration item among the multiple configuration items is not set with a value. Then, the client 100 may send the user-defined configuration template including the value of the first configuration item to the application orchestration module 301.
[0056] In this embodiment, for the second configuration item that is not configured by the user, the application deployment device 300 can automatically set a suitable value for it. In actual application scenarios, there may be more available resources of some 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 of a computing specification. Then, the value of the second configuration item can be processor 1 to processor 4 in AZ1 (the memory space size in the computing specification is fixed, such as fixed to 8G size, etc., which will not be described here), or processor 5 to processor 8 in AZ2, or processor 3 to processor 6 in AZ3.
[0057] To this end, in a further possible implementation, the user may also input deployment instruction information to the client 100, and the deployment instruction information represents the user's preference for the resources selected for the second configuration item, such as giving priority to selecting resources with lower costs based on the cost perspective, or giving priority to selecting resources with higher performance based on the performance perspective, or giving priority to selecting resources with higher performance based on the function perspective, etc. In 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, and the target factors may be, for example, one or more factors of the function, performance, and cost 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 to the application orchestration module 301.
[0058] S202: The application orchestration module 301 sends the configuration template provided by the user to the configuration module 302.
[0059] 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 unconfigured second configuration item, 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.
[0060] Further, when application orchestration module 301 receives deployment instruction information sent by client 100, application orchestration module 301 may also send the deployment instruction information to configuration module 302, so that configuration module 302 sets a corresponding value for the second configuration item according to the deployment instruction information.
[0061] 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.
[0062] 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 may be one or more of computing resources, storage resources, and network resources.
[0063] Exemplarily, 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).
[0064] Storage resources can be resources with storage capabilities such as cache, memory, and storage devices.
[0065] Network resources may include, for example, upstream bandwidth, downstream bandwidth, network card type, and other network transmission resources.
[0066] S204: The cloud environment feedback module 303 feeds back at least one available resource matching the second configuration item to the configuration module 302.
[0067] In this embodiment, the application deployment apparatus 300 can automatically set a value for the second configuration item according to currently available resources in the cloud environment to avoid application deployment failure due to unavailability of resources in the cloud environment indicated by the value set for the second configuration item.
[0068] Exemplarily, the value of the second configuration item may specifically be an identifier of an available resource that matches the second configuration item (such as a resource ID, etc.). For example, the second configuration item is used to configure a processor required for deploying an application. Assuming that the cloud environment includes three processors, namely processor 1, processor 2, and processor 3, and processor 2 and processor 3 are in an idle state, then the available resource that matches the second configuration item is processor 2 or processor 3, and the value of the second configuration item may be the identifier of processor 2, or may be the identifier of processor 3.
[0069] In a 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.
[0070] 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.
[0071] In addition, the number of configuration items that the user has not configured may be multiple, and accordingly, the number of second configuration items may be multiple. At this time, 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 the candidate value corresponding to each second configuration item may be one or more.
[0072] In actual application, the application deployment device 300 may be configured with one or more plug-ins, so that the cloud environment feedback module 303 can use the plug-in to collect available resources in the cloud environment. Exemplarily, when the application deployment device 300 is configured with multiple plug-ins, different plug-ins can collect different types of available resources in the cloud environment. In this way, when it is necessary to collect new types of available resources in the cloud environment, the new type of available resources can be collected by deploying a new plug-in on the application deployment device 300.
[0073] S205: Configuration module 302 determines a value of the second configuration item according to at least one available resource matching the second configuration item, and provides the value of the second configuration item to application orchestration module 301, where the value of the second configuration item is used to indicate a target resource in the at least one available resource.
[0074] 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.
[0075] In this embodiment, the following implementation examples of determining the value of the second configuration item are provided.
[0076] In the first implementation example, when there are multiple available resources that match the second configuration item, there may be multiple candidate values corresponding to the multiple available resources. At this time, the configuration module 302 may randomly select a candidate value from the multiple candidate values as the value of the second configuration item; or, the configuration module may select a candidate value from the multiple candidate values as the value of the second configuration item based on load balancing or other strategies. When there is only one available resource that matches the second configuration item, the second configuration item corresponds to one candidate value, and the configuration module 302 may directly determine the candidate value as the value of the second configuration item.
[0077] In the second implementation example, the configuration module 302 may determine the value of the second configuration item by scoring.
[0078] 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 functional dimension, the score in the performance dimension, and the score in the cost dimension, which are score 1, score 2, and score 3, respectively. Then, the configuration module 302 compares the sizes between 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 by priority of "function>performance>cost", and give priority to determining the score of the candidate value in the functional dimension as the score of the candidate value.
[0079] Among them, the score of the candidate value corresponding to the available resource in the functional dimension can be manually annotated by the technician in advance for the available resource, so that the configuration module 302 obtains the score of the candidate value in the functional dimension by reading the manual annotation result. For example, the function of elastic load balancing (ELB) can be divided into exclusive type and shared type. The basic functions of the two are the same, but the exclusive type is better than the shared type in terms of reliability, protocol support range, etc. Therefore, the technician can mark the score of the exclusive type in the functional dimension as higher than the score of the shared type in the functional dimension.
[0080] The score of the candidate value in the performance dimension can be determined by the configuration module 302 according to the performance of the available resources. Generally, the performance of the available resources is positively correlated with the score of the candidate value in the performance dimension. Taking computing resources as an example, they can be divided into "general-purpose", "general-purpose computing enhanced", and "high-performance computing" according to performance. The computing resources of "general-purpose" have the lowest performance and the lowest score; the computing resources of "high-performance computing" have the highest performance and the highest score.
[0081] 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.
[0082] Further, the maximum score determined by the configuration module 302 from the score of the functional dimension, the score of the performance dimension, and the score of 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 (hereinafter referred to as the target candidate value) of the second configuration item 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 according to the preferred level. For example, the preferred level can include three levels of "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 between the basic score and the preferred score, and use the sum as the score of the target candidate value.
[0083] 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.
[0084] Table 1
[0085] Cloud resources Configuration items value Basic score Preferred level
[0086] The cloud resource refers to the resource on the cloud to which the configuration item belongs, such as cloud computing resources such as Elastic Cloud Server (ECS) and cloud container engine (CCE). When a configuration item has no cloud resource, such as the access address of a cloud service, the cloud resource can be filled with a general identifier, such as "global".
[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 according to the received available resources, it can determine the basic score and the 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, suppose that the preferred level corresponding to the original target candidate value was originally "recommended", and the preferred score corresponding to the candidate value was 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, the technicians can also modify the preference level of the (candidate) value of the configuration item recorded in the scoring management file, so as 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 (used to indicate the user's preference for the resource selected by the second configuration item) sent by application orchestration module 301, configuration module 302 can also determine the score of the candidate value corresponding to each available resource in combination with the deployment indication information.
[0090] Specifically, the configuration module 302 can determine, based on the deployment indication information, to select available resources from the cloud environment for the second configuration item based on the target factor, and 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 of 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 of the performance dimension and a factor of the cost dimension, the configuration module 302 can compare the score of the candidate value in the performance dimension and the score of 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 of the second configuration item, the configuration module 302 can select the candidate value with the largest score from the multiple candidate values, and determine the candidate value as the value of the second configuration item. When there are multiple candidate values with the same score, the configuration module 302 can randomly select a candidate value from the multiple candidate values as the value of the second configuration item. Alternatively, the configuration module 302 can select the candidate value with the largest score in other dimensions from the multiple candidate values as the value of the second configuration item based on the scores of other dimensions. 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 according to the deployment indication information, then, when there are multiple candidate values with the same score, the configuration module 302 can sort according to the priority of "function>performance>cost", further compare the scores of the multiple candidate values in the functional dimension, determine the candidate value with the largest 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, the number of second configuration items may be multiple, and there may be dependencies between different second configuration items. At this time, after obtaining the scores of each candidate value, the configuration module 302 can also determine multiple configuration combinations, such as determining multiple configuration combinations according to the dependencies between different second configuration items, etc. Each configuration combination includes the same multiple second configuration items, and each second configuration item in each configuration combination corresponds to a candidate value, and the candidate values corresponding to the multiple second configuration items in different configuration combinations are different. Then, the configuration module 302 can calculate the score of each configuration combination. For example, the configuration module 302 can calculate the sum of the scores of the candidate values of all second configuration items in the configuration combination, and use the calculated sum value as the score of the configuration combination; or, the configuration module 302 can perform weighted summation on the scores of a candidate value corresponding to all second configuration items in the configuration combination, and there are differences in the weights corresponding to different second configuration items, and use the sum value calculated by the weighted summation as the score of the configuration combination. Finally, the configuration module 302 can determine the configuration combination with the largest score according to the scores of each configuration combination, so as to determine the candidate values of each second configuration item in the configuration combination as the value of 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, thus 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 items for AZ lower and the weight value of the computing resource specifications higher, the final configuration for the application can select computing resources with better specifications, rather than selecting computing resources with poorer specifications because the weight value of the configuration items 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] Cloud resources Configuration items Weight
[0097] 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.
[0098] It should be noted that the above specific implementation methods for determining the value of one or more second configuration items are only some exemplary descriptions. In other possible implementations, the configuration module 302 may also use other methods to determine the value of the second configuration item. For example, the configuration module 302 may determine the value of the second configuration item by combining or transforming the above implementation methods, which is not limited to this.
[0099] After determining the value of the second configuration item, the configuration module 302 may send it to the application orchestration module 301 .
[0100] 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.
[0101] In this embodiment, the following specific implementation examples of deploying applications on the cloud are provided.
[0102] In a first implementation, application orchestration module 301 deploys an application on the cloud according to the value configured by the user for the first configuration item and the value automatically configured by configuration module 302 for the second configuration item. Specifically, available resources in the cloud environment indicated by the value of the first configuration item and the value of the second configuration item may be 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.
[0103] In this way, the user only needs to provide part of the configuration parameters, and the remaining configuration parameters can be automatically filled 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 in an available state, thereby avoiding the problem of application deployment failure caused by unavailable resources, further improving the efficiency of application deployment and reducing the difficulty of application deployment.
[0104] In a second implementation, the application orchestration module 301 may output the second configuration item, specifically, the second configuration item may be output 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 may present the following to the user: Figure 3 The interactive interface 1 shown in the figure includes a custom configuration and a recommended configuration, wherein the custom configuration includes a plurality of first configuration items and the values of the plurality of first configuration items, and the recommended configuration includes a plurality of second configuration items and the values of the plurality of 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 that the value of the second configuration item is appropriate on the client 100, the application arrangement module 301 deploys the application on the cloud according to 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 value of some of the second configuration items in the plurality of second configuration items), so that the application arrangement module 301 can respond to the user's modification operation on the value of the part of the second configuration item, determine the correction value corresponding to the part of the second configuration item, and deploy the application on the cloud according to the value configured for the first configuration item and the correction value configured for the second configuration item, that is, deploy the application on the cloud platform 200.
[0105] 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.
[0106] In a third implementation, when the user provides values of some configuration items (ie, the first configuration item) based on the configuration template, the configuration module 302 may obtain the historical configuration record corresponding to the configuration template, such as from Figure 1 The historical configuration record is obtained from the database shown. The historical configuration record includes the value configured for the second configuration item when the application is deployed in the historical time period. For example, the configuration module 302 can obtain the configuration information of one or more applications for multiple users using the configuration template 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.
[0107] The application orchestration module 301 can present not only the value automatically configured by the configuration module 302 for the second configuration item to the user through the client 100, but also the historical configuration record corresponding to the configuration template. Figure 4 As shown, the interactive interface 2 presented by the client 100 may include multiple historical configuration records and the value configured for the second configuration item by the current application deployment device 300. Furthermore, the application orchestration module 301 may also present the success rate of deploying the application using each historical configuration record on the interactive interface 2.
[0108] 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) according to 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 that the value of the second configuration item is appropriate on the client 100, the application orchestration module 301 deploys the application on the cloud according to 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 according to 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.
[0109] 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, 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.
[0110] It is worth noting that the above implementation method of deploying applications on the cloud according to 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, which is not limited to this.
[0111] Furthermore, after completing the application deployment, the application orchestration module 301 can also feedback the application deployment result to the user through the client 100, such as feedback to the user that the application deployment is successful, or feedback to the user that the application deployment fails, so that the user can know the deployment status of the application. In addition, the application orchestration module 301 (or the 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 the database, such as writing Figure 1 The database is shown to provide a configuration reference for users when deploying other applications.
[0112] Above Figure 2 In the illustrated embodiment, the application deployment apparatus 300 involved in the application deployment process may be software configured on a computing device or a computing device cluster, and by running the software on the computing device or the computing device cluster, the computing device or the computing device cluster may implement the functions of the above-mentioned application deployment apparatus 300. Below, based on the perspective of hardware device implementation, the application deployment apparatus 300 involved in the application deployment process is described in detail.
[0113] Figure 5 The schematic diagram of the structure of a computing device is shown. The above-mentioned application deployment device 300 can be deployed on the computing device. 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 above-mentioned Figure 2 The functionality of the application deployment device 300 in the illustrated embodiment.
[0114] like Figure 5 As shown, computing device 500 includes processor 510, memory 520, communication interface 530 and bus 540. Processor 510, memory 520 and communication interface 530 communicate through bus 540. Bus 540 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5The communication interface 530 is used to communicate with the outside, for example, to receive configuration templates and deployment instruction information provided by users.
[0115] Among them, the processor 510 can 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 can also be an integrated circuit chip with signal processing capabilities. In the implementation process, the functions of the application deployment device 300 can be completed by the hardware integrated logic circuit in the processor 510 or the instructions in the form of software. The processor 510 can also be a general processor, a digital signal process (DSP), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. Among them, the general processor can be a microprocessor or the processor can also be any conventional processor, etc., and the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field 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, etc. 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 in the application deployment device 300 in combination with its hardware.
[0116] 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 a SSD.
[0117] The memory 520 stores executable codes, and the processor 510 executes the executable codes to execute the method executed by the aforementioned application deployment device 300.
[0118] Specifically, in implementing Figure 2In the case of the embodiment shown, and Figure 2 In the case where the application deployment device 300 described in the illustrated embodiment is implemented by software, the execution Figure 2 The software or program code required for the functions of the application deployment apparatus 300 is stored in the memory 520. The interaction between the application deployment apparatus 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 apparatus 300.
[0119] Figure 6 A schematic diagram of the structure of a computing device cluster is shown. Figure 6 The computing device cluster 60 shown includes multiple computing devices, and the above-mentioned application deployment apparatus 300 can be distributedly deployed on multiple computing devices in the computing device cluster 60. Figure 6 As shown, the computing device cluster 60 includes multiple computing devices 600 , each computing device 600 includes a memory 620 , a processor 610 , a communication interface 630 and a bus 640 , wherein the memory 620 , the processor 610 , and the communication interface 630 are communicatively connected to each other via the bus 640 .
[0120] The processor 610 may be a CPU, a GPU, an ASIC, or one or more integrated circuits. The processor 610 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, some functions of the application deployment device 300 may be completed by the hardware integrated logic circuit or software instructions in the processor 610. The processor 610 may also be a DSP, an FPGA, a general processor, other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and may implement or execute some methods, steps, and logic block diagrams disclosed in the embodiments of the present application. Among them, the general processor may be a microprocessor or the processor may also be any conventional processor, etc., and the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium 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, etc. The storage medium is located in the memory 620. In each computing device 600, the processor 610 reads the information in the memory 620, and in combination with its hardware, some functions of the application deployment device 300 may be completed.
[0121] The memory 620 may include ROM, RAM, static storage device, dynamic storage device, hard disk (such as SSD, HDD), etc. The memory 620 may store program codes, for example, part or all of the program codes for implementing the application orchestration module 301, part or all of the program codes for implementing the configuration module 302, part or all of the program codes 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, such as a part of the computing devices 600 may be used to execute the method executed by the above-mentioned application orchestration module 301, and another part of the computing devices 600 may be used to execute the method executed by the above-mentioned 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 the execution process, for example, multiple candidate values of the above-mentioned second configuration item, the score corresponding to each candidate value, the value of the second configuration item, etc.
[0122] The communication interface 603 in each computing device 600 is used for external communication, such as interacting with other computing devices 600 .
[0123] The bus 640 may be a peripheral component interconnect standard bus or an extended industry standard architecture bus. For ease of representation, Figure 6 The bus 640 in each computing device 600 is represented by only one thick line, but this does not mean that there is only one bus or one type of bus.
[0124] 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.
[0125] 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, the one or more computing devices execute the method performed by the application deployment device 300 of the above embodiment.
[0126] In addition, the embodiment of the present application also provides a computer program product, when the computer program product is executed by one or more computing devices, the one or more computing devices execute any of the aforementioned application deployment methods. The computer program product can be a software installation package, and when any of the aforementioned application deployment methods is needed, the computer program product can be downloaded and executed on a computer.
[0127] 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 separated, 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 over 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 by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0128] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an 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 floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0129] 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.
[0130] 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 may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may 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 may be transmitted from a website site, 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 site, computer, training device, or data center. The computer-readable storage medium may 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 may 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)), etc.
Claims
1. An application deployment method, It is 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 a value of the second configuration item according to the at least one available resource, 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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
Cited By
Method and apparatus for application deployment, and related device
WO2024239612A1
