A cloud application deployment method, device and system
Through automated deployment management services in the cloud computing field, the central management server and the deployment management server within the partition are used to parse and execute cloud application deployment tasks, solving the problem of low manual deployment efficiency in large-scale cloud application deployment, achieving high efficiency and low efficiency Cost deployment management.
Patent Information
- Application Number
- CN202011616705.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2040-12-31
AI Technical Summary
In the field of cloud computing, the large-scale deployment of cloud applications is in the scenario of a huge number of servers, and the manual deployment method leads to huge workload, low efficiency and high operation and maintenance costs.
Generate deployment tasks through the central management server, the deployment management server in the partition receives and parses tasks, acquires and verifys installation files, and automatically deploys cloud applications to target application servers and/or shared storage servers according to the deployment strategy to reduce manual participation. Improve deployment efficiency.
It has achieved the reduction of deployment workload and operation and maintenance costs, improved deployment efficiency, and performed cloud application installation in partitions through automated deployment management services, with higher flexibility.
Smart Images

Figure CN112698847B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, and in particular to a method, device and system for deploying cloud applications. Background Art
[0002] Based on the development of cloud computing technology, relying on the powerful computing power of the cloud, more and more cloud applications are deployed and run in the cloud. During the operation of the application in the cloud, the cloud encodes the display output and sound output of the application as video and audio streams, and transmits them to the terminal in real time through the network. The terminal decodes them in real time and displays them. The terminal can also control the application, and transmit the operation control information to the cloud in real time through the network for application control.
[0003] In the related technology, in the scenario of large-scale operation of cloud applications, due to the large number of servers (usually thousands of servers), when the application is deployed on the application server on a large scale in this scenario, if manual deployment is adopted, there will be problems such as huge workload, low efficiency and high operation and maintenance costs. Summary of the invention
[0004] In view of this, the present application provides a cloud application deployment method, device and system to reduce the deployment workload and operation and maintenance costs and improve deployment efficiency.
[0005] Specifically, the present application is implemented through the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a method for deploying a cloud application, the method comprising:
[0007] Receive cloud application deployment tasks;
[0008] Parsing the cloud application deployment task to obtain application information and deployment strategy of the cloud application to be deployed;
[0009] Verifying the pre-acquired and stored installation file of the cloud application according to the application information;
[0010] If the verification passes, the cloud application is deployed on a target application server in the partition and / or a shared storage server adapted to the cloud application according to the deployment policy.
[0011] In a second aspect, an embodiment of the present application provides a cloud application deployment system, including: a central management server and one or more deployment management servers;
[0012] The central management server is used to generate an application deployment task in response to a deployment operation triggered by a user for a cloud application to be deployed, and send the cloud application deployment task to a deployment management server of a partition where the cloud application is to be deployed;
[0013] The deployment management server is used to receive the cloud application deployment task;
[0014] Parsing the cloud application deployment task to obtain application information and deployment strategy of the cloud application to be deployed;
[0015] Verifying the pre-acquired and stored installation file of the cloud application according to the application information;
[0016] If the verification passes, the cloud application is deployed on a target application server in the partition and / or a shared storage server adapted to the cloud application according to the deployment policy.
[0017] In a third aspect, an embodiment of the present application provides a cloud application deployment device, the device comprising:
[0018] A receiving module, used for receiving cloud application deployment tasks;
[0019] A parsing module, used to parse the cloud application deployment task to obtain application information and deployment strategy of the cloud application to be deployed;
[0020] An acquisition module, configured to verify the pre-acquired and stored installation file of the cloud application according to the application information;
[0021] A deployment module is used to control the deployment of the cloud application on a target application server in the partition and / or a shared storage server adapted to the cloud application according to the deployment strategy if the verification passes.
[0022] In a fourth aspect, an embodiment of the present application provides a machine-readable storage medium, on which a number of computer instructions are stored. When the computer instructions are executed, the method described in the first aspect is implemented.
[0023] In a fifth aspect, an embodiment of the present application provides a computer device, comprising: a machine-readable storage medium and a processor, wherein the machine-readable storage medium stores instruction codes, and the processor communicates with the machine-readable storage medium, reads and executes the instruction codes in the machine-readable storage medium, and implements the method described in the first aspect.
[0024] A cloud application deployment method, device and system are provided in the embodiments of the present application. After receiving an application deployment task for a certain cloud application, the deployment management service parses the application deployment task to obtain application information and deployment strategy of the cloud application to be deployed in the partition; obtains the installation file of the cloud application pre-stored in the application storage node in the partition according to the application information, and after verifying the installation file of the cloud application, installs the cloud application in the target application server and / or the shared storage server compatible with the cloud application in the partition according to the installation strategy of the cloud application. In this embodiment, the deployment management service in the partition automatically executes the deployment and installation of the cloud application in the partition, and the installation method can be installed locally on the target application server or on the application shared storage server according to different deployment strategies of the cloud application. Therefore, the installation method is more flexible, the manual participation is low, and the deployment is more efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a schematic diagram of an application scenario architecture of cloud application deployment shown in an exemplary embodiment of the present application;
[0026] Figure 2 is a schematic diagram of server cluster distribution within a partition shown in an exemplary embodiment of the present application;
[0027] Figure 3 It is a flowchart of a cloud application deployment method shown in an exemplary embodiment of the present application;
[0028] Figure 4 It is a schematic diagram of a process of deploying and installing a cloud application in a partition provided by an exemplary embodiment of the present application;
[0029] Figure 5 It is a flowchart of another cloud application deployment method provided by an exemplary embodiment of the present application;
[0030] Figure 6 is a structural diagram of a cloud application deployment system according to an exemplary embodiment of the present application;
[0031] Figure 7 It is a structural schematic diagram of a deployment device for an application shown in an exemplary embodiment of the present application;
[0032] Figure 8 It is a structural schematic diagram of a computer device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0034] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0035] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0036] Figure 1 is a schematic diagram of an application scenario architecture of a cloud application deployment method shown in an exemplary embodiment of the present application; Figure 1 As shown, in this embodiment, the cloud streaming system provides various cloud application services to different users by setting different service partitions, such as partition 1, partition 2...partition m; in the case of cloud application deployment, the central management server 10 generates a cloud application deployment task in response to the deployment operation of the cloud application to be deployed by the user (such as system operator, tenant, etc.), and sends the cloud application deployment task to the partition to which the cloud application is to be deployed. After receiving the cloud application deployment task, the deployment management service of the partition parses the cloud application deployment task to obtain the application information and deployment strategy of the cloud application to be deployed, obtains the installation file of the cloud application pre-stored in the partition according to the application information, and executes the deployment of the cloud application in the partition according to the deployment strategy.
[0037] In this embodiment, each partition is provided with a deployment management service, through which the deployment of cloud applications in the partition is performed; in this embodiment, the above-mentioned partitions refer to server clusters set up for users in different regions, such as Shanghai partition, Beijing partition, etc., or different server clusters set up for users in the same region, such as Shanghai partition 1, Shanghai partition 2, etc.; a central management server corresponds to multiple partitions and can manage the cloud application deployment of multiple partitions at the same time.
[0038] Figure 2 is a schematic diagram of the distribution of server clusters within a partition shown in an exemplary embodiment of the present application; Figure 2 As shown, partition 1 includes a certain number of shared storage servers 102 and a certain number of application servers 103. The deployment management work of the cloud application in the partition is performed through the deployment management service, and the installation files of the cloud application to be deployed in the partition are pre-acquired and stored in the application storage node 101. Optionally, the application storage node 101 is used to store the installation files of all cloud applications after the application adaptation operation in the cloud streaming system, and then all the installation files of the cloud applications adapted by the adaptation system are synchronized to the application storage node 101 in each partition. The installation file includes an application installation package and an application adaptation package. At the same time, the configuration file of the application obtained after the application is adapted is synchronized to the database of the application storage node. When the deployment management service executes the deployment task of the cloud application, the deployment management service controls the target application server and / or shared storage server to obtain the installation file of the cloud application from the application storage node 101.
[0039] In this embodiment, the above-mentioned application server is used to specifically perform the decompression and installation of the cloud application, as well as the image mounting of the cloud application when starting the cloud application deployed on the shared storage server. After installing and starting the cloud application, the application server performs the streaming of the cloud application.
[0040] In the present application, the above-mentioned deployment management service can be deployed on a deployment management server, which includes one or more application storage nodes (it can also be understood that the deployment management service is deployed on each storage node). The application storage node is a server independent of the application server in the partition, and can also include the above-mentioned application server; of course, the deployment management server of the present application can also be independent of the above-mentioned application storage node, and the present application does not limit this.
[0041] Figure 3 is a flow chart of a cloud application deployment method shown in an exemplary embodiment of the present application; Figure 3 As shown, the method is applied to a deployment management server of a partition to be deployed with a cloud application, and the method includes the following steps:
[0042] S10. The deployment management server receives a cloud application deployment task.
[0043] Exemplarily, in the present application, the central management server generates a cloud application deployment task in response to a user's cloud application deployment operation trigger, and sends the cloud application deployment task to the deployment management server of the partition where the cloud application is to be deployed.
[0044] In this embodiment, the above-mentioned cloud application deployment task may carry the application information and application deployment strategy of one cloud application to be deployed, or may carry the application information and application deployment strategy of multiple cloud applications to be deployed, thereby triggering the deployment of multiple cloud applications at the same time.
[0045] S20. The deployment management server parses the cloud application deployment task to obtain application information and deployment strategy of the cloud application to be deployed.
[0046] In this application, after receiving the cloud application deployment task, the deployment management server parses the cloud application deployment task to obtain the application information and deployment strategy of the cloud application to be deployed. The application information includes: application identification, application version information, etc.; the application deployment strategy includes: application deployment location, application server type supported by the application (such as Windows 7 server, Windows 10 server, Andriod server, Linux server, etc.) and the type of shared storage server, application deployment execution time and application deployment scope, etc.; wherein, the application deployment location includes: application server local disk and shared disk. In the application server local disk deployment method, the cloud application is finally deployed to the application server local disk; in the shared disk deployment method, the cloud application is finally deployed to the shared storage directory of the shared storage server. In this method, the application server starts the cloud application by remote disk mounting. The above application deployment execution time includes: immediate execution and execution at a specified time, such as specifying to execute application deployment at 10 pm on the same day. The above-mentioned application deployment scope includes: the partition where the cloud application is to be deployed (for example, deployed in Beijing partition, Shanghai partition 1 and Shanghai partition 2 at the same time), and the scope of application servers or shared storage servers where the application is deployed in the partition. Exemplarily, it includes: in the application server local disk deployment method, for example, the number of application servers (number of installation paths) or the installation coverage ratio on which the cloud application is to be installed can be specified, or the specific application servers on which the cloud application is to be installed can be directly specified.
[0047] S30. Verify the installation file of the cloud application pre-acquired and stored in the application storage node according to the application information.
[0048] The application storage nodes contained in the partition can be of different types, such as Android application storage nodes, Windows application storage nodes, Linux application storage nodes, etc. When there are multiple application storage nodes of the same type in the partition, the application installation files are synchronized between the application storage nodes through the automatic file synchronization mechanism. The application installation files between the application storage nodes remain consistent, providing highly available file storage capabilities to the outside world.
[0049] In this embodiment, after the application deployment execution time is reached, the deployment management server executes the cloud application deployment task. The deployment management server first checks whether the cloud application to be deployed exists in the application directory of the application storage node. If so, the installation file of the cloud application is obtained, and the integrity of the obtained installation file is verified. Exemplarily, the verification is performed by comparing the MD5 value of the installation file with the MD5 value in the configuration file of the cloud application corresponding to the installation file. If they are consistent, the verification passes and the deployment of the cloud application is further executed. If they are inconsistent, the task execution is terminated and reported.
[0050] S40: If the verification passes, deploying the cloud application on a target application server in the partition and / or a shared storage server adapted to the cloud application is controlled according to the deployment policy.
[0051] In this embodiment, according to the deployment strategy of the cloud application, the cloud application can be deployed in the following three deployment locations: 1. deployed on the application server; 2. deployed on the shared storage server; 3. deployed on both the application server and the shared storage server.
[0052] Figure 4 is a schematic diagram of a process for deploying and installing a cloud application in a partition provided by an exemplary embodiment of the present application; Figure 4 As shown, in this embodiment, in the above step S40, the cloud application is deployed on the target application server in the partition and / or the shared storage server adapted to the cloud application according to the deployment strategy control, which specifically includes the following steps S401-S407:
[0053] S401. Identify the deployment location of the cloud application configured in the deployment strategy.
[0054] The deployment strategy of the cloud application includes the deployment location of the cloud application to be deployed, and specifically, it can be any one of the three deployment locations mentioned above.
[0055] S402: If the deployment location of the cloud application is the local disk of the application server, search for a target application server that meets the deployment conditions.
[0056] Those skilled in the art should be aware that the target application server that meets the deployment conditions includes conditions that meet the conditions set in the application deployment policy, conditions contained in the application configuration file, conditions that the application type is consistent with the target application server type (Windows applications are deployed on Windows application servers), and conditions that meet the resource usage requirements of cloud applications.
[0057] Exemplarily, in this application, an application server that meets the resource occupation requirements of a cloud application is searched in the following manner:
[0058] According to the disk space requirements for application installation, query the remaining disk space of the application server. Combined with the online user status of the application server, give priority to the application server whose remaining disk space meets the application installation space requirements and has no online users, and secondly, the application server that meets the space requirements and has online users. If after screening the application server, the number of installation paths or coverage required by the policy cannot be met, the task execution is terminated.
[0059] In this embodiment, if the target application server that meets the deployment conditions is not found, the deployment of the cloud application in the partition is terminated and reported.
[0060] S403: Control the cloud application to be installed on the target application server according to an application installation method compatible with the cloud application.
[0061] In this embodiment, in the local disk deployment mode of the application server, due to different application types, the installation modes supported by the applications are different. For example, most Android applications do not support file distribution mode installation. Therefore, after screening the target application server, it is necessary to determine the application installation mode supported by the application installation package, and control the installation of the cloud application on the target application server according to the application installation mode supported by the cloud application. Then, the above step S403 specifically includes the following steps A10-A40:
[0062] Step A10: If the application installation method compatible with the cloud application is a download and installation method, a download address of the cloud application installation file with a time limit is generated for each target application server, and the download address is sent to each target application server, so that the target application server downloads the cloud application installation file from the application storage node in the partition within a valid time for decompression and installation.
[0063] For example, a Uniform Resource Locator (URL) for downloading installation files is generated for each target application server. The URL carries an access token identifier, and the access token identifier is time-limited, which controls that only the target application server is allowed to download installation files within a limited time.
[0064] The application installation files include: application installation package and application adaptation package. During the installation process, the application installation package is first decompressed, and then the application adaptation package is decompressed. The decompressed application adaptation package is saved in the application installation package in an overwritten manner. In the localized disk deployment mode, a specific installation script needs to be executed to complete the localized deployment process of the application. Similarly, when uninstalling an application deployed on a localized disk, the uninstall script needs to be executed in the installation directory first, and then the installation directory needs to be deleted.
[0065] The configuration file of the cloud application contains the decompression key of the application installation package and application adaptation package. The deployment management server sends the URL and decompression key to the target application server, triggering the target application server to download the installation file to the local computer, and then performs internal decompression and silent installation of the installation file. During the installation process, the deployment management service server obtains the progress and status of the installation.
[0066] Step A30: If the application installation method compatible with the cloud application is a file distribution installation method, create a subdirectory of the cloud application under the application distribution root directory of the application storage node, unzip the application installation file to the subdirectory of the cloud application, and notify the target application server to synchronize the newly added directory structure of the application storage node to the local disk directory.
[0067] In this embodiment, if the distribution mode is used for installation, a decompression and release subdirectory of the cloud application is created under the application distribution root directory of the application storage node, and then the cloud application installation package and the cloud application adaptation package are sequentially decompressed to the decompression and release subdirectory of the cloud application created under the application distribution directory, and the target application server is notified to enable the file synchronization function, and the newly added application directory structure is synchronized to the local disk directory of the target application server. During the synchronization process, the deployment management service obtains the synchronization progress and status.
[0068] In this embodiment, most applications support the green package installation method, and such applications are installed according to the file distribution mode. The way in which the cloud application is installed on the application server can be determined by the type of the cloud application, or by reading the configuration file of the cloud application.
[0069] S404: If the deployment location of the application is a shared disk, search for a shared storage server that is compatible with the cloud application.
[0070] In this application, for some less popular applications and cloud applications that do not require high startup speed, the deployment strategy can be set to use shared disk deployment for deployment, thereby saving the local disk storage space of the application server and reducing the storage cost of the application server.
[0071] S405: Decompress the installation file of the cloud application and release it to the application installation directory of the shared storage server.
[0072] In this embodiment, if the deployment location is a shared disk, the eligible shared storage servers are first selected according to the application type, and then the installation files are decompressed to the application installation directory on each shared storage server. The decompression of the installation package requires the use of a decompression password to complete the decompression, and the application installation package is decompressed and released first, and then the cloud application adaptation package is decompressed and released and overwritten to the application installation directory.
[0073] S406: If the deployment location of the cloud application includes a local disk and a shared disk, search for a target application server that meets the deployment conditions and a shared storage server that is compatible with the cloud application.
[0074] In this embodiment, according to the operation policy of the cloud application, a certain cloud application can be deployed both locally on the application server and on the shared storage server.
[0075] S407: Control the cloud application to be installed locally on the target application server according to an application installation method compatible with the cloud application, and decompress and release the installation file of the cloud application into the application installation directory of the shared storage server.
[0076] In this embodiment, the cloud application is installed on the target application server according to the application installation method compatible with the cloud application, and the installation package and application adaptation package of the cloud application are decompressed and released to the application installation directory of the shared storage server. For details, please refer to the description of the above steps.
[0077] In one embodiment of the present application, the above method further includes the following steps B10-B20:
[0078] Step B10: Receive the deployment status of the cloud application fed back by the target application server and / or the shared storage server, and report the deployment status.
[0079] The deployment status includes the deployment result, such as whether it is successfully deployed on all the partitions or servers to be deployed.
[0080] Step B20, and after the cloud application is deployed, storing the installation distribution status of the cloud application in the partition.
[0081] In this embodiment, the installation distribution of the cloud application in the partition (including the application deployment relationship) is stored for reference in subsequent uninstallation and update operations of the cloud application.
[0082] In one embodiment of the present application, after receiving the deployment status of the cloud application fed back by the target application server and the shared storage server, the deployment management server reports the deployment status, which includes the progress of the cloud application deployment, the specific results of the deployment (whether the entire deployment is successful or part of the deployment is successful), etc.; illustratively, the application status is reported to the central management server, so that the deployment progress and deployment results can be monitored.
[0083] In the above embodiments of the present application, the first deployment of the cloud application in the partition is automatically executed by the deployment management server set in the partition, which is simple and efficient compared to the manual deployment method in the prior art.
[0084] Optionally, the above-mentioned deployment management server is also used to execute update tasks and uninstall tasks of cloud applications.
[0085] Figure 5 is a flow chart of another cloud application deployment method provided by an exemplary embodiment of the present application; refer to Figure 5 As shown, after the cloud application is deployed on the target application server in the partition and / or the shared storage server adapted to the cloud application according to the deployment strategy, the method further includes the following step S50:
[0086] S50: When it is necessary to automatically adjust the deployment of the cloud application, statistics are collected on the running status of the cloud application after the cloud application goes online, and the deployment of the cloud application is adaptively adjusted based on the running status of the cloud application within a specified time period.
[0087] In this embodiment, when the cloud application is initially launched, the operation personnel manually make preliminary decisions on the application deployment strategy according to the operation strategy. However, during the actual operation of the application, the deployment management service will dynamically adjust the application deployment paths and locations due to objective factors such as the terminal user's preference, the application server disk space limitation, and the actual operation status. For example, the number of local deployment paths may be increased or decreased, the number of shared storage servers deployed by the cloud application may be increased or decreased, etc. Another example is to convert the cloud application from the application server local disk deployment to the shared disk deployment, or to adjust the shared disk deployment to the local disk deployment.
[0088] Exemplarily, the above-mentioned situation where automatic adjustment of deployment of the cloud application is required includes if the current application deployment management service has enabled automatic adjustment of deployment and the cloud application supports automatic adjustment of deployment. In this case, the deployment management service will adjust the deployment of the cloud application according to the increase or decrease in the number of startup paths of the cloud application, the startup time requirements, etc.
[0089] Exemplarily, the deployment management server collects the peak number of online users and the longest startup time of the cloud application in a unit time (for example, in days); according to the peak number of online users and the longest startup time of each unit time application version in the specified time period, the average value of the peak number of online users and the average value of the longest startup time in the specified time period (for example, in a week) are counted to determine whether the average value of the peak number of online users and the average value of the longest startup time match. If they do not match, the deployment path m1 of the application version is recalculated according to the average value p of the growth rate of the number of online users in the specified time period. The calculation formula is: m1=m0×k×(1+p), where k is a constant coefficient, p can be a positive value or a negative value, and m1 is the deployment path before adjustment; Exemplarily, k=1.5 is set according to actual operation requirements. According to the calculated deployment path of the application version and the current local deployment of the application server, the application deployment installation task or the application uninstallation task is automatically executed in the specified time period (which can be the idle time of the application server, such as 2 am to 4 am), so as to automatically adjust the number of localized deployed application paths.
[0090] Optimize the deployment of cloud applications based on their popularity and the deployment locations they support. For example, for locally deployed applications, compile a list of application versions from the last seven days. For cloud applications whose online users are not in the top 30 (configurable) for seven consecutive days (configurable), if the cloud application supports shared storage deployment, automatically generate local uninstall tasks and shared storage deployment tasks for the cloud application every morning to dynamically transfer the application from the local disk to the shared storage network disk to save local disk space.
[0091] For another example, we can optimize the deployment of cloud applications based on their popularity and startup time. For applications whose online users are in the top 20 (configurable) for seven consecutive days and whose average startup time is outside the top 20 (configurable), we can optimize the startup efficiency of hot applications by adjusting the proportion of localized deployment paths.
[0092] Figure 6 is a schematic diagram showing a structure of a cloud application deployment system according to an exemplary embodiment of the present application; Figure 6 As shown, the system includes: a central management server and one or more deployment management servers.
[0093] The central management server 10 is used to generate an application deployment task in response to a deployment operation triggered by a user for a cloud application to be deployed, and send the cloud application deployment task to a deployment management server of a partition where the cloud application is to be deployed;
[0094] The deployment management server 100 is used to receive the cloud application deployment task;
[0095] Parsing the cloud application deployment task to obtain application information and deployment strategy of the cloud application to be deployed;
[0096] Verifying the pre-acquired and stored installation file of the cloud application according to the application information;
[0097] If the verification passes, the cloud application is deployed on a target application server in the partition and / or a shared storage server adapted to the cloud application according to the deployment policy.
[0098] The system provided in the embodiments of the present application executes the deployment of cloud applications in various partitions within the system according to the cloud application deployment methods described in the above method embodiments. For details, please refer to the description in the above method embodiments.
[0099] Figure 7 is a schematic diagram of a structure of a deployment device for an application shown in an exemplary embodiment of the present application; Figure 7 As shown, the device 600 includes:
[0100] The receiving module 601 is used to receive a cloud application deployment task.
[0101] The parsing module 602 is used to parse the cloud application deployment task to obtain application information and deployment strategy of the cloud application to be deployed.
[0102] The acquisition module 603 is used to verify the pre-acquired and stored installation file of the cloud application according to the application information.
[0103] The deployment module 604 is used to control the deployment of the cloud application on the target application server in the partition and / or the shared storage server adapted to the cloud application according to the deployment strategy if the verification passes.
[0104] Optionally, the deployment module 604 is specifically used to:
[0105] Identifying a deployment location of the cloud application configured in the deployment strategy;
[0106] If the deployment location of the cloud application is the local disk of the application server, searching for a target application server that meets the deployment conditions;
[0107] The cloud application is installed locally on the target application server in a controlled manner according to an application installation method compatible with the cloud application.
[0108] Optionally, the deployment module 604 is specifically used to:
[0109] If the deployment location of the cloud application is a shared disk, searching for a shared storage server that is compatible with the cloud application;
[0110] The installation file of the cloud application is decompressed and released into the application installation directory of the shared storage server.
[0111] Optionally, the deployment module 604 is specifically used to:
[0112] If the deployment location of the cloud application includes a local disk and a shared disk, searching for a target application server that meets the deployment conditions and a shared storage server that is compatible with the cloud application;
[0113] The cloud application is installed locally on the target application server in accordance with an application installation method compatible with the cloud application, and the installation file of the cloud application is decompressed and released into the application installation directory of the shared storage server.
[0114] Optionally, the deployment module 604 is specifically configured to install the cloud application on the target application server according to an application installation method compatible with the cloud application through the following steps:
[0115] If the application installation method compatible with the cloud application is a download installation method, a download address of the installation package of the cloud application with a time limit is generated for each target application server, and the download address is sent to each target application server, so that the target application server downloads the installation file of the cloud application from the application storage node in the partition within the effective time to decompress and install it;
[0116] If the application installation method compatible with the cloud application is the file distribution installation method, then create a subdirectory of the cloud application under the application distribution root directory of the application storage node, unzip the application installation file to the subdirectory of the cloud application, and notify the target application server to synchronize the newly added directory structure of the application storage node to the local disk directory.
[0117] Optionally, the above device 600 further includes:
[0118] A status reporting module (not shown in the figure), configured to receive the deployment status of the cloud application fed back by the target application server and / or the shared storage server, and report the deployment status;
[0119] The storage module (not shown in the figure) is used to store the installation distribution status of the cloud application in the partition after the cloud application is deployed.
[0120] Optionally, the above device 600 further includes:
[0121] A deployment adjustment module (not shown in the figure) is used to count the running status of the cloud application after the cloud application goes online when it is necessary to automatically adjust the deployment of the cloud application, and to perform periodic adaptive adjustments to the deployment of the cloud application based on the running status of the cloud application within a specified time period.
[0122] In another embodiment of the present application, a machine-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the cloud application deployment method described in any of the above embodiments are implemented.
[0123] Figure 8 Schematic diagram of the structure of a computer device shown in the embodiment of the present application. Figure 8 As shown, the computer device 700 includes at least a memory 702 and a processor 701; the memory 702 is connected to the processor 701 via a communication bus 703, and is used to store instruction codes executable by the processor 701; the processor 701 is used to read and execute instruction codes from the memory 702 to implement the steps of the cloud application deployment method described in any of the above embodiments.
[0124] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0125] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, 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 on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0126] Computers suitable for executing computer programs include, for example, general and / or special microprocessors, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory and / or a random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, the computer will also include one or more large-capacity storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or the computer will be operably coupled to this large-capacity storage device to receive data from it or to transmit data to it, or both. However, the computer does not necessarily have such a device. In addition, the computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device such as a universal serial bus (USB) flash drive, to name a few.
[0127] Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices (e.g., EPROM, EEPROM and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.
[0128] Although this specification includes many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of the specific embodiments of specific inventions. Certain features described in multiple embodiments in this specification may also be implemented in combination in a single embodiment. On the other hand, the various features described in a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. In addition, although features may work in certain combinations as described above and even initially claim protection, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may point to a sub-combination or a variation of a sub-combination.
[0129] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that these operations be performed in the particular order shown or performed sequentially, or requiring that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product, or packaged into multiple software products.
[0130] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.
[0131] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for deploying a cloud application. It is characterized in that The method comprises: Receive cloud application deployment tasks; Parsing the cloud application deployment task to obtain application information and deployment strategy of the cloud application to be deployed; Verifying the installation file of the cloud application pre-acquired and stored in the application storage node according to the application information; If the verification passes, the cloud application is deployed on a target application server in the partition and / or a shared storage server adapted to the cloud application according to the deployment policy; Wherein, the controlling, according to the deployment strategy, to deploy the cloud application on a target application server in the partition and / or a shared storage server adapted to the cloud application comprises: Identifying a deployment location of the cloud application configured in the deployment strategy; If the deployment location of the cloud application is a local disk of the application server, then searching for a target application server that meets the deployment conditions; controlling the cloud application to be installed locally on the target application server according to an application installation method that is compatible with the cloud application; If the deployment location of the cloud application is a shared disk, then search for a shared storage server that is compatible with the cloud application; decompress the installation file of the cloud application and release it to the application installation directory of the shared storage server; If the deployment location of the cloud application includes a local disk and a shared disk, then search for a target application server that meets the deployment conditions and a shared storage server that is compatible with the cloud application; control the cloud application to be installed locally on the target application server according to the application installation method that is compatible with the cloud application, and decompress the installation file of the cloud application and release it to the application installation directory of the shared storage server.
2. The method according to claim 1, It is characterized in that The controlling the cloud application to be installed on the target application server according to the application installation mode adapted to the cloud application includes: If the application installation method compatible with the cloud application is a download installation method, a download address of the installation file of the cloud application with a time limit is generated for each target application server, and the download address is sent to each target application server, so that the target application server downloads the installation file of the cloud application from the application storage node in the partition within the effective time for decompression and installation; If the application installation method compatible with the cloud application is the file distribution installation method, then create a subdirectory of the cloud application under the application distribution root directory of the application storage node, unzip the application installation file to the subdirectory of the cloud application, and notify the target application server to synchronize the newly added directory structure of the application storage node to the local disk directory.
3. The method according to claim 1 or 2, It is characterized in that The method further comprises: Receiving the deployment status of the cloud application fed back by the target application server and / or the shared storage server, and reporting the deployment status; And after the cloud application is deployed, the installation distribution status of the cloud application in the partition is stored.
4. The method according to claim 1, It is characterized in that After the cloud application is deployed on a target application server in a partition and / or a shared storage server adapted to the cloud application according to the deployment policy, the method further includes: In the case where the cloud application needs to be automatically adjusted for deployment, the running status of the cloud application is counted after the cloud application goes online, and the deployment of the cloud application is adaptively adjusted based on the running status of the cloud application within a specified time period.
5. A cloud application deployment system, It is characterized in that include: a central management server and one or more deployment management servers; The central management server is used to generate an application deployment task in response to a deployment operation triggered by a user for a cloud application to be deployed, and send the cloud application deployment task to a deployment management server of a partition where the cloud application is to be deployed; The deployment management server is used to receive the cloud application deployment task; and verify the pre-acquired and stored installation file of the cloud application according to the application information; The deployment management server is specifically used to identify the deployment location of the cloud application configured in the deployment strategy; if the deployment location of the cloud application is the local disk of the application server, then search for the target application server that meets the deployment conditions; control the cloud application to be installed locally on the target application server according to the application installation method adapted to the cloud application; if the deployment location of the cloud application is a shared disk, then search for a shared storage server adapted to the cloud application; decompress the installation file of the cloud application and release it to the application installation directory of the shared storage server; If the deployment location of the cloud application includes a local disk and a shared disk, searching for a target application server that meets the deployment conditions and a shared storage server that is compatible with the cloud application; The cloud application is installed locally on the target application server in accordance with an application installation method compatible with the cloud application, and the installation file of the cloud application is decompressed and released into the application installation directory of the shared storage server.
6. A cloud application deployment device, It is characterized in that The device comprises: A receiving module, used for receiving cloud application deployment tasks; A parsing module, used to parse the cloud application deployment task to obtain application information and deployment strategy of the cloud application to be deployed; An acquisition module, configured to verify the pre-acquired and stored installation file of the cloud application according to the application information; A deployment module, configured to control, if the verification passes, the deployment of the cloud application to a target application server in a partition and / or a shared storage server adapted to the cloud application according to the deployment strategy; The deployment module is specifically used for: Identifying a deployment location of the cloud application configured in a deployment policy; If the deployment location of the cloud application is a local disk of the application server, then searching for a target application server that meets the deployment conditions; controlling the cloud application to be installed locally on the target application server according to an application installation method adapted to the cloud application; If the deployment location of the cloud application is a shared disk, then search for a shared storage server that is compatible with the cloud application; decompress the installation file of the cloud application and release it to the application installation directory of the shared storage server; If the deployment location of the cloud application includes a local disk and a shared disk, then search for a target application server that meets the deployment conditions and a shared storage server that is compatible with the cloud application; control the cloud application to be installed locally on the target application server according to the application installation method that is compatible with the cloud application, and decompress the installation file of the cloud application and release it to the application installation directory of the shared storage server.
7. A machine-readable storage medium, It is characterized in that A plurality of computer instructions are stored on the machine-readable storage medium, and when the computer instructions are executed, the method according to any one of claims 1 to 4 is performed.
Citation Information
Patent Citations
Cloud platform security evaluation method during cross-cloud application deployment and migration
CN110569041A
Application deployment system and method, release engine and computer equipment
CN110881059A
Cloud service deployment method and device, equipment and medium
CN111552483A
Cloud platform deployment method, device and equipment and readable storage medium
CN111770174A
Cloud application processing method and application deployment method and relevant apparatus and system
WO2015161472A1
