CN113407203B - Application deployment method and device - Google Patents
Application deployment method and deviceInfo
- Publication number
- CN113407203B CN113407203B CN202110769452.6A CN202110769452A CN113407203B CN 113407203 B CN113407203 B CN 113407203B CN 202110769452 A CN202110769452 A CN 202110769452A CN 113407203 B CN113407203 B CN 113407203B
- Authority
- CN
- China
- Prior art keywords
- application
- deployment
- information
- middleware
- execution
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a device for deploying an application, and relates to the technical field of computers. The method comprises the steps of responding to triggering deployment operation of a deployment strategy, obtaining an application list corresponding to the deployment strategy, calculating execution sequence among applications in the application list, determining a first application for sequencing, analyzing configuration information of the first application to obtain an identifier of a middleware on which the first application depends, obtaining middleware resource information corresponding to the identifier, replacing placeholders in the configuration information with the middleware resource information to establish communication link configuration information with the first application, repeating the steps, establishing the communication link configuration information with each application in the application list, and further gradually executing the application deployment operation according to the execution sequence. According to the implementation mode, the application configuration and the resources can be managed rapidly, manual operation is reduced when the application is installed, POC deployment flow automation is realized, and deployment efficiency is improved greatly.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for deploying an application.
Background
Application deployment refers to the process of deploying packaged application resources to a designated server in a series of orchestrated task flows. In order to improve the speed and efficiency of application deployment, currently, when commercial power is applied to the outside and KA (KeyAccount, key client) users are involved, a POC (Proof of Concept) environment is usually built, basic middleware is deployed to the POC environment, and then applications are deployed under the POC environment.
In carrying out the present invention, the inventors have found that at least the following problems exist in the prior art:
1. Each service in the application needs to be deployed separately, related resources such as account numbers and passwords are applied from the middleware, and then the application configuration files are converted by manpower, so that the configuration efficiency is extremely low, and the learning cost of the deployment mode is higher.
2. The application execution sequence has strong dependency, but in actual operation, the conditions of different service names and unregistered/non-existing service exist, so that some applications/services cannot be started, a large number of application configuration files need to be modified, and the overall deployment speed is influenced.
3. Some scenes use a scripting language to deploy the application, but middleware resource information on which the application depends needs to be customized and developed, if the description and the writing of the scripting language are complex, the writing period is long, and the deployment efficiency is low.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method and an apparatus for deploying an application, which at least can solve the problem of low deployment efficiency of the existing application.
To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a method for deploying an application, including:
Responding to triggering deployment operation of a deployment strategy, acquiring an application list corresponding to the deployment strategy, and calculating the execution sequence among all applications in the application list;
Determining a first application of which the first is ordered, and analyzing configuration information of the first application to obtain an identifier of a middleware on which the first application depends;
Acquiring middleware resource information corresponding to the identifier, and replacing placeholders in the configuration information with the middleware resource information to establish communication link configuration information between the configuration information and the first application;
And repeating the process, establishing communication link configuration information between the application and each application in the application list, and further gradually executing application deployment operation according to the execution sequence.
Optionally, the calculating an execution sequence between applications in the application list includes:
Acquiring an execution sequence between one application and other applications from description information of the application, wherein the description information is used for describing execution dependency relationship between the applications;
and connecting the execution sequences among different applications in series to obtain an application execution sequence.
Optionally, the determining the first application of the first rank includes:
Judging whether the application execution sequence is a closed loop, if so, selecting any one application from the closed loop as a first application executed first, and
And taking another application which is positioned before and adjacent to any one application as the last executed application.
Optionally, the obtaining middleware resource information corresponding to the middleware identifier includes:
and acquiring middleware description information corresponding to the identifier, analyzing the middleware description information to obtain middleware attribute information, and inquiring middleware resource information corresponding to the middleware attribute information.
Optionally, the obtaining middleware resource information corresponding to the middleware identifier replaces a placeholder in the configuration information with the middleware resource information includes:
Inquiring whether middleware resource information corresponding to the middleware attribute information exists or not;
If the middleware identification does not exist, initializing the middleware corresponding to the middleware identification to obtain middleware resource information;
and under the condition that the middleware resource information is obtained, replacing the placeholder in the first application configuration information with the middleware resource information.
Optionally, the step-by-step execution of the application deployment operation according to the execution sequence includes:
calling a deployment pushing interface, acquiring a mirror image address from the information of each application, and pushing the mirror image address to a deployment platform so as to trigger the deployment platform to load corresponding mirror image information based on the mirror image address;
acquiring configuration files after replacing resource information from the information of each application, and pushing the configuration files to the deployment platform;
and dynamically loading configuration files of each application when the deployment platform is used for mirroring the mirror information of each application to gradually execute application deployment operation according to the execution sequence.
Optionally, the method further comprises the step of calling the deployment platform to create a deployment group, and creating a deployment system and a deployment file in the deployment group so as to respectively store mirror image information and configuration files of each application into different deployment files, wherein the deployment files are located in the deployment system.
Optionally, the deployment push interface is located at a deployment policy service provider, and the method further includes:
Receiving the description information and the mirror image address input to each application at the deployment strategy service providing end to obtain application information, wherein the description information comprises configuration information and execution dependency relationship with other applications, and
And deploying a concept verification environment at a deployment policy service application end to receive application information pushed by the deployment policy service provider end under the concept verification environment.
To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided an apparatus for deploying an application, including:
The computing sequence module is used for responding to the triggering deployment operation of the deployment strategy, acquiring an application list corresponding to the deployment strategy and computing the execution sequence among the applications in the application list;
the analysis configuration module is used for determining a first application for ordering a first, analyzing configuration information of the first application and obtaining an identifier of a middleware on which the first application depends;
The replacing information module is used for acquiring middleware resource information corresponding to the identifier, and replacing the placeholder in the configuration information with the middleware resource information so as to establish communication link configuration information with the first application;
and the application deployment module is used for repeating the process, establishing communication link configuration information between the application module and each application in the application list, and further gradually executing application deployment operation according to the execution sequence.
Optionally, the calculation sequence module is used for acquiring the execution sequence between one application and other applications from the description information of the application, wherein the description information is used for describing the execution dependency relationship between the applications;
and connecting the execution sequences among different applications in series to obtain an application execution sequence.
Optionally, the parsing configuration module is configured to:
Judging whether the application execution sequence is a closed loop, if so, selecting any one application from the closed loop as a first application executed first, and
And taking another application which is positioned before and adjacent to any one application as the last executed application.
Optionally, the replacement information module is configured to obtain middleware description information corresponding to the identifier, parse the middleware description information to obtain middleware attribute information, and query middleware resource information corresponding to the middleware attribute information.
Optionally, the replacement information module is configured to:
Inquiring whether middleware resource information corresponding to the middleware attribute information exists or not;
If the middleware identification does not exist, initializing the middleware corresponding to the middleware identification to obtain middleware resource information;
and under the condition that the middleware resource information is obtained, replacing the placeholder in the first application configuration information with the middleware resource information.
Optionally, the deployment application module is configured to:
calling a deployment pushing interface, acquiring a mirror image address from the information of each application, and pushing the mirror image address to a deployment platform so as to trigger the deployment platform to load corresponding mirror image information based on the mirror image address;
acquiring configuration files after replacing resource information from the information of each application, and pushing the configuration files to the deployment platform;
and dynamically loading configuration files of each application when the deployment platform is used for mirroring the mirror information of each application to gradually execute application deployment operation according to the execution sequence.
Optionally, the deployment application module is further configured to:
and calling the deployment platform to create a deployment group, and creating a deployment system and a deployment file in the deployment group so as to respectively store the mirror image information and the configuration file of each application into different deployment files, wherein the deployment files are positioned in the deployment system.
Optionally, the deployment push interface is located at a deployment policy service provider, and the apparatus further includes:
Receiving the description information and the mirror image address input to each application at the deployment strategy service providing end to obtain application information, wherein the description information comprises configuration information and execution dependency relationship with other applications, and
And deploying a concept verification environment at a deployment policy service application end to receive application information pushed by the deployment policy service provider end under the concept verification environment.
To achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided an electronic device for deploying an application.
The electronic device comprises one or more processors and a storage device, wherein the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the method for deploying the application.
To achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements the method of deploying an application as described in any of the above.
According to the scheme provided by the invention, one embodiment of the scheme has the advantages that the service provider rapidly manages application information and maintains the application information to the system management platform in a mode of separating mirror image information and configuration information, and the service application side carries out middleware resource information application by analyzing the application configuration information so as to dynamically modify the application configuration information and further deploy POC related applications according to the dependency relationship among the applications. The whole system can rapidly manage application configuration and resources, reduces manual operation when the application is installed, realizes POC deployment flow automation, and greatly improves deployment efficiency.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIGS. 1 (a) and 1 (b) are schematic diagrams of the technical architecture of the present solution;
FIG. 2 is a main flow diagram of a method of deploying an application according to an embodiment of the invention;
FIG. 3 is a flow diagram of an alternative method of deploying an application in accordance with an embodiment of the invention;
FIG. 4 is a flow diagram of another alternative method of deploying an application in accordance with an embodiment of the invention;
FIG. 5 is a schematic diagram of the main modules of an apparatus for deploying an application according to an embodiment of the invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 7 is a schematic diagram of a computer system suitable for use in implementing a mobile device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Referring to fig. 1 (a) and (B), the solution includes a deployment policy service providing end and a deployment policy service application end, for example, for a technical problem of enterprise B, enterprise a provides a solution for the deployment policy service providing end and converts the solution into a deployment policy and sends the deployment policy to enterprise B.
1. The deployment strategy service providing end comprises a management module and a storage module
1) Management module including application management and deployment management
① Application management, wherein an enterprise A inputs application identifiers, application information and the like used by a deployment strategy into a system management platform so as to generate an application list aiming at the deployment strategy;
i mirror image address management is set by a research and development personnel, a subsequent deployment platform can load application mirror image information according to the mirror image address, and the application mirror image information comprises an application installation package and other installation items preset by the research and development personnel;
II descriptive information management including dependency management and configuration information management
And a, managing the dependency relationship, inputting the execution relationship between the current application and other applications in an application list, and later calculating the application execution sequence for use, wherein the application list comprises X, Y, Z applications, the X application is started firstly, the Y application is started secondly, and the Z application is started finally.
B, managing configuration information, managing information such as the identification of the middleware, the middleware resource information, the script and the like which are relied by each application, and converting the middleware resource information into a preset template form. Taking the database as an example, the resource ID in { resource ID. Mysql. Name } represents the unique ID of the application middleware resource, mysql represents the type of resource, and name represents the field meaning a user name. For example, database server information 4c8g 100g hard disk, which is used for server applications. The script information is used for initializing the script, and the database resource is initialized by utilizing the script through the API after the database application is completed.
② And (3) deployment management, namely setting a deployment pushing interface, and pushing the mirror image address and the configuration information of the application to an application end deployment platform through the interface to perform resource initialization and deployment operation.
2) Memory module
1) The MYSQL server is used for storing configuration information of the application;
2) The OSS file server is used for storing the mirror address, mirror information, the dependent middleware resource information and the like of the application.
2. The deployment strategy service application end comprises a control end and a dependent environment
1) The control end is used for information synchronization, such as application of middleware resource information, analysis of application configuration files, deployment of applications and the like.
① And (3) applying for the resources, analyzing the configuration information of the application to obtain the identification of the middleware on which the application depends, calling a middleware API to apply for the middleware resource information from the server, and executing script information to complete the initialization of the middleware under the condition that the middleware resource information is not queried.
② And (3) configuration replacement, namely replacing placeholders in the application configuration information with middleware resource information. If the placeholder of the account number and the password in the application X is replaced by the account number and the password of the middleware resource information, the dynamic and automatic resource replacement of the application is realized.
③ And depending on calculation, acquiring an application list corresponding to the deployment strategy, determining the sequence of execution between each application and other applications according to the description information of each application, and further connecting the application execution sequences in series to obtain an application execution sequence for scheduling the application starting sequence during deployment.
④ After the image information of the application and the configuration file of the replacement resource information are acquired, the Kubernetes sequentially execute application deployment operation according to the application execution sequence.
2) Depending on the environment, including the middleware environment and the Kubernetes environment to run and maintain deployment, application-side privacy is common.
Referring to fig. 2, a main flowchart of a method for deploying an application according to an embodiment of the present invention is shown, including the following steps:
s201, responding to triggering deployment operation of a deployment strategy, acquiring an application list corresponding to the deployment strategy, and calculating the execution sequence among all applications in the application list;
s202, determining a first application of which the first is ordered, and analyzing configuration information of the first application to obtain an identifier of a middleware on which the first application depends;
S203, middleware resource information corresponding to the identifier is obtained, and placeholders in the configuration information are replaced by the middleware resource information so as to establish communication link configuration information between the configuration information and the first application;
s204, repeating the process, establishing communication link configuration information between each application in the application list, and further gradually executing application deployment operation according to the execution sequence.
In the above embodiment, for step S201, for the deployment policy service provider, the deployment policy service provider is configured to provide the deployment policy service for the deployment policy service application, for example, for a technical problem of enterprise B, enterprise a provides a solution for the deployment policy service provider, and converts the solution into a deployment policy and sends the deployment policy to enterprise B.
POC environments are typically a product or vendor capability verification effort that an enterprise performs before performing product typing or developing external implementation projects. The enterprise B deploys the POC environment at first, clicks deployment options in a preset deployment application operation interface under the POC environment, and triggers deployment operation on deployment strategies. At present, deployment is manually triggered by manpower, and each deployment strategy is assisted by a plurality of applications, so that the acquired applications are generally in a list form, each application information comprises a mirror image address and description information, and the description information comprises configuration information and dependency information.
The execution of different applications has a sequence, for example, a commodity system consists of three applications, namely commodity basic service, commodity gateway and commodity web, wherein the commodity basic service is started first, then the commodity gateway is started, and finally the web is started. And the execution dependency relationship between the application and other applications is maintained in the description information, if the description information does not exist, the application is started independently, otherwise, the execution dependency relationship is serially executed in sequence to obtain an application execution sequence.
For steps S202 and S203, a first executed first application is first determined. If the application execution sequence is in a non-closed loop form, the first application can be directly determined, but if the application execution sequence is in a closed loop form, one application can be randomly selected as the first application, and the other application which is positioned before the first application and is adjacent to the first application can be used as the last executed application. It should be noted that, in the actual operation, a sequence interrupt may occur (i.e., the number of sequences is not 1), and at this time, a prompt message may be popped up, and repair may be performed manually or the execution sequence may be set. And in some cases, there is no execution dependency relationship between some applications, for example, after the execution of the X application is completed, one of the Y application or the Z application is started randomly.
Analyzing the configuration information of the first application to obtain the identification of the middleware on which the first application depends, such as a database MySQL, further obtaining middleware resource information, usually a login account and a password, from the MySQL, and then replacing the configuration information in the first application with the middleware resource information. However, the solution is only in the deployment stage and is not started, so that the network http connection cannot be established, and the communication link configuration information is only established with the first application, so that the subsequent direct start is facilitated.
In addition, referring to fig. 3, a specific method for acquiring middleware resource information is as follows:
S301, acquiring middleware description information corresponding to a middleware identifier, and analyzing the middleware description information to obtain middleware attribute information;
S302, inquiring whether middleware resource information corresponding to the middleware attribute information exists or not;
s303, initializing a middleware corresponding to the middleware identifier if the middleware does not exist, and obtaining middleware resource information;
and S304, under the condition that the middleware resource information is obtained, replacing the placeholder in the first application configuration information with the middleware resource information.
According to the middleware description information, the attribute information of the middleware, such as a table name and a library name, whether the middleware resource information, such as an account number and a password, corresponding to the middleware attribute information exists or not is inquired, if the middleware resource information does not exist, the related interface is required to be called for initialization, the configuration relation between the middleware resource information and the first application configuration information is recorded, and at the moment, the initialization of the first application configuration file (namely, the configuration information after replacing the resources) is completed.
For step S204, after establishing a communication link configuration relationship with each application in the deployment policy application list, a deployment pushing interface is invoked to push the mirror address and configuration file of each application to the deployment platform, and the deployment platform is utilized to gradually deploy the applications according to the application execution sequence.
See fig. 4:
s401, calling a deployment pushing interface of a deployment strategy service providing end, acquiring a mirror image address from information of each application, pushing the mirror image address to a deployment platform, and triggering the deployment platform to load corresponding mirror image information based on the mirror image address;
S402, acquiring configuration files after replacing resource information from the information of each application, and pushing the configuration files to the deployment platform;
S403, dynamically loading configuration files of each application when the deployment platform is used for mirroring the mirror information of each application, so as to gradually execute application deployment operation according to the execution sequence.
The deployment platform Kubernetes loads application image information from an API interface at the deployment policy service provider based on the image address, and replaces the configuration file. The configuration file and the mirror image information of each application are usually stored in the same position, so that when the mirror image information of one application is started by the mirror image, the deployment platform Kubernetes loads the application configuration file from the position where the mirror image information is located.
Further, in the POC environment, there may be multiple deployment policies, and it is considered that each policy is formed by combining multiple applications, where each application further includes multiple services, so that a deployment packet may also be created in the deployment platform Kubernetes, where a deployment system is disposed in the packet, and the deployment system includes multiple deployment files for separately storing image information and configuration files of each application.
According to the method provided by the embodiment, the service provider rapidly manages the application information and maintains the application information to the system management platform in a mode of separating the mirror image information and the configuration information, and the service application side applies for middleware resource information by analyzing the application configuration information so as to dynamically modify the application configuration information and further deploy POC related applications according to the dependency relationship among the applications. The whole system can rapidly manage application configuration and resources, reduces manual operations (such as application of middleware resources, modification of configuration information, mirror image manual relocation and the like) when the application is installed, realizes POC deployment flow automation, and greatly improves deployment efficiency.
Referring to fig. 5, a schematic diagram of main modules of an apparatus 500 for deploying an application according to an embodiment of the present invention is shown, including:
a calculation sequence module 501, configured to obtain an application list corresponding to a deployment policy in response to a deployment operation triggered by the deployment policy, and calculate an execution sequence between applications in the application list;
The parsing configuration module 502 is configured to determine a first application for ordering a first application, parse configuration information of the first application, and obtain an identifier of a middleware on which the first application depends;
a replacement information module 503, configured to obtain middleware resource information corresponding to the identifier, and replace a placeholder in the configuration information with the middleware resource information, so as to establish communication link configuration information with the first application;
And the application deployment module 504 is configured to repeat the above process, establish communication link configuration information with each application in the application list, and further gradually execute application deployment operation according to the execution sequence.
In the embodiment of the present invention, the calculation sequence module 501 is configured to:
Acquiring an execution sequence between one application and other applications from description information of the application, wherein the description information is used for describing execution dependency relationship between the applications;
and connecting the execution sequences among different applications in series to obtain an application execution sequence.
In the embodiment of the present invention, the parsing configuration module 502 is configured to:
Judging whether the application execution sequence is a closed loop, if so, selecting any one application from the closed loop as a first application executed first, and
And taking another application which is positioned before and adjacent to any one application as the last executed application.
In the embodiment of the present invention, the replacement information module 503 is configured to:
and acquiring middleware description information corresponding to the identifier, analyzing the middleware description information to obtain middleware attribute information, and inquiring middleware resource information corresponding to the middleware attribute information.
In the embodiment of the present invention, the replacement information module 503 is configured to:
Inquiring whether middleware resource information corresponding to the middleware attribute information exists or not;
If the middleware identification does not exist, initializing the middleware corresponding to the middleware identification to obtain middleware resource information;
and under the condition that the middleware resource information is obtained, replacing the placeholder in the first application configuration information with the middleware resource information.
In the embodiment of the present invention, the deployment application module 504 is configured to:
calling a deployment pushing interface, acquiring a mirror image address from the information of each application, and pushing the mirror image address to a deployment platform so as to trigger the deployment platform to load corresponding mirror image information based on the mirror image address;
acquiring configuration files after replacing resource information from the information of each application, and pushing the configuration files to the deployment platform;
and dynamically loading configuration files of each application when the deployment platform is used for mirroring the mirror information of each application to gradually execute application deployment operation according to the execution sequence.
In the embodiment of the present invention, the deployment application module 504 is further configured to:
and calling the deployment platform to create a deployment group, and creating a deployment system and a deployment file in the deployment group so as to respectively store the mirror image information and the configuration file of each application into different deployment files, wherein the deployment files are positioned in the deployment system.
In the implementation device of the present invention, the deployment push interface is located at a deployment policy service providing end, and the device further includes:
Receiving the description information and the mirror image address input to each application at the deployment strategy service providing end to obtain application information, wherein the description information comprises configuration information and execution dependency relationship with other applications, and
And deploying a concept verification environment at a deployment policy service application end to receive application information pushed by the deployment policy service provider end under the concept verification environment.
In addition, the implementation of the apparatus in the embodiments of the present invention has been described in detail in the above method, so that the description is not repeated here.
Fig. 6 shows an exemplary system architecture 600 in which embodiments of the invention may be applied, including terminal devices 601, 602, 603, a network 604, and a server 605 (by way of example only).
The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, are installed with various communication client applications, and a user may interact with the server 605 through the network 604 using the terminal devices 601, 602, 603 to receive or transmit messages, etc.
The network 604 is used as a medium to provide communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The server 605 may be a server providing various services for performing operations of managing application configuration information, image information, and deploying applications by a service application side.
It should be noted that, the method provided by the embodiment of the present invention is generally performed by the server 605, and accordingly, the apparatus is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, there is illustrated a schematic diagram of a computer system 700 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 7 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Connected to the I/O interface 705 are an input section 706 including a keyboard, a mouse, and the like, an output section 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like, a storage section 708 including a hard disk, and the like, and a communication section 709 including a network interface card such as a LAN card, a modem, and the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 701.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, a processor may be described as including a computation order module, a parse configuration module, a replacement information module, and a deployment application module. Where the names of the modules do not constitute a limitation on the module itself in some cases, for example, the deployment application module may also be described as "repeatedly operating and deploying the application module".
As a further aspect, the invention also provides a computer readable medium which may be comprised in the device described in the above embodiments or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include:
Responding to triggering deployment operation of a deployment strategy, acquiring an application list corresponding to the deployment strategy, and calculating the execution sequence among all applications in the application list;
Determining a first application of which the first is ordered, and analyzing configuration information of the first application to obtain an identifier of a middleware on which the first application depends;
Acquiring middleware resource information corresponding to the identifier, and replacing placeholders in the configuration information with the middleware resource information to establish communication link configuration information between the configuration information and the first application;
And repeating the process, establishing communication link configuration information between the application and each application in the application list, and further gradually executing application deployment operation according to the execution sequence.
According to the technical scheme of the embodiment of the invention, the application configuration and resources can be managed rapidly, manual operations (such as application middleware resources, configuration information modification, mirror image manual relocation and the like) are reduced when the application is installed, POC deployment flow automation is realized, and deployment efficiency is greatly improved.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110769452.6A CN113407203B (en) | 2021-07-07 | 2021-07-07 | Application deployment method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110769452.6A CN113407203B (en) | 2021-07-07 | 2021-07-07 | Application deployment method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113407203A CN113407203A (en) | 2021-09-17 |
| CN113407203B true CN113407203B (en) | 2025-09-16 |
Family
ID=77685440
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110769452.6A Active CN113407203B (en) | 2021-07-07 | 2021-07-07 | Application deployment method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113407203B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114661412B (en) * | 2022-02-25 | 2025-08-19 | 北京砍石高科技有限公司 | Algorithm model deployment method and device, readable medium and electronic equipment |
| CN115469884B (en) * | 2022-09-20 | 2026-04-14 | 中国建设银行股份有限公司 | Application deployment method and related device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108762769A (en) * | 2018-06-04 | 2018-11-06 | 万惠投资管理有限公司 | Micro services application layout and dispositions method, device and terminal |
| CN112130866A (en) * | 2020-10-09 | 2020-12-25 | 腾讯科技(深圳)有限公司 | Application deployment method and related device |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100962403B1 (en) * | 2007-12-17 | 2010-06-10 | 한국전자통신연구원 | Integrated software management system and method |
| US10241775B2 (en) * | 2016-01-14 | 2019-03-26 | Ca, Inc. | Dynamic release baselines in a continuous delivery environment |
| CN119989368A (en) * | 2017-12-08 | 2025-05-13 | 雷网有限责任公司 | Automatically deployed information technology (IT) system and method |
| CN110597520A (en) * | 2019-08-27 | 2019-12-20 | 深圳证券交易所 | Server, deployment method thereof and computer-readable storage medium |
| CN112416369B (en) * | 2020-11-29 | 2022-11-29 | 中国科学院电子学研究所苏州研究院 | Intelligent deployment method oriented to heterogeneous mixed environment |
-
2021
- 2021-07-07 CN CN202110769452.6A patent/CN113407203B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108762769A (en) * | 2018-06-04 | 2018-11-06 | 万惠投资管理有限公司 | Micro services application layout and dispositions method, device and terminal |
| CN112130866A (en) * | 2020-10-09 | 2020-12-25 | 腾讯科技(深圳)有限公司 | Application deployment method and related device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113407203A (en) | 2021-09-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9912759B2 (en) | Dynamically generating solution stacks | |
| CN110391938B (en) | Method and apparatus for deploying services | |
| CN113779004A (en) | Data verification method and device | |
| CN112131095B (en) | Pressure testing method and device | |
| CN113760488B (en) | Method, apparatus, device and computer readable medium for scheduling tasks | |
| US9898281B2 (en) | Verifying source code in disparate source control systems | |
| CN117859309A (en) | Automatically select the node on which to execute the task | |
| CN113312900A (en) | Data verification method and device | |
| CN113010405B (en) | A method and device for testing an application program | |
| CN117112122A (en) | Cluster deployment method and device | |
| CN109254778B (en) | Method and apparatus for deploying an information flow system | |
| CN112799797B (en) | A task management method and device | |
| CN113535220B (en) | Code packet management method and device | |
| CN113407203A (en) | Method and device for deploying application | |
| CN113590483B (en) | Use case operation method and device | |
| WO2024001240A1 (en) | Task integration method and apparatus for multiple technology stacks | |
| CN113535221B (en) | Application version management method and device | |
| CN113743425B (en) | A method and device for generating a classification model | |
| CN114896143A (en) | Rule testing method and device | |
| CN117278394B (en) | Gateway traffic migration method, device and system | |
| CN117112075B (en) | Method and system for automatically converting timed task applications into serverless functions | |
| CN118672599A (en) | Application deployment system, application deployment method and device | |
| US20230259347A1 (en) | Container based generation of inputs for generic functions | |
| CN111124523A (en) | Method and apparatus for initializing applications | |
| CN115599572A (en) | Data acquisition method and device, electronic equipment and computer readable medium |
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 | ||
| GR01 | Patent grant |