Application deployment method, device, storage medium and electronic device

By generating dependency templates and parameter configuration template files, dynamically generating configuration files and deploying them using the cloud control center, the problem of cumbersome and low-efficiency large-scale application deployment processes is solved, and one-click application deployment and efficiency improvement are achieved.

CN116260860BActive Publication Date: 2024-08-23SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECHNOLOGY SERVICES CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202211581913.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2024-08-23
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

The deployment process of large-scale applications is cumbersome, complex and inefficient, mainly due to the complex dependency order between dependent components and the different environments of each node, which requires operation and maintenance personnel to repeatedly modify configuration parameters.

Method used

By obtaining configuration information from the cloud control center, generating dependency template files and parameter configuration template files, dynamically generating target configuration files and application files, and using the cloud control center to uniformly deploy to edge cluster nodes, avoiding repeated parameter modification operations.

Benefits of technology

It simplifies the application deployment process, improves deployment efficiency, reduces the operational complexity and time of operation and maintenance personnel, and realizes one-click deployment of applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116260860B
    Figure CN116260860B
Patent Text Reader

Abstract

The present application discloses an application deployment method, device, storage medium and electronic device, wherein the method comprises: in response to an application deployment operation, obtaining configuration information of a target edge cluster from a cloud control center; obtaining a dependency template file corresponding to a target application to be deployed and a parameter configuration template file corresponding to the target application from a predetermined application repository; the parameter configuration template file contains dependency relationships between dependency files corresponding to the target application; based on the configuration information and the parameter configuration template file, generating a target configuration file; based on the target configuration file and each of the dependency template files, generating a target application file in a predetermined format; sending the target application file to a cloud control center, so that the target application file is deployed on each node in the target edge cluster through the cloud control center. The method in the present application can improve the efficiency of application deployment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an application deployment method, device, storage medium and electronic device. Background Art

[0002] Since large applications are composed of multiple dependent applications / dependent components, when deploying large applications to nodes, the operation and maintenance personnel first need to know the dependency order between the dependent applications, then log in to each node, modify the configuration parameters according to the different node environments, and deploy the dependent applications in the order of dependent applications. Finally, the application on each node can be started normally.

[0003] For large and complex applications, the dependent components will increase exponentially with the complexity of the large application, and the order of the dependent components will also become very complicated, so the operation and maintenance personnel need to pay special attention and be careful. At the same time, due to the different environments of each node, the operation and maintenance personnel need to repeatedly modify the application configuration parameters, making the application deployment process cumbersome and complex, and the application deployment efficiency is low. Summary of the invention

[0004] In view of this, the present invention provides an application deployment method, device, storage medium and electronic device, the main purpose of which is to solve the current problems of cumbersome and complex application deployment process and low application deployment efficiency.

[0005] To solve the above problems, the present application provides an application deployment method, including:

[0006] In response to the application deployment operation, obtain the configuration information of the target edge cluster from the cloud control center;

[0007] Acquire a dependency template file corresponding to the target application to be deployed and a parameter configuration template file corresponding to the target application from a predetermined application repository; the parameter configuration template file contains dependency relationships between dependency files corresponding to the target application;

[0008] Generate a target configuration file based on the configuration information and the parameter configuration template file;

[0009] Based on the target configuration file and the dependent template file, generate a target application file in a predetermined format;

[0010] The target application file is sent to a cloud control center, so that the target application file is deployed on each node in the target edge cluster through the cloud control center.

[0011] Preferably, before responding to the application deployment operation, the method further includes:

[0012] Generate a parameter configuration template file corresponding to the application file and a dependency template file corresponding to the application file based on each dependency file in each application file in advance;

[0013] The parameter configuration template file, the dependent template file, the correspondence between the parameter configuration template file and the application file, and the correspondence between the dependent template file and the application file are stored in the application warehouse.

[0014] Preferably, the generating of the parameter configuration template file corresponding to the application file and the dependency template file corresponding to the application file based on the dependency files in the application files in advance includes:

[0015] Based on the modification frequency of each parameter in each of the dependent files, extracting a plurality of first parameter items whose modification frequency is greater than a predetermined number of times;

[0016] Based on the first parameter items corresponding to the dependent files of the same application file and the dependency relationship between the dependent files of the same application file, generate a parameter configuration template file corresponding to each application file;

[0017] Based on the remaining parameter items that are not extracted from the dependent files of the same application file, a dependent template file corresponding to each application file is generated.

[0018] Preferably, generating a target application file in a predetermined format based on the target configuration file and the dependent template file includes:

[0019] Based on the target configuration file and the target application corresponding dependency template file, generate a plurality of target dependency files corresponding to the target application;

[0020] Obtaining target dependency relationships between target dependency files based on target configuration file parsing;

[0021] The target application file is generated based on each of the target dependency files and the target dependency relationship.

[0022] Preferably, after obtaining the dependency template file corresponding to the target application to be deployed and the parameter configuration template file corresponding to the target application from the predetermined application repository, the method further includes:

[0023] Storing the dependent template file in a predetermined storage area;

[0024] After the target application file is deployed on each node in the target edge cluster through the cloud control center, the method further includes:

[0025] In response to the update operation for the target application, obtain the updated parameter configuration template file from the application repository;

[0026] Generate an updated target configuration file based on the configuration information of the target edge cluster obtained from the cloud control center and the updated parameter configuration template file;

[0027] generating an updated target application file in a predetermined format based on the updated target configuration file and the dependent template file stored in the storage area;

[0028] The updated target application file is sent to a cloud control center, so that the updated target application file is deployed on each node in the target edge cluster through the cloud control center.

[0029] Preferably, after generating a target application file in a predetermined format based on the target configuration file and the dependent template file, the method further comprises:

[0030] Storing the target application file and the version information corresponding to the target application file in a predetermined storage area;

[0031] After the target application file is deployed on each node in the target edge cluster through the cloud control center, the method further includes:

[0032] Responding to a rollback request for a target application;

[0033] Based on the version information of the target application in the rollback request, acquiring a historical application file corresponding to the version information from the predetermined storage area;

[0034] The historical application file is sent to a cloud control center, so that the historical application file is deployed on each node in the target edge cluster through the cloud control center to perform a rollback operation on the target application.

[0035] Preferably, sending the target application file to a cloud control center so as to deploy the target application file on each node in the target edge cluster through the cloud control center includes:

[0036] The target application file is sent to the cloud control center, so that the cloud control center can deploy each target dependency file in the target application file to the corresponding node based on the target dependency relationship in the target application file and in the order corresponding to the target dependency relationship.

[0037] To solve the above problems, the present application provides an application deployment device based on edge computing, including:

[0038] The first acquisition module is used to respond to the application deployment request and obtain the configuration information of the target edge cluster from the cloud control center;

[0039] A second acquisition module is used to acquire a dependency template file corresponding to the target application to be deployed and a parameter configuration template file corresponding to the target application from a predetermined application repository; the parameter configuration template file contains dependency relationships between the dependency files corresponding to the target application;

[0040] A first generating module, used to generate a target configuration file based on the configuration information and the parameter configuration template file;

[0041] A second generating module, used to generate a target application file in a predetermined format based on the target configuration file and the dependent template file;

[0042] A deployment module is used to send the target application file to a cloud control center so that the target application file is deployed on each node in the target edge cluster through the cloud control center.

[0043] To solve the above problems, the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above application deployment methods are implemented.

[0044] To solve the above problems, the present application provides an electronic device, comprising at least a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above application deployment methods when executing the computer program on the memory.

[0045] The application deployment method, device, storage medium and electronic device in the present application, by extracting the common variables and frequently modified parameters in each dependent file, generates a parameter configuration template file, which is convenient for the subsequent dynamic generation of the corresponding configuration file according to the node environment of the application deployment, and then generates the corresponding target dependency file based on the configuration file. At the same time, by generating a dependency template file corresponding to the application, the dependency template file is used to manage the dependency file, and the dependency relationship does not require additional processing, so that one-click deployment of the application is realized. That is, the target application file generated by the application client, containing the dependency relationship and the dependent file, is uniformly distributed to each server node through the cloud control center, avoiding cumbersome operations such as repeated modification of parameters, and the operation and maintenance personnel no longer need to repeatedly modify the application configuration parameters for each server node, which simplifies the complexity of application deployment, makes application deployment no longer cumbersome, and improves the efficiency of application deployment.

[0046] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0048] Figure 1 A flowchart of an application deployment method according to an embodiment of the present application;

[0049] Figure 2 This is a schematic diagram of splitting application files in an embodiment of the present application;

[0050] Figure 3 This is a schematic diagram of the process of generating an application file in an embodiment of the present application;

[0051] Figure 4 This is a schematic diagram of the application file deployment process of the embodiment of the present application;

[0052] Figure 5 This is a schematic diagram of the application file update process of the embodiment of the present application;

[0053] Figure 6 This is a schematic diagram of the application file rollback process in an embodiment of the present application;

[0054] Figure 7 This is a structural block diagram of an application deployment device according to another embodiment of the present application. DETAILED DESCRIPTION

[0055] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0056] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0057] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0058] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0059] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.

[0060] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0061] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0062] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0063] The present application embodiment provides an application deployment method, which can be specifically applied to the process of an application client deploying a target application to each node server in an edge cluster. Figure 1 As shown, the application deployment method in this embodiment includes:

[0064] Step S101, in response to the application deployment operation, obtain the configuration information of the target edge cluster from the cloud control center;

[0065] In this step, the application deployment operation may specifically include sliding a predetermined virtual button, dragging a predetermined virtual button, or clicking a predetermined virtual button. The configuration information in this step may specifically include information such as a domain name and an IP address. In the specific implementation of this step, before the application is deployed, the client communicates with the cloud control center to obtain the configuration information of the corresponding edge cluster, so as to determine which edge cluster to deploy the application to.

[0066] Step S102, obtaining a dependency template file corresponding to the target application to be deployed and a parameter configuration template file corresponding to the target application from a predetermined application repository; the parameter configuration template file contains dependency relationships between dependency files corresponding to the target application;

[0067] In the specific implementation process of this step, the application files of each application can be split in advance, that is, the dependent files in the application files are obtained, and then the parameter items that need to be used / modified frequently in the dependent files are extracted to form a parameter configuration template file, so as to facilitate subsequent modification for different deployment devices. At the same time, based on the remaining parameter items that have not been extracted from the dependent files of the application files, a dependent template file is generated, that is, each application is decomposed into Figure 2The form of the dependency template file plus the parameter configuration template file shown is convenient for adjusting parameters through the parameter configuration template file. In the figure, each application corresponds to a dependency template file, and the dependency template file can be composed of sub-dependency template files corresponding to each dependency file. For example, the dependency template file is composed of sub-dependency template 1, sub-dependency template 2 and sub-dependency template 3.

[0068] Step S103, generating a target configuration file based on the configuration information and the parameter configuration template file;

[0069] During the specific implementation of this step, the IP address, domain name and other information in the configuration information can be filled in the corresponding parameter item position in the parameter configuration template file, thereby generating a target configuration file corresponding to the server node of the application to be deployed, so that subsequent node servers can deploy the target application according to the configuration file.

[0070] Step S104, generating a target application file in a predetermined format based on the target configuration file and the dependent template file;

[0071] In the specific implementation process of this step, several target dependency files can be generated based on the dependency template file and the parameters in the configuration file, and then a target application file in a predetermined format is generated based on the dependency relationship in the target configuration file and combined with each target dependency file. Specifically, the predetermined format can be any format that conforms to the cloud control center.

[0072] Step S105: sending the target application file to a cloud control center, so that the target application file is deployed on each node in the target edge cluster through the cloud control center.

[0073] In this embodiment, after obtaining the target application file, the application can be deployed based on the target application file. The operation and maintenance personnel no longer need to repeatedly modify the application configuration parameters for each server node, which simplifies the complexity of application deployment, makes application deployment no longer cumbersome, and improves the efficiency of application deployment.

[0074] Another embodiment of the present application provides an application deployment method, comprising the following steps:

[0075] Step S201, generating a parameter configuration template file corresponding to the application file and a dependency template file corresponding to the target application based on each dependency file in each application file in advance;

[0076] In the specific implementation process of this step, each dependent file can be split based on the modification frequency and common rate of the parameters, that is, the common variable parameters and / or variable parameters with high modification frequency are extracted and processed, so as to obtain the dependent template file corresponding to the target application and the parameter configuration template file containing the extracted parameters. The specific process is as follows:

[0077] Based on the modification frequency and / or common rate of each parameter in each of the dependent files, a number of first parameter items whose modification frequency is greater than a predetermined number of times and common parameter items whose common rate is greater than a predetermined ratio are extracted; based on the first parameter items and common parameter items corresponding to the dependent files of the same application file, and the dependency relationship between the dependent files of the same application file, a parameter configuration template file corresponding to each application file is generated; based on the remaining parameter items that have not been extracted in the dependent files of the same application file, a dependency template file corresponding to each application file is generated.

[0078] Step S202: storing the parameter configuration template file, the dependent template file, the correspondence between the parameter configuration template file and the application file, and the correspondence between the dependent template file and the application file in the application warehouse.

[0079] In this step, by storing the parameter configuration template files, dependent template files, the correspondence between the parameter configuration template files and the application files, and the correspondence between the dependent template files and the application files in the application warehouse, it is convenient for subsequent application clients to quickly search the application warehouse according to the name of the target application to obtain the parameter configuration template files and each dependent template file corresponding to the target application.

[0080] Moreover, when the target application version is updated, the parameter configuration template files and dependent template files in the application warehouse can be updated, so that subsequent clients can obtain the updated parameter configuration template files and dependent template files from the warehouse, laying the foundation for generating updated target application files.

[0081] Step S203, in response to the application deployment operation, obtaining configuration information of the target edge cluster from the cloud control center;

[0082] In this step, obtaining configuration information lays the foundation for generating a target configuration file corresponding to the edge cluster. Therefore, the operation and maintenance personnel do not need to repeatedly modify the configuration parameters for each server node in the target edge cluster.

[0083] Step S204, obtaining a dependency template file corresponding to the target application to be deployed and a parameter configuration template file corresponding to the target application from a predetermined application repository; the parameter configuration template file contains dependency relationships between dependency files corresponding to the target application;

[0084] In the specific implementation process of this step, the corresponding relationship in the application warehouse can be searched through the target application to obtain the dependency template file corresponding to the target application and the parameter configuration template file corresponding to the target application.

[0085] Step S205, generating a target configuration file based on the configuration information and the parameter configuration template file;

[0086] In the specific implementation process of this step, the IP address and domain name of each node server in the configuration information can be written into the parameter configuration template file to obtain the target configuration file. Since the parameter configuration template file contains the dependency relationship of each dependent file, the target configuration file also contains the dependency relationship.

[0087] Step S206, based on the target configuration file and the dependency template file corresponding to the target application, generate a target dependency file corresponding to the target application; based on the target configuration file, parse and obtain the target dependency relationship between the target dependency files; based on the target dependency files and the target dependency relationship, generate the target application file. In this embodiment, the dependency file can be a target dependency component.

[0088] In this step, the target application file generation process can be as follows: Figure 3 As shown, after the application client obtains the configuration information from the cloud control center, it can generate a target configuration file based on the configuration information and the parameter configuration template file, and then generate each target dependency file in combination with the dependency template file obtained from the application warehouse, that is, obtain the target application file.

[0089] Step S207, sending the target application file to the cloud control center, so that the cloud control center can deploy each target dependency file in the target application file to the corresponding node based on the target dependency relationship in the target application file and in the order corresponding to the target dependency relationship.

[0090] In the specific implementation process of this step, after the application client generates an application file that conforms to the format of the cloud control center, it can communicate with the cloud control center and deploy the target application on each server node of the edge cluster through the cloud control center. The specific process can be as follows: Figure 4 .

[0091] In the specific implementation process of this embodiment, after obtaining the dependency template file corresponding to the target application to be deployed and the parameter configuration template file corresponding to the target application from the predetermined application warehouse, the dependency template file can also be stored in a predetermined storage area. Therefore, when it is necessary to update the version of the target application of the server node, the updated parameter configuration template file will be stored in the application warehouse in advance. Then the application client can respond to the update operation for the target application and obtain the updated parameter configuration template file from the application warehouse; the application client generates an updated target configuration file based on the configuration information of the target edge cluster obtained from the cloud control center and the updated parameter configuration template file; then the application client generates an updated target application file in a predetermined format based on the updated target configuration file and the dependency template file saved in the storage area; finally, the application client sends the updated target application file to the cloud control center, so that the updated target application file can be deployed on each node in the target edge cluster through the cloud control center. The specific application update process can be as follows Figure 5 shown.

[0092] In the specific implementation process of this embodiment, after generating a target application file in a predetermined format based on the target configuration file and the dependent template file, it also includes: storing the target application file and the version information corresponding to the target application file in a predetermined storage area. Therefore, when it is necessary to roll back the application of the server node to the previous version, the application client can respond to the rollback request for the target application; based on the version information of the target application in the rollback request, obtain the historical application file corresponding to the version information from the predetermined storage area; finally, send the historical application file to the cloud control center, so that the cloud control center can deploy the historical application file on each node in the target edge cluster to roll back the target application. The specific application rollback process in this embodiment can be as follows: Figure 6 shown.

[0093] In this embodiment, by packaging the application and dependent components / dependent files, constructing a dependent template file and extracting common parameters to construct a parameter configuration template file, the application management client will parse and execute the dependent template file, the parameter configuration template file and the parameter list. Users do not need to care about numerous dependent components, but only need to modify the corresponding parameters in the parameter configuration target file according to the environment to deploy, update or roll back the application, which greatly simplifies the operation and maintenance process, making it more convenient and efficient. It avoids cumbersome operations such as repeated parameter modification.

[0094] Another embodiment of the present application provides an application deployment device, which can be specifically applied to an application client, such as Figure 7As shown, the application deployment device in this embodiment includes:

[0095] The first acquisition module 1 is used to respond to the application deployment operation and obtain the configuration information of the target edge cluster from the cloud control center;

[0096] The second acquisition module 2 is used to acquire, from a predetermined application repository, a dependency template file corresponding to the dependency file in the target application to be deployed and a parameter configuration template file corresponding to the target application; the parameter configuration template file contains dependency relationships between the dependency files corresponding to the target application;

[0097] A first generating module 3, used to generate a target configuration file based on the configuration information and the parameter configuration template file;

[0098] A second generating module 4, used to generate a target application file in a predetermined format based on the target configuration file and the dependent template file;

[0099] The deployment module 5 is used to send the target application file to the cloud control center, so that the target application file is deployed on each node in the target edge cluster through the cloud control center.

[0100] In the specific implementation process of this embodiment, before responding to the application deployment operation, the application deployment device also includes: a template file generation module and a storage module, the template file generation module is used to: generate a parameter configuration template file corresponding to the application file and a dependency template file corresponding to the application file based on each dependency file in each application file in advance; the storage module is used to store the parameter configuration template file, the dependency template file, the correspondence between the parameter configuration template file and the application file, and the correspondence between the dependency template file and the application file in the application warehouse.

[0101] In the specific implementation process of this embodiment, the template file generation module includes an extraction unit, a parameter configuration template file generation unit and a dependent template file generation unit. The extraction unit is used to extract a number of first parameter items whose modification frequency is greater than a predetermined number of times based on the modification frequency of each parameter in each dependent file; the parameter configuration template file generation unit is used to generate a parameter configuration template file corresponding to each application file based on each first parameter item corresponding to each dependent file of the same application file and the dependency relationship between each dependent file of the same application file; the dependent template file generation unit is used to generate a dependent template file corresponding to each application file based on the remaining parameter items not extracted in each dependent file of the same application file.

[0102] In the specific implementation process of this embodiment, the second generation module includes: a target dependency file generation unit, a parsing unit and an application file generation unit. The target dependency file generation unit is used to generate a number of target dependency files corresponding to the target application based on the target configuration file and the dependency template file corresponding to the target application; the parsing unit is used to obtain the target dependency relationship between each of the target dependency files based on the target configuration file; the application file generation unit is used to generate the target application file based on each of the target dependency files and the target dependency relationship.

[0103] In the specific implementation process of this embodiment, the application deployment device also includes a saving module and an updating module. The saving module is used to: after obtaining the dependency template file corresponding to the target application to be deployed and the parameter configuration template file corresponding to the target application from the predetermined application warehouse, store the dependency template file in a predetermined storage area. The updating module is used to: after the target application file is deployed on each node in the target edge cluster through the cloud control center, in response to the update operation for the target application, obtain the updated parameter configuration template file from the application warehouse; based on the configuration information of the target edge cluster obtained from the cloud control center and the updated parameter configuration template file, generate an updated target configuration file; the second generating module is also used to: based on the updated target configuration file and the dependency template file saved in the storage area, generate an updated target application file in a predetermined format. The deployment module is also used to: send the updated target application file to the cloud control center, so that the updated target application file is deployed on each node in the target edge cluster through the cloud control center.

[0104] In the specific implementation process of this embodiment, the application deployment device also includes a rollback module, and the saving module is also used to: after generating a target application file in a predetermined format based on the target configuration file and the dependent template file, store the target application file and the version information corresponding to the target application file in a predetermined storage area. The rollback module is used to: after deploying the target application file on each node in the target edge cluster through the cloud control center, respond to a rollback request for the target application; based on the version information of the target application in the rollback request, obtain the historical application file corresponding to the version information from the predetermined storage area; the deployment module is also used to: send the historical application file to the cloud control center, so that the historical application file is deployed on each node in the target edge cluster through the cloud control center, so as to roll back the target application.

[0105] In the specific implementation process of this embodiment, the deployment module is specifically used to: send the target application file to the cloud control center, so that the cloud control center can deploy each target dependency file in the target application file to the corresponding node based on the target dependency relationship in the target application file and in the order corresponding to the target dependency relationship.

[0106] The application deployment device in this embodiment generates a parameter configuration template file by extracting the common variables and frequently modified parameters in each dependency file, so as to facilitate the subsequent dynamic generation of corresponding configuration files according to the node environment of application deployment, and then generate corresponding target dependency files based on the configuration files. At the same time, by generating a dependency template file corresponding to the application, the dependency template file is used to manage the dependency files, and the dependency relationship does not require additional processing, thereby realizing one-click deployment of the application. That is, the target application files generated by the application client, including dependency relationships and dependency files, are uniformly distributed to each server node through the cloud control center, avoiding tedious operations such as repeated modification of parameters. Operation and maintenance personnel no longer need to repeatedly modify application configuration parameters for each server node, which simplifies the complexity of application deployment, makes application deployment no longer cumbersome, and improves the efficiency of application deployment.

[0107] Another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the following method steps are implemented:

[0108] Step 1: Respond to the application deployment operation and obtain the configuration information of the target edge cluster from the cloud control center;

[0109] Step 2: Obtain a dependency template file corresponding to the target application to be deployed and a parameter configuration template file corresponding to the target application from a predetermined application repository; the parameter configuration template file contains dependency relationships between dependency files corresponding to the target application;

[0110] Step 3: Generate a target configuration file based on the configuration information and the parameter configuration template file;

[0111] Step 4: Generate a target application file in a predetermined format based on the target configuration file and the dependent template file;

[0112] Step 5: Send the target application file to the cloud control center, so that the target application file is deployed on each node in the target edge cluster through the cloud control center.

[0113] The specific implementation process of the above method steps can refer to the embodiments of any of the above application deployment methods, and this embodiment will not be repeated here.

[0114] The storage medium in this application generates a parameter configuration template file by extracting the common variables and frequently modified parameters in each dependency file, so as to facilitate the subsequent dynamic generation of corresponding configuration files according to the node environment of application deployment, and then generate corresponding target dependency files based on the configuration files. At the same time, by generating a dependency template file corresponding to the application, the dependency template file is used to manage the dependency files, and the dependency relationship does not require additional processing, thereby realizing one-click deployment of the application. That is, the target application files generated by the application client, including dependency relationships and dependency files, are uniformly distributed to each server node through the cloud control center, avoiding cumbersome operations such as repeated modification of parameters, and operation and maintenance personnel no longer need to repeatedly modify the application configuration parameters for each server node, which simplifies the complexity of application deployment, makes application deployment no longer cumbersome, and improves the efficiency of application deployment.

[0115] Another embodiment of the present application provides an electronic device, comprising at least a memory and a processor, wherein the memory stores a computer program, and the processor implements the following method steps when executing the computer program in the memory:

[0116] Step 1: Respond to the application deployment operation and obtain the configuration information of the target edge cluster from the cloud control center;

[0117] Step 2: Obtain a dependency template file corresponding to the target application to be deployed and a parameter configuration template file corresponding to the target application from a predetermined application repository; the parameter configuration template file contains dependency relationships between dependency files corresponding to the target application;

[0118] Step 3: Generate a target configuration file based on the configuration information and the parameter configuration template file;

[0119] Step 4: Generate a target application file in a predetermined format based on the target configuration file and the dependent template file;

[0120] Step 5: Send the target application file to the cloud control center, so that the target application file is deployed on each node in the target edge cluster through the cloud control center.

[0121] The specific implementation process of the above method steps can refer to the embodiments of any of the above application deployment methods, and this embodiment will not be repeated here.

[0122] The electronic device in the present application generates a parameter configuration template file by extracting the common variables and frequently modified parameters in each dependency file, so as to facilitate the subsequent dynamic generation of corresponding configuration files according to the node environment of application deployment, and then generate corresponding target dependency files based on the configuration files. At the same time, by generating a dependency template file corresponding to the application, the dependency template file is used to manage the dependency files, and the dependency relationship does not require additional processing, thereby realizing one-click deployment of the application. That is, the target application files generated by the application client, including dependency relationships and dependency files, are uniformly distributed to each server node through the cloud control center, avoiding cumbersome operations such as repeated modification of parameters, and operation and maintenance personnel no longer need to repeatedly modify the application configuration parameters for each server node, which simplifies the complexity of application deployment, makes application deployment no longer cumbersome, and improves the efficiency of application deployment.

[0123] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. An application deployment method, characterized in that: include: In response to the application deployment operation, obtain the configuration information of the target edge cluster from the cloud control center; Acquire a dependency template file corresponding to the target application to be deployed and a parameter configuration template file corresponding to the target application from a predetermined application repository; the parameter configuration template file contains dependency relationships between dependency files corresponding to the target application; The parameter configuration template file includes a number of parameter items obtained by performing parameter extraction on each dependent file of the target application in advance, and the dependent template file includes a number of remaining parameter items of each dependent file of the target application after performing parameter extraction; Generate a target configuration file based on the configuration information and the parameter configuration template file; Based on the target configuration file and the dependent template file, generate a target application file in a predetermined format; The target application file is sent to a cloud control center, so that the target application file is deployed on each node in the target edge cluster through the cloud control center.

2. The method according to claim 1, characterized in that Before responding to the application deployment operation, the method further includes: Generate a parameter configuration template file corresponding to the application file and a dependency template file corresponding to the application file based on each dependency file in each application file in advance; The parameter configuration template file, the dependent template file, the correspondence between the parameter configuration template file and the application file, and the correspondence between the dependent template file and the application file are stored in the application warehouse.

3. The method according to claim 2, characterized in that The generating of the parameter configuration template file corresponding to the application file and the dependency template file corresponding to the application file based on the dependency files in the application files in advance includes: Based on the modification frequency of each parameter in each of the dependent files, extracting a plurality of first parameter items whose modification frequency is greater than a predetermined number of times; Based on the first parameter items corresponding to the dependent files of the same application file and the dependency relationship between the dependent files of the same application file, generate a parameter configuration template file corresponding to each application file; Based on the remaining parameter items that are not extracted from the dependent files of the same application file, a dependent template file corresponding to each application file is generated.

4. The method according to claim 1, characterized in that Based on the target configuration file and the dependent template file, a target application file in a predetermined format is generated, including: Based on the target configuration file and the target application corresponding dependency template file, generate a plurality of target dependency files corresponding to the target application; Obtaining target dependency relationships between target dependency files based on target configuration file parsing; The target application file is generated based on each of the target dependency files and the target dependency relationship.

5. The method according to claim 1, characterized in that After acquiring the dependency template file corresponding to the target application to be deployed and the parameter configuration template file corresponding to the target application from the predetermined application repository, the method further includes: Storing the dependent template file in a predetermined storage area; After the target application file is deployed on each node in the target edge cluster through the cloud control center, the method further includes: In response to the update operation for the target application, obtain the updated parameter configuration template file from the application repository; Generate an updated target configuration file based on the configuration information of the target edge cluster obtained from the cloud control center and the updated parameter configuration template file; generating an updated target application file in a predetermined format based on the updated target configuration file and the dependent template file stored in the storage area; The updated target application file is sent to a cloud control center, so that the updated target application file is deployed on each node in the target edge cluster through the cloud control center.

6. The method according to claim 1, characterized in that After generating a target application file in a predetermined format based on the target configuration file and the dependent template file, the method further includes: Storing the target application file and the version information corresponding to the target application file in a predetermined storage area; After the target application file is deployed on each node in the target edge cluster through the cloud control center, the method further includes: Responding to a rollback request for a target application; Based on the version information of the target application in the rollback request, acquiring a historical application file corresponding to the version information from the predetermined storage area; The historical application file is sent to a cloud control center, so that the historical application file is deployed on each node in the target edge cluster through the cloud control center to perform a rollback operation on the target application.

7. The method according to claim 1, characterized in that The sending the target application file to the cloud control center so as to deploy the target application file on each node in the target edge cluster through the cloud control center includes: The target application file is sent to the cloud control center, so that the cloud control center can deploy each target dependency file in the target application file to the corresponding node based on the target dependency relationship in the target application file and in the order corresponding to the target dependency relationship.

8. An application deployment device based on edge computing, characterized in that: include: The first acquisition module is used to respond to the application deployment request and obtain the configuration information of the target edge cluster from the cloud control center; A second acquisition module is used to acquire a dependency template file corresponding to the target application to be deployed and a parameter configuration template file corresponding to the target application from a predetermined application repository; the parameter configuration template file contains dependency relationships between the dependency files corresponding to the target application; The parameter configuration template file includes a number of parameter items obtained by performing parameter extraction on each dependent file of the target application in advance, and the dependent template file includes a number of remaining parameter items of each dependent file of the target application after performing parameter extraction; A first generating module, used to generate a target configuration file based on the configuration information and the parameter configuration template file; A second generating module, used to generate a target application file in a predetermined format based on the target configuration file and the dependent template file; A deployment module is used to send the target application file to a cloud control center so that the target application file is deployed on each node in the target edge cluster through the cloud control center.

9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the application deployment method described in any one of claims 1 to 7 are implemented.

10. An electronic device, characterized in that: The device at least comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the application deployment method according to any one of claims 1 to 7 when executing the computer program on the memory.

Citation Information

Patent Citations

  • Automatic deployment method of micro-service website

    CN110224869A

  • Resource creation method and device and server

    CN110750335A

  • Container cloud-based application creation method and device, electronic equipment and storage medium

    CN111736818A

  • Project deployment method and device

    CN114416112A

  • Service deployment method and device, computer equipment and storage medium

    CN115185550A