CN116260860A - Application deployment method and device, storage medium and electronic equipment - Google Patents

Application deployment method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116260860A
CN116260860A CN202211581913.8A CN202211581913A CN116260860A CN 116260860 A CN116260860 A CN 116260860A CN 202211581913 A CN202211581913 A CN 202211581913A CN 116260860 A CN116260860 A CN 116260860A
Authority
CN
China
Prior art keywords
file
application
target
dependency
template file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211581913.8A
Other languages
Chinese (zh)
Other versions
CN116260860B (en
Inventor
黄超
杜杨浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Original Assignee
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd filed Critical Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Priority to CN202211581913.8A priority Critical patent/CN116260860B/en
Publication of CN116260860A publication Critical patent/CN116260860A/en
Application granted granted Critical
Publication of CN116260860B publication Critical patent/CN116260860B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an application deployment method, an application deployment device, a storage medium and electronic equipment, wherein the method comprises the following steps: responding to the application deployment operation, and acquiring configuration information of a target edge cluster from a cloud control center; acquiring a dependent template file corresponding to a target application to be deployed and a parameter configuration template file corresponding to the target application from a preset application warehouse; the parameter configuration template file comprises a dependency relationship between dependency files corresponding to the target application; generating a target configuration file based on the configuration information and the parameter configuration template file; generating a target application file in a preset format based on the target configuration file and each dependent template file; and 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 can improve the application deployment efficiency.

Description

Application deployment method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an application deployment method, an application deployment device, a storage medium, and an electronic device.
Background
Because the large-scale application is formed by combining a plurality of dependent applications/dependent components, when the large-scale application is deployed on the nodes, an operation and maintenance personnel firstly needs to know the dependent sequence among the dependent applications, then logs on each node, deploys the dependent applications according to the dependent application sequence according to different modified configuration parameters of the node environment, and finally the application on each node can be normally started
For large complex applications, the dependency components can multiply with the complexity of the large application, and the dependencies can also become very complex in the order between them, requiring extra care and care for operation by the operation and maintenance personnel. Meanwhile, as the environments of all the nodes are different, the operation and maintenance personnel need to repeatedly modify the application configuration parameters, so that the application deployment process becomes complicated and complex, and the application deployment efficiency is lower.
Disclosure of Invention
In view of the above, the invention provides an application deployment method, an application deployment device, a storage medium and an electronic device, and aims to solve the problems of complicated and complex application deployment process and low application deployment efficiency in the prior art.
In order to solve the above problems, the present application provides an application deployment method, including:
responding to the application deployment operation, and acquiring configuration information of a target edge cluster from a cloud control center;
acquiring a dependent template file corresponding to a target application to be deployed and a parameter configuration template file corresponding to the target application from a preset application warehouse; the parameter configuration template file comprises the dependency relationship among all the dependency files corresponding to the target application;
generating a target configuration file based on the configuration information and the parameter configuration template file;
generating a target application file in a preset format based on the target configuration file and the dependent template file;
and 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.
Preferably, before responding to the application deployment operation, the method further comprises:
generating a parameter configuration template file corresponding to the application file and a dependency template file corresponding to the application file on the basis of each dependency file in each application file in advance;
and storing the parameter configuration template file, the dependence template file, the corresponding relation between the parameter configuration template file and the application file and the corresponding relation between the dependence template file and the application file into the application warehouse.
Preferably, the generating, in advance, 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 includes:
extracting a plurality of first parameter items with the modification frequency larger than a preset number of times based on the modification frequency of each parameter in each dependent file;
generating 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 among each dependent file of the same application file;
and generating a dependent template file corresponding to each application file based on the unextracted residual parameter items in each dependent file of the same application file.
Preferably, generating a target application file in a predetermined format based on the target configuration file and the dependency template file includes:
generating a plurality of target dependent files corresponding to the target application based on the target configuration file and the target application corresponding dependent template file;
obtaining target dependency relations among the target dependency files based on target configuration file analysis;
and generating the target application file based on each target dependency file and the target dependency relationship.
Preferably, 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 into 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 comprises:
responding to the updating operation aiming at the target application, and acquiring an updated parameter configuration template file from an 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, generating an updated target configuration file;
generating an updated target application file in a preset format based on the updated target configuration file and the dependency template file stored in the storage area;
and sending the updated target application file to a cloud control center so as to deploy the updated target application file on each node in the target edge cluster through the cloud control center.
Preferably, after generating the target application file in the predetermined format based on the target configuration file and the dependent template file, the method further includes:
storing version information corresponding to the target application file into a preset 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 comprises:
responding to a rollback request for a target application;
based on the version information of the target application in the rollback request, acquiring a history application file corresponding to the version information from the preset storage area;
and sending the history application file to a cloud control center, and deploying the history application file on each node in the target edge cluster through the cloud control center so as to perform rollback operation on the target application.
Preferably, the 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:
and sending the target application files to a cloud control center so as to deploy each target dependency file in the target application files to corresponding nodes respectively through the cloud control center based on the target dependency relationships in the target application files according to the sequence corresponding to the target dependency relationships.
To solve the above problems, the present application provides an application deployment device based on edge computing, including:
the first acquisition module is used for responding to the application deployment request and acquiring configuration information of the target edge cluster from the cloud control center;
the second acquisition module is used for acquiring a dependent template file corresponding to the target application to be deployed and a parameter configuration template file corresponding to the target application from a preset application warehouse; the parameter configuration template file comprises the dependency relationship among all the dependency files corresponding to the target application;
the first generation module is used for generating a target configuration file based on the configuration information and the parameter configuration template file;
the second generation module is used for generating a target application file in a preset format based on the target configuration file and the dependence template file;
and the deployment module is used for 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.
To solve the above-mentioned problems, the present application provides a storage medium storing a computer program which, when executed by a processor, implements the steps of the application deployment method of any one of the above.
In order to solve the above problems, the present application provides an electronic device, at least including a memory, and a processor, where the memory stores a computer program, and the processor implements the steps of the application deployment method described in any one of the above when executing the computer program on the memory.
According to the application deployment method, the device, the storage medium and the electronic equipment, the parameter configuration template file is generated by extracting the common variable and the frequently modified parameter in each dependent file, so that the corresponding configuration file is generated dynamically and conveniently according to the node environment of application deployment, and the corresponding target dependent file is generated based on the configuration file. Meanwhile, the dependency template file corresponding to the application is generated, the dependency template file is utilized to manage the dependency file, and the dependency relationship does not need additional processing, so that one-key deployment of the application is realized. That is, the cloud control center uniformly distributes the target application files which are generated by the application client and contain the dependency relationship and the dependency files to each server node, so that tedious operations such as repeated parameter modification and the like are avoided, operation and maintenance personnel do not need to repeatedly modify the application configuration parameters for each server node, the complexity of application deployment is simplified, the application deployment is not complicated, and the efficiency of application deployment is improved.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flowchart of an application deployment method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating the splitting of application files according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a process for generating an application file according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an application file deployment process according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating an update process of an application file according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an application file rollback process according to an embodiment of the present application;
fig. 7 is a block diagram of an application deployment apparatus according to another embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the accompanying drawings.
It should be understood that various modifications may be made to the embodiments of the application herein. Therefore, the above description should not be taken as limiting, but merely as exemplification of the embodiments. Other modifications within the scope and spirit of this application will occur to those skilled in the art.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
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.
It is also to be understood that, although the present application has been described with reference to some specific examples, those skilled in the art can certainly realize many other equivalent forms of the present application.
The foregoing and other aspects, features, and advantages of the present application will become more apparent in light of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application will be described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application with unnecessary or excessive detail. Therefore, specific structural and functional details disclosed herein are not intended to be limiting, but merely serve as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the word "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments as per the application.
The embodiment of the application deployment method can be applied to the process that an application client deploys a target application to each node server in an edge cluster. As shown in fig. 1, the application deployment method in this embodiment includes:
step S101, responding to application deployment operation, and acquiring configuration information of a target edge cluster from a cloud control center;
in this step, the application deployment operation may specifically be an operation of 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, an IP address, and the like. In the specific implementation process, before application deployment, the client side acquires configuration information of the corresponding edge cluster through communication with the cloud control center, so as to determine which edge cluster is subjected to application deployment.
Step S102, obtaining a dependent template file corresponding to a target application to be deployed and a parameter configuration template file corresponding to the target application from a preset application warehouse; the parameter configuration template file comprises the dependency relationship among all the dependency files corresponding to the target application;
in the specific implementation process, the application files of each application can be split in advance, namely each dependent file in the application files is acquired, and then parameter items which are frequently required to be used/modified in the dependent files are extracted to form a parameter configuration template file, so that the subsequent modification of different deployment devices is facilitated. Meanwhile, according to the unextracted residual parameter items in each dependent file of the application file, a dependent template file is generated, namely, each application is decomposed and split into a form of the dependent template file and a parameter configuration template file as shown in fig. 2, so that parameter adjustment is facilitated through the parameter configuration template file. Each application in the graph corresponds to a dependent template file, and the dependent template file can be composed of sub-dependent template files corresponding to each dependent file. For example, the dependent template file is composed of a sub-dependent template 1, a sub-dependent template 2, and a sub-dependent template 3.
Step S103, generating a target configuration file based on the configuration information and the parameter configuration template file;
in the implementation process, the method can fill in the information such as IP address, domain name and the like in the configuration information to the position of the corresponding parameter item in the parameter configuration template file, so that the target configuration file corresponding to the server node of the application to be deployed is generated, and the target application can be conveniently deployed by the subsequent node server according to the configuration file.
Step S104, generating a target application file in a preset format based on the target configuration file and the dependent template file;
in the implementation process, a plurality of target dependency files can be generated based on the dependency template files and parameters in the configuration files, then target application files with preset formats can be generated by combining the target dependency files based on the dependency relations in the target configuration files, and the preset formats can be any format conforming to a cloud control center.
Step S105, sending the target application file to a cloud control center, so that the cloud control center deploys the target application file on each node in the target edge cluster.
In this embodiment, after the target application file is obtained, application deployment can be performed based on the target application file, and an operation and maintenance personnel does not need to repeatedly modify application configuration parameters for each server node, so that the complexity of application deployment is simplified, the application deployment is not complicated, and the efficiency of application deployment is improved.
Another embodiment of the present application provides an application deployment method, including the following steps:
step S201, generating a parameter configuration template file corresponding to an application file and a dependency template file corresponding to a target application in advance based on each dependency file in each application file;
in the implementation process, the method can split each dependent file based on the modification frequency and the common rate of the parameters, namely, the common variable parameters and/or variable parameters with higher modification frequency are extracted and processed, so that the dependent template file corresponding to the target application and the parameter configuration template file containing the extracted parameters are obtained. The specific process is as follows:
extracting a plurality of first parameter items with the modification frequency larger than a preset number of times and common parameter items with the common rate larger than a preset proportion based on the modification frequency and/or the common rate of each parameter in each dependent file; generating a parameter configuration template file corresponding to each application file based on each first parameter item and common 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; and generating a dependent template file corresponding to each application file based on the unextracted residual parameter items in each dependent file of the same application file.
Step S202, storing the parameter configuration template file, the dependence template file, the corresponding relation between the parameter configuration template file and the application file and the corresponding relation between the dependence template file and the application file into the application warehouse.
In this step, by storing 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 repository, the subsequent application client can conveniently and quickly search the application repository according to the name of the target application, so as to obtain the parameter configuration template file and each dependency template file corresponding to the target application.
And after the target application version is updated, the parameter configuration template file and the dependency template file in the application warehouse can be updated, so that a subsequent client can conveniently acquire the updated parameter configuration template file and each dependency template file from the warehouse, and a foundation is laid for generating the updated target application file.
Step S203, responding to the application deployment operation, and acquiring configuration information of a target edge cluster from a cloud control center;
in the step, a foundation is laid for generating a target configuration file corresponding to the edge cluster by acquiring the configuration information, so that operation and maintenance personnel are not required to repeatedly modify configuration parameters for each server node in the target edge cluster.
Step S204, obtaining a dependent template file corresponding to a target application to be deployed and a parameter configuration template file corresponding to the target application from a preset application warehouse; the parameter configuration template file comprises the dependency relationship among all the dependency files corresponding to the target application;
in the specific implementation process, the corresponding relation in the application warehouse can be searched through the target application, so that the dependent template file corresponding to the target application and the parameter configuration template file corresponding to the target application are obtained.
Step S205, generating a target configuration file based on the configuration information and the parameter configuration template file;
in the implementation process, the IP address, domain name and the like of each node server in the configuration information can be written into the parameter configuration template file, so that the target configuration file is obtained. Because the parameter configuration template file contains the dependency relationship of each dependency file, the target configuration file also contains the dependency relationship.
Step S206, generating a target dependency file corresponding to the target application based on the target configuration file and the dependency template file corresponding to the target application; obtaining target dependency relations among the target dependency files based on target configuration file analysis; and generating the target application file based on each target dependency file and the target dependency relationship. In this implementation, the dependency file may be the target dependency component.
In this step, the process of generating the target application file may be as shown in fig. 3, that is, after the application client obtains the configuration information from the cloud control center, the target application file may be generated by combining the configuration information with the parameter configuration template file, and then each target dependency file may be generated by combining the dependency template file obtained from the application repository, so as to obtain the target application file.
Step S207, the target application files are sent to a cloud control center, so that all target dependency files in the target application files are deployed to corresponding nodes through the cloud control center according to the corresponding sequence of the target dependency relationships based on the target dependency relationships in the target application files.
In the implementation process, after the application client generates the application file conforming to the format of the cloud control center, the application client can communicate with the cloud control center, and the cloud control center deploys the target application on each server node of the edge cluster, and the implementation process can be as shown in fig. 4.
In the implementation process of the embodiment, after the dependency template file corresponding to the target application to be deployed and the parameter configuration template file corresponding to the target application are obtained from the predetermined application repository, the dependency template file may be further stored in the predetermined storage area. Therefore, when the version of the target application of the server node needs to be updated, the updated parameter configuration template file is stored in the application warehouse in advance. Then the application client can respond to the updating operation aiming at the target application and acquire the updated parameter configuration template file from the application warehouse; the application client side generates an updated target configuration file based on the configuration information of the target edge cluster acquired from the cloud control center and the updated parameter configuration template file; then the application client generates an updated target application file in a preset format based on the updated target configuration file and the dependency template file stored in the storage area; and finally, the application client sends the updated target application file to a cloud control center so as to deploy the updated target application file on each node in the target edge cluster through the cloud control center. A specific application update procedure may be as shown in fig. 5.
In a specific implementation process of this embodiment, after generating the target application file in the predetermined format based on the target configuration file and the dependency template file, the method further includes: and storing the version information corresponding to the target application file into a preset storage area. Thus, when the application of the server node needs to be rolled back 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, acquiring a history application file corresponding to the version information from the preset storage area; and finally, the history application file is sent to a cloud control center, so that the history application file is deployed on each node in the target edge cluster through the cloud control center, and rollback operation is carried out on the target application. The specific application rollback procedure in this embodiment may be as shown in fig. 6.
In this embodiment, by packaging the application and the dependent component/dependent file, the dependent template file is constructed, the common parameter construction parameter configuration template file is extracted, and the application management client analyzes and executes the dependent template file, the construction parameter configuration template file and the parameter list. The user does not need to care about a plurality of dependent components, and can deploy, update or rollback the application only by modifying corresponding parameters in the environment modification parameter configuration target file, so that the operation and maintenance flow is greatly simplified, and the operation and maintenance flow is more convenient and efficient. And repeated operations of parameter modification and the like are avoided.
Another embodiment of the present application provides an application deployment device, which may be specifically applied to an application client, as shown in fig. 7, where the application deployment device in this embodiment includes:
the first acquisition module 1 is used for responding to the application deployment operation and acquiring configuration information of the target edge cluster from the cloud control center;
the second acquisition module 2 is used for acquiring a dependency template file corresponding to a dependency file in a target application to be deployed and a parameter configuration template file corresponding to the target application from a preset application warehouse; the parameter configuration template file comprises the dependency relationship among all the dependency files corresponding to the target application;
a first generating module 3, configured to generate a target configuration file based on the configuration information and the parameter configuration template file;
a second generating module 4, configured to generate a target application file in a predetermined format based on the target configuration file and the dependency template file;
and the deployment module 5 is used for 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.
In a specific implementation process of this embodiment, before responding to an application deployment operation, the application deployment apparatus further includes: the system comprises a template file generation module and a storage module, wherein the template file generation module is used for: generating a parameter configuration template file corresponding to the application file and a dependency template file corresponding to the application file on the basis of each dependency file in each application file in advance; the storage module is used for storing the parameter configuration template file, the dependence template file, the corresponding relation between the parameter configuration template file and the application file and the corresponding relation between the dependence template file and the application file to the application warehouse.
In a specific implementation process of this embodiment, the template file generating module includes an extracting unit, a parameter configuration template file generating unit, and a dependent template file generating unit. The extraction unit is used for: extracting a plurality of first parameter items with the modification frequency larger than a preset number of times based on the modification frequency of each parameter in each dependent file; the parameter configuration template file generating unit is used for: generating 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 among each dependent file of the same application file; the dependent template file generating unit is used for: and generating a dependent template file corresponding to each application file based on the unextracted residual parameter items in each dependent file of the same application file.
In a specific implementation process of this embodiment, the second generating module includes: the target dependent file generation unit, the analysis unit and the application file generation unit are used for: generating a plurality of target dependent files corresponding to the target application based on the target configuration file and the dependent template file corresponding to the target application; the analysis unit is used for: obtaining target dependency relations among the target dependency files based on target configuration file analysis; the application file generation unit is used for: and generating the target application file based on each target dependency file and the target dependency relationship.
In a specific implementation process of this embodiment, the application deployment device further includes a storage module and an update module, where the storage module is configured to: after a dependency template file corresponding to a target application to be deployed and a parameter configuration template file corresponding to the target application are acquired from a predetermined application warehouse, the dependency template file is stored in a predetermined storage area. The updating module is used for: after the target application file is deployed on each node in the target edge cluster through a cloud control center, responding to updating operation aiming at the target application, and acquiring an updated parameter configuration template file from an 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, generating an updated target configuration file; the second generation module is further configured to: and generating an updated target application file in a preset format based on the updated target configuration file and the dependency template file stored in the storage area. The deployment module is further configured to: and sending the updated target application file to a cloud control center so as to deploy the updated target application file on each node in the target edge cluster through the cloud control center.
In a specific implementation process of this embodiment, the application deployment device further includes a rollback module, and the storage module is further configured to: and after generating a target application file in a preset format based on the target configuration file and the dependent template file, storing the target application file and version information corresponding to the target application file into a preset storage area. The rollback module is used for: after the target application file is deployed on each node in the target edge cluster through a cloud control center, responding to a rollback request for the target application; based on the version information of the target application in the rollback request, acquiring a history application file corresponding to the version information from the preset storage area; the deployment module is further configured to: and sending the history application file to a cloud control center, and deploying the history application file on each node in the target edge cluster through the cloud control center so as to perform rollback operation on the target application.
In a specific implementation process of this embodiment, the deployment module is specifically configured to: and sending the target application files to a cloud control center so as to deploy each target dependency file in the target application files to corresponding nodes respectively through the cloud control center based on the target dependency relationships in the target application files according to the sequence corresponding to the target dependency relationships.
According to the application deployment device, the parameter configuration template file is generated by extracting the common variable and the frequently modified parameter in each dependent file, so that the corresponding configuration file can be generated dynamically according to the node environment of application deployment, and the corresponding target dependent file is generated based on the configuration file. Meanwhile, the dependency template file corresponding to the application is generated, the dependency template file is utilized to manage the dependency file, and the dependency relationship does not need additional processing, so that one-key deployment of the application is realized. That is, the cloud control center uniformly distributes the target application files which are generated by the application client and contain the dependency relationship and the dependency files to each server node, so that tedious operations such as repeated parameter modification and the like are avoided, operation and maintenance personnel do not need to repeatedly modify the application configuration parameters for each server node, the complexity of application deployment is simplified, the application deployment is not complicated, and the efficiency of application deployment is improved.
Another embodiment of the present application provides a storage medium storing a computer program which, when executed by a processor, performs the method steps of:
step one, responding to application deployment operation, and acquiring configuration information of a target edge cluster from a cloud control center;
step two, acquiring a dependence template file corresponding to a target application to be deployed and a parameter configuration template file corresponding to the target application from a preset application warehouse; the parameter configuration template file comprises the dependency relationship among all the dependency files corresponding to the target application;
generating a target configuration file based on the configuration information and the parameter configuration template file;
generating a target application file in a preset format based on the target configuration file and the dependent template file;
and fifthly, 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.
The specific implementation process of the above method steps may refer to any embodiment of the application deployment method, and this embodiment is not repeated here.
According to the storage medium, the parameter configuration template file is generated by extracting the common variable and the frequently modified parameter in each dependent file, so that the corresponding configuration file is generated dynamically according to the node environment of application deployment, and the corresponding target dependent file is generated based on the configuration file. Meanwhile, the dependency template file corresponding to the application is generated, the dependency template file is utilized to manage the dependency file, and the dependency relationship does not need additional processing, so that one-key deployment of the application is realized. That is, the cloud control center uniformly distributes the target application files which are generated by the application client and contain the dependency relationship and the dependency files to each server node, so that tedious operations such as repeated parameter modification and the like are avoided, operation and maintenance personnel do not need to repeatedly modify the application configuration parameters for each server node, the complexity of application deployment is simplified, the application deployment is not complicated, and the efficiency of application deployment is improved.
Another embodiment of the present application provides an electronic device, at least including a memory, and a processor, where the memory stores a computer program, and the processor when executing the computer program on the memory implements the following method steps:
step one, responding to application deployment operation, and acquiring configuration information of a target edge cluster from a cloud control center;
step two, acquiring a dependence template file corresponding to a target application to be deployed and a parameter configuration template file corresponding to the target application from a preset application warehouse; the parameter configuration template file comprises the dependency relationship among all the dependency files corresponding to the target application;
generating a target configuration file based on the configuration information and the parameter configuration template file;
generating a target application file in a preset format based on the target configuration file and the dependent template file;
and fifthly, 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.
The specific implementation process of the above method steps may refer to any embodiment of the application deployment method, and this embodiment is not repeated here.
The electronic equipment in the application generates the parameter configuration template file by extracting the common variable and the frequently modified parameter in each dependency file, so that the corresponding configuration file can be dynamically generated according to the node environment of application deployment, and the corresponding target dependency file can be generated based on the configuration file. Meanwhile, the dependency template file corresponding to the application is generated, the dependency template file is utilized to manage the dependency file, and the dependency relationship does not need additional processing, so that one-key deployment of the application is realized. That is, the cloud control center uniformly distributes the target application files which are generated by the application client and contain the dependency relationship and the dependency files to each server node, so that tedious operations such as repeated parameter modification and the like are avoided, operation and maintenance personnel do not need to repeatedly modify the application configuration parameters for each server node, the complexity of application deployment is simplified, the application deployment is not complicated, and the efficiency of application deployment is improved.
The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application, the scope of which is defined by the claims. Various modifications and equivalent arrangements may be made to the present application by those skilled in the art, which modifications and equivalents are also considered to be within the scope of the present application.

Claims (10)

1. An application deployment method, comprising:
responding to the application deployment operation, and acquiring configuration information of a target edge cluster from a cloud control center;
acquiring a dependent template file corresponding to a target application to be deployed and a parameter configuration template file corresponding to the target application from a preset application warehouse; the parameter configuration template file comprises the dependency relationship among all the dependency files corresponding to the target application;
generating a target configuration file based on the configuration information and the parameter configuration template file;
generating a target application file in a preset format based on the target configuration file and the dependent template file;
and 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.
2. The method of claim 1, wherein prior to responding to an application deployment operation, the method further comprises:
generating a parameter configuration template file corresponding to the application file and a dependency template file corresponding to the application file on the basis of each dependency file in each application file in advance;
and storing the parameter configuration template file, the dependence template file, the corresponding relation between the parameter configuration template file and the application file and the corresponding relation between the dependence template file and the application file into the application warehouse.
3. The method of claim 2, wherein generating the parameter configuration template file corresponding to the application file and the dependency template file corresponding to the application file in advance based on each of the dependency files in each application file comprises:
extracting a plurality of first parameter items with the modification frequency larger than a preset number of times based on the modification frequency of each parameter in each dependent file;
generating 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 among each dependent file of the same application file;
and generating a dependent template file corresponding to each application file based on the unextracted residual parameter items in each dependent file of the same application file.
4. The method of claim 1, wherein generating a target application file in a predetermined format based on the target configuration file and the dependency template file comprises:
generating a plurality of target dependent files corresponding to the target application based on the target configuration file and the target application corresponding dependent template file;
obtaining target dependency relations among the target dependency files based on target configuration file analysis;
and generating the target application file based on each target dependency file and the target dependency relationship.
5. The method of claim 1, wherein 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 comprises:
storing the dependent template file into 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 comprises:
responding to the updating operation aiming at the target application, and acquiring an updated parameter configuration template file from an 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, generating an updated target configuration file;
generating an updated target application file in a preset format based on the updated target configuration file and the dependency template file stored in the storage area;
and sending the updated target application file to a cloud control center so as to deploy the updated target application file on each node in the target edge cluster through the cloud control center.
6. The method of claim 1, wherein after generating a target application file in a predetermined format based on the target configuration file and the dependency template file, the method further comprises:
storing version information corresponding to the target application file into a preset 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 comprises:
responding to a rollback request for a target application;
based on the version information of the target application in the rollback request, acquiring a history application file corresponding to the version information from the preset storage area;
and sending the history application file to a cloud control center, and deploying the history application file on each node in the target edge cluster through the cloud control center so as to perform rollback operation on the target application.
7. The method of claim 1, wherein the sending the target application file to a cloud control center to deploy the target application file on each node within the target edge cluster by the cloud control center comprises:
and sending the target application files to a cloud control center so as to deploy each target dependency file in the target application files to corresponding nodes respectively through the cloud control center based on the target dependency relationships in the target application files according to the sequence corresponding to the target dependency relationships.
8. An edge computing-based application deployment apparatus, comprising:
the first acquisition module is used for responding to the application deployment request and acquiring configuration information of the target edge cluster from the cloud control center;
the second acquisition module is used for acquiring a dependent template file corresponding to the target application to be deployed and a parameter configuration template file corresponding to the target application from a preset application warehouse; the parameter configuration template file comprises the dependency relationship among all the dependency files corresponding to the target application;
the first generation module is used for generating a target configuration file based on the configuration information and the parameter configuration template file;
the second generation module is used for generating a target application file in a preset format based on the target configuration file and the dependence template file;
and the deployment module is used for 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.
9. A storage medium storing a computer program which, when executed by a processor, implements the steps of the application deployment method of any of the preceding claims 1-7.
10. An electronic device comprising at least a memory, a processor, the memory having stored thereon a computer program, the processor, when executing the computer program on the memory, implementing the steps of the application deployment method of any of the preceding claims 1-7.
CN202211581913.8A 2022-12-09 2022-12-09 Application deployment method and device, storage medium and electronic equipment Active CN116260860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211581913.8A CN116260860B (en) 2022-12-09 2022-12-09 Application deployment method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211581913.8A CN116260860B (en) 2022-12-09 2022-12-09 Application deployment method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN116260860A true CN116260860A (en) 2023-06-13
CN116260860B CN116260860B (en) 2024-08-23

Family

ID=86680018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211581913.8A Active CN116260860B (en) 2022-12-09 2022-12-09 Application deployment method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116260860B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170315796A1 (en) * 2016-04-29 2017-11-02 Splunk, Inc. Application deployment for data intake and query system
US20190081861A1 (en) * 2017-09-14 2019-03-14 E.S.I. Software Ltd. System and method for determining information technology component dependencies in enterprise applications by analyzing configuration data
CN110224869A (en) * 2019-06-13 2019-09-10 北京航空航天大学 A kind of Automation arranging method of micro services website
WO2020010887A1 (en) * 2018-07-09 2020-01-16 中兴通讯股份有限公司 Network deployment method and apparatus
CN110750335A (en) * 2019-10-25 2020-02-04 北京金山云网络技术有限公司 Resource creating method and device and server
US10579342B1 (en) * 2016-12-30 2020-03-03 EMC IP Holding Company LLC Encapsulated application templates for containerized application software development
CN111736818A (en) * 2020-05-28 2020-10-02 浪潮电子信息产业股份有限公司 Application creation method and device based on container cloud, electronic equipment and storage medium
CN114416112A (en) * 2021-12-29 2022-04-29 中国电信股份有限公司 Project deployment method and device
CN115185550A (en) * 2022-07-12 2022-10-14 平安资产管理有限责任公司 Service deployment method, device, computer equipment and storage medium
CN115220874A (en) * 2022-09-05 2022-10-21 税友信息技术有限公司 Kubernetes cluster deployment method, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170315796A1 (en) * 2016-04-29 2017-11-02 Splunk, Inc. Application deployment for data intake and query system
US10579342B1 (en) * 2016-12-30 2020-03-03 EMC IP Holding Company LLC Encapsulated application templates for containerized application software development
US20190081861A1 (en) * 2017-09-14 2019-03-14 E.S.I. Software Ltd. System and method for determining information technology component dependencies in enterprise applications by analyzing configuration data
WO2020010887A1 (en) * 2018-07-09 2020-01-16 中兴通讯股份有限公司 Network deployment method and apparatus
CN110224869A (en) * 2019-06-13 2019-09-10 北京航空航天大学 A kind of Automation arranging method of micro services website
CN110750335A (en) * 2019-10-25 2020-02-04 北京金山云网络技术有限公司 Resource creating method and device and server
CN111736818A (en) * 2020-05-28 2020-10-02 浪潮电子信息产业股份有限公司 Application creation method and device based on container cloud, electronic equipment and storage medium
WO2021238271A1 (en) * 2020-05-28 2021-12-02 浪潮电子信息产业股份有限公司 Container-cloud-based application creation method and apparatus, electronic device, and storage medium
CN114416112A (en) * 2021-12-29 2022-04-29 中国电信股份有限公司 Project deployment method and device
CN115185550A (en) * 2022-07-12 2022-10-14 平安资产管理有限责任公司 Service deployment method, device, computer equipment and storage medium
CN115220874A (en) * 2022-09-05 2022-10-21 税友信息技术有限公司 Kubernetes cluster deployment method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN116260860B (en) 2024-08-23

Similar Documents

Publication Publication Date Title
KR101564535B1 (en) Systems and methods for software upgrade recommendation
US10733055B1 (en) Methods and apparatus related to graph transformation and synchronization
CN107832406B (en) Method, device, equipment and storage medium for removing duplicate entries of mass log data
CN113986873B (en) Method for processing, storing and sharing data modeling of mass Internet of things
CN110147455B (en) Face matching retrieval device and method
CN109831540B (en) Distributed storage method and device, electronic equipment and storage medium
US11481440B2 (en) System and method for processing metadata to determine an object sequence
US10169348B2 (en) Using a file path to determine file locality for applications
US9075836B2 (en) Partitioning keys for hash tables
JP2018045524A (en) Learning program, learning method, and learning device
CN113515564A (en) Data access method, device, equipment and storage medium based on J2EE
US8539048B2 (en) Electronic device and method for loading configuration files using the same
CN115185997A (en) Host information processing method and device, electronic equipment and storage medium
CN110737458A (en) code updating method and related device
CN116260860B (en) Application deployment method and device, storage medium and electronic equipment
CN113535262A (en) Method, device, equipment and storage medium for controlling starting of proxy node
US11048756B2 (en) Inserting datasets into database systems utilizing hierarchical value lists
CN111225032A (en) Method, system, device and medium for separating application service and file service
CN113472915B (en) Domain name resolution method, device, equipment and storage medium
CN108958917A (en) The method for scheduling task and system of cloud computing
CN114237736A (en) Page resource loading method, system, device, computer equipment and storage medium
CN114237633A (en) Application configuration method, device, equipment and storage medium
CN109525649B (en) Data processing method and device for zookeeper client
CN108491448B (en) Data pushing method and device
CN111427614B (en) File version management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant