CN112579145A - Application deployment method and device - Google Patents

Application deployment method and device Download PDF

Info

Publication number
CN112579145A
CN112579145A CN201910945814.5A CN201910945814A CN112579145A CN 112579145 A CN112579145 A CN 112579145A CN 201910945814 A CN201910945814 A CN 201910945814A CN 112579145 A CN112579145 A CN 112579145A
Authority
CN
China
Prior art keywords
deployment
application data
data
application
task
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.)
Pending
Application number
CN201910945814.5A
Other languages
Chinese (zh)
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201910945814.5A priority Critical patent/CN112579145A/en
Publication of CN112579145A publication Critical patent/CN112579145A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

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 an application deployment method and device. Wherein, the method comprises the following steps: generating a corresponding deployment task according to the deployment configuration file; determining application data required by a deployment task; packaging the application data; under the condition that the packaging of the application data fails, re-executing the step of generating the corresponding deployment task according to the deployment configuration file; and under the condition that the application data is successfully packaged, obtaining packaged data, and performing application installation according to the packaged data to finish deployment. The invention solves the technical problems of low speed, low efficiency and high error rate of an application deployment mode in the related technology.

Description

Application deployment method and device
Technical Field
The invention relates to the field of application deployment, in particular to an application deployment method and device.
Background
The developed program needs to be deployed to a new environment for testing, a manual mode is used at present, and the operation is performed step by step, so that the working efficiency is low, repeated labor can be performed once for each deployment, omission can be caused, the problem that the old environment is not good, and the problem that the new environment is not good can be caused. The existing automatic deployment scheme has the main flow that the code is pulled in a single process, packaged and distributed for deployment, and has no processing flow for errors. The problems of no failure processing mechanism in the application deployment process, single-process packaging, low efficiency and high error rate exist.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an application deployment method and device, which at least solve the technical problems of low speed, low efficiency and high error rate of application deployment modes in related technologies.
According to an aspect of an embodiment of the present invention, there is provided an application deployment method, including: generating a corresponding deployment task according to the deployment configuration file; determining application data required by the deployment task; packaging the application data; under the condition that the packaging of the application data fails, re-executing the step of generating the corresponding deployment task according to the deployment configuration file; and under the condition that the application data is successfully packaged, obtaining packaged data, and performing application installation according to the packaged data to finish deployment.
Optionally, before generating the corresponding deployment task according to the deployment configuration file, the method includes: receiving the deployment configuration file, wherein the deployment configuration file at least comprises: the storage path of the application data to be deployed needs to be the installation node to be deployed.
Optionally, generating the corresponding deployment task according to the deployment configuration file includes: determining application data needing to be deployed according to the storage path; and generating a deployment task of the application data according to the application data and the configuration files except the storage path.
Optionally, the packaging the application data that needs to be deployed by the deployment task according to the deployment task includes: acquiring the corresponding application data according to the storage path; compiling the application data, and packaging the compiled application data.
Optionally, generating a deployment task of the application data according to the application data and the configuration file except for the storage path includes: and generating a corresponding deployment task according to the application data and the configuration file except the storage path through a task distribution process.
Optionally, after generating a deployment task of the application data according to the application data and the configuration file except for the storage path, the method includes: sending the deployment task to a deployment process for deployment through a task distribution process; executing through the deployment process, and packaging the application data to be deployed of the deployment task according to the deployment task; and sending the deployment task to the task distribution process under the condition that the application data packaging fails.
Optionally, obtaining packed data when the application data is successfully packed, and performing application installation according to the packed data to complete deployment includes: under the condition that the application data are successfully packaged, obtaining packaged data, and sending the packaged data to an installation process; detecting the packed data through the installation process, and confirming whether the packed data has a history deployment trace; decompressing the packed data to generate the application data under the condition that the packed data does not have a trace of historical deployment; and installing the application data.
According to another aspect of the embodiments of the present invention, there is also provided an application deployment apparatus, including: the generating module is used for generating a corresponding deployment task according to the deployment configuration file; the determining module is used for determining application data required by the deployment task; the packaging module is used for packaging the application data; the fault-tolerant module is used for re-executing the step of generating the corresponding deployment task according to the deployment configuration file under the condition that the packaging of the application data fails; and the deployment module is used for obtaining the packed data under the condition that the application data is successfully packed, and carrying out application installation according to the packed data so as to complete deployment.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute any one of the above methods.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including at least one processor, and at least one memory and a bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to invoke program instructions in the memory to perform the application deployment method as described in any one of the above.
In the embodiment of the invention, a corresponding deployment task is generated according to a deployment configuration file; determining application data required by a deployment task; packaging the application data; under the condition that the packaging of the application data fails, re-executing the step of generating the corresponding deployment task according to the deployment configuration file; the method comprises the steps of obtaining packed data under the condition that the packing of the application data is successful, carrying out application installation according to the packed data to finish the deployment mode, and circularly executing the deployment steps of the application data to achieve the purpose of automatic deployment.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flow chart of a method of application deployment according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application deployment apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an apparatus according to an embodiment of the invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided a method embodiment of an application deployment method, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 1 is a flowchart of an application deployment method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, generating a corresponding deployment task according to the deployment configuration file;
step S104, determining application data required by the deployment task;
step S106, packaging the application data;
step S108, under the condition that the packaging of the application data fails, the step of generating the corresponding deployment task according to the deployment configuration file is executed again;
and step S110, obtaining the packed data under the condition that the application data is successfully packed, and carrying out application installation according to the packed data to finish deployment.
Through the steps, generating a corresponding deployment task according to the deployment configuration file; determining application data required by a deployment task; packaging the application data; under the condition that the packaging of the application data fails, re-executing the step of generating the corresponding deployment task according to the deployment configuration file; the method comprises the steps of obtaining packed data under the condition that the packing of the application data is successful, carrying out application installation according to the packed data to finish the deployment mode, and circularly executing the deployment steps of the application data to achieve the purpose of automatic deployment.
The execution main body of the above steps may be deployment application software, and the deployment application software may include a plurality of different processes, and the different processes are parallel to each other and independent from each other. The process can comprise a task distribution process, a deployment process and an installation process, and the purpose of deploying the application is automatically completed through a plurality of processes.
Generating corresponding deployment tasks according to the deployment configuration files, wherein the deployment configuration files are related files and data packages required by deployment, for example, a plurality of code warehouse paths required to be automatically packaged and deployed; the number of installation nodes to be deployed can be multiple; the number of processes for performing the packing deployment may be multiple. The deployment task is a task for performing application deployment by cooperation among the plurality of processes, and the deployment of the application is completed among the plurality of processes according to the deployment task.
The deployment configuration file may be manually configured by an operator, and optionally, before generating the corresponding deployment task according to the deployment configuration file, the method includes: receiving a deployment configuration file, wherein the deployment configuration file at least comprises: the storage path of the application data to be deployed needs to be the installation node to be deployed. And the operator sends the configuration file through the operating equipment and receives the configuration file by the deployment application software.
The application data required by the deployment task is determined, and the application data can be an installation code of the application, the application can be installed according to the installation code, and the application can be successfully deployed by installing the application on an installation node. The application data may also include installation plug-ins, configuration files, etc. of the application, and other files or data for installation of the application.
The method comprises the steps of packaging application data, re-executing the step of generating the corresponding deployment task according to the deployment configuration file under the condition that the packaging of the application data fails, realizing fault tolerance of the packaging step by circularly operating the mode of re-operating the latter, and being capable of re-executing under the condition that the packaging fails, thereby greatly reducing the error rate.
Optionally, generating the corresponding deployment task according to the deployment configuration file includes: determining application data needing to be deployed according to the storage path; and generating a deployment task of the application data according to the application data and the configuration files except the storage path.
The application data is stored under the storage path, and the application data can be called through the storage path. And the other files in the configuration file are referred to, such as an installation node for realizing application deployment. And generating the deployment task of the application data, namely writing the deployment information in the configuration file into the deployment task according to the configuration file of the application deployment, sending the deployment information to other flows in a task mode, and performing actions so as to achieve the purpose of automatic deployment.
In the process of packaging the application data to be deployed according to the deployment task, the corresponding application data can be acquired according to the storage path; compiling the application data and packaging the compiled application data.
In this embodiment, the deploying application software includes a task distributing process, a deploying process, and an installing process, where the task distributing process is mainly used to generate a configuration task according to the configuration file and distribute the configuration task, the deploying process is used to acquire and package application data according to the configuration task, and the installing process is used to install an application according to the packaged application data to complete deployment.
For example, generating deployment tasks for application data based on the application data and configuration files other than the storage path includes: and generating a corresponding deployment task according to the application data and the configuration file except the storage path through a task distribution process.
Optionally, after generating the deployment task of the application data according to the application data and the configuration file except the storage path, the method includes: sending the deployment task to a deployment process for deployment through a task distribution process; executing through a deployment process, and packaging application data to be deployed of the deployment task according to the deployment task; and under the condition that the application data packaging fails, sending the deployment task to a task distribution process.
Optionally, under the condition that the application data is successfully packaged, obtaining packaged data, and performing application installation according to the packaged data to complete deployment includes: under the condition that the application data is successfully packaged, obtaining packaged data, and sending the packaged data to an installation process; detecting the packed data through an installation process, and determining whether the packed data has a history deployment trace; decompressing the packed data to generate application data under the condition that the packed data does not have a trace of historical deployment; and installing the application data.
The installation process detects the packed data and confirms whether the packed data has a history deployment trace or not; decompressing the packed data to generate application data under the condition that the packed data does not have a trace of historical deployment; and installing the application data. If the packaged data has the trace of historical deployment, the situation that the software is probably insufficiently repeated exists is indicated, the packaged data is cleared, the started task is stopped, and an alarm is given to a user.
It should be noted that this embodiment also provides an alternative implementation, which is described in detail below.
Aiming at the technical problems in the related technology, the implementation mode can improve the working efficiency, reduce the repeated labor and reduce the omission phenomenon in the manual intervention process.
The specific process is as follows:
firstly, a manual process is carried out; manually configuring a configuration file required by an automatic deployment program, for example:
a) code warehouse path(s) that require automatic package deployment;
b) the node(s) to be deployed to;
c) the number of processes (which may be multiple) that perform the packing deployment.
II, task distribution flow:
1. reading the manually generated configuration file;
2. generating a packaging deployment task according to the configured code warehouse path;
3. distributing the deployment task to a deployment process;
4. picking up tasks by a deployment process;
5. the distribution process records the processing results of each package of the deployment process and the installation process.
Thirdly, deploying a process workflow:
1. pulling a code of a specified branch or a specified tag;
2. compiling and packaging the codes, if the codes fail, returning the tasks to the distribution process, and the distribution process can distribute again;
3. generating configuration files required by the modules: each code path corresponds to a module;
4. each module generates a separate compressed packet;
5. distributing the compressed packet to the installation node;
6. the completion status is recorded.
Fourthly, installing a process working flow:
1. if the trace of the last deployment exists, clearing and stopping the started task;
2. decompressing each compressed packet;
3. modifying the authority of the corresponding directory file;
4. starting a new task;
5. the completion status is recorded, and if the failure occurs, the status is recorded in a failure queue to wait for retry.
Fig. 2 is a schematic diagram of an application deployment apparatus according to an embodiment of the present invention, and as shown in fig. 2, according to another aspect of the embodiment of the present invention, there is also provided an application deployment apparatus, including: a generation module 202, a determination module 204, a packaging module 206, a fault tolerance module 208, and a deployment module 210, which are described in detail below.
The generating module 202 is configured to generate a corresponding deployment task according to the deployment configuration file; a determining module 204, connected to the generating module 202, for determining the application data required by the deployment task; a packing module 206, connected to the determining module 204, for packing the application data; a fault-tolerant module 208 connected to the packaging module 206, configured to re-execute the step of generating the corresponding deployment task according to the deployment configuration file when packaging of the application data fails; and the deployment module 210 is connected to the fault tolerant module 208, and configured to obtain packed data when the application data is successfully packed, and perform application installation according to the packed data to complete deployment.
By the device, the generation module 202 is adopted to generate the corresponding deployment task according to the deployment configuration file; the determination module 204 determines application data required for the deployment task; the packing module 206 packs the application data; the fault tolerance module 208 re-executes the step of generating the corresponding deployment task according to the deployment configuration file under the condition that the application data packaging fails; the deployment module 210 obtains the packaged data when the packaging of the application data is successful, performs application installation according to the packaged data to complete the deployment mode, and can achieve the purpose of automatic deployment by executing the deployment steps of the application data in a circulating manner.
The data processing apparatus includes a processor and a memory, and the generating module 202, the determining module 204, the packaging module 206, the fault tolerance module 208 and the deploying module 210 are all stored in the memory as program module units, and the processor executes the program module units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the Wien diagram and the keywords are displayed simultaneously by adjusting the kernel parameters, so that the use effect is improved.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the method of any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes to perform the method of any one of the above.
An apparatus is provided in an embodiment of the present invention, fig. 3 is a schematic structural diagram of an apparatus according to an embodiment of the present invention, and as shown in fig. 3, an apparatus 300 includes at least one processor 301, and at least one memory 302 and a bus 303 connected to the processor 301; wherein, the processor 301 and the memory 302 complete the communication with each other through the bus 303; the processor 301 is arranged to call program instructions in the memory 302 to perform an application deployment method as described in any one of the above.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: generating a corresponding deployment task according to the deployment configuration file; determining application data required by a deployment task; packaging the application data; under the condition that the packaging of the application data fails, re-executing the step of generating the corresponding deployment task according to the deployment configuration file; and under the condition that the application data is successfully packaged, obtaining packaged data, and performing application installation according to the packaged data to finish deployment.
Optionally, before generating the corresponding deployment task according to the deployment configuration file, the method includes: receiving a deployment configuration file, wherein the deployment configuration file at least comprises: the storage path of the application data to be deployed needs to be the installation node to be deployed.
Optionally, generating the corresponding deployment task according to the deployment configuration file includes: determining application data needing to be deployed according to the storage path; and generating a deployment task of the application data according to the application data and the configuration files except the storage path.
Optionally, the packaging the application data that needs to be deployed by the deployment task according to the deployment task includes: acquiring corresponding application data according to the storage path; compiling the application data and packaging the compiled application data.
Optionally, generating the deployment task of the application data according to the application data and the configuration file except the storage path includes: and generating a corresponding deployment task according to the application data and the configuration file except the storage path through a task distribution process.
Optionally, after generating the deployment task of the application data according to the application data and the configuration file except the storage path, the method includes: sending the deployment task to a deployment process for deployment through a task distribution process; executing through a deployment process, and packaging application data to be deployed of the deployment task according to the deployment task; and under the condition that the application data packaging fails, sending the deployment task to a task distribution process.
Optionally, under the condition that the application data is successfully packaged, obtaining packaged data, and performing application installation according to the packaged data to complete deployment includes: under the condition that the application data is successfully packaged, obtaining packaged data, and sending the packaged data to an installation process; detecting the packed data through an installation process, and determining whether the packed data has a history deployment trace; decompressing the packed data to generate application data under the condition that the packed data does not have a trace of historical deployment; and installing the application data.
The device in the application can be a server, a PC, a PAD, a mobile phone and the like.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: generating a corresponding deployment task according to the deployment configuration file; determining application data required by a deployment task; packaging the application data; under the condition that the packaging of the application data fails, re-executing the step of generating the corresponding deployment task according to the deployment configuration file; and under the condition that the application data is successfully packaged, obtaining packaged data, and performing application installation according to the packaged data to finish deployment.
Optionally, before generating the corresponding deployment task according to the deployment configuration file, the method includes: receiving a deployment configuration file, wherein the deployment configuration file at least comprises: the storage path of the application data to be deployed needs to be the installation node to be deployed.
Optionally, generating the corresponding deployment task according to the deployment configuration file includes: determining application data needing to be deployed according to the storage path; and generating a deployment task of the application data according to the application data and the configuration files except the storage path.
Optionally, the packaging the application data that needs to be deployed by the deployment task according to the deployment task includes: acquiring corresponding application data according to the storage path; compiling the application data and packaging the compiled application data.
Optionally, generating the deployment task of the application data according to the application data and the configuration file except the storage path includes: and generating a corresponding deployment task according to the application data and the configuration file except the storage path through a task distribution process.
Optionally, after generating the deployment task of the application data according to the application data and the configuration file except the storage path, the method includes: sending the deployment task to a deployment process for deployment through a task distribution process; executing through a deployment process, and packaging application data to be deployed of the deployment task according to the deployment task; and under the condition that the application data packaging fails, sending the deployment task to a task distribution process.
Optionally, under the condition that the application data is successfully packaged, obtaining packaged data, and performing application installation according to the packaged data to complete deployment includes: under the condition that the application data is successfully packaged, obtaining packaged data, and sending the packaged data to an installation process; detecting the packed data through an installation process, and determining whether the packed data has a history deployment trace; decompressing the packed data to generate application data under the condition that the packed data does not have a trace of historical deployment; and installing the application data.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined in this embodiment, the computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An application deployment method, comprising:
generating a corresponding deployment task according to the deployment configuration file;
determining application data required by the deployment task;
packaging the application data;
under the condition that the packaging of the application data fails, re-executing the step of generating the corresponding deployment task according to the deployment configuration file;
and under the condition that the application data is successfully packaged, obtaining packaged data, and performing application installation according to the packaged data to finish deployment.
2. The method of claim 1, prior to generating the corresponding deployment task from the deployment configuration file, comprising:
receiving the deployment configuration file, wherein the deployment configuration file at least comprises: the storage path of the application data to be deployed needs to be the installation node to be deployed.
3. The method of claim 2, wherein generating the corresponding deployment task from the deployment configuration file comprises:
determining application data needing to be deployed according to the storage path;
and generating a deployment task of the application data according to the application data and the configuration files except the storage path.
4. The method of claim 3, wherein packaging the application data that needs to be deployed by the deployment task according to the deployment task comprises:
acquiring the corresponding application data according to the storage path;
compiling the application data, and packaging the compiled application data.
5. The method of claim 3, wherein generating the deployment task for the application data based on the application data and the configuration file except for the storage path comprises:
and generating a corresponding deployment task according to the application data and the configuration file except the storage path through a task distribution process.
6. The method of claim 5, after generating a deployment task for the application data based on the application data and the configuration file except for the storage path, comprising:
sending the deployment task to a deployment process for deployment through a task distribution process;
executing through the deployment process, and packaging the application data to be deployed of the deployment task according to the deployment task; and sending the deployment task to the task distribution process under the condition that the application data packaging fails.
7. The method of claim 6, wherein obtaining packed data when the application data is successfully packed, and performing application installation according to the packed data to complete deployment comprises:
under the condition that the application data are successfully packaged, obtaining packaged data, and sending the packaged data to an installation process;
detecting the packed data through the installation process, and confirming whether the packed data has a history deployment trace;
decompressing the packed data to generate the application data under the condition that the packed data does not have a trace of historical deployment;
and installing the application data.
8. An application deployment apparatus, comprising:
the generating module is used for generating a corresponding deployment task according to the deployment configuration file;
the determining module is used for determining application data required by the deployment task;
the packaging module is used for packaging the application data;
the fault-tolerant module is used for re-executing the step of generating the corresponding deployment task according to the deployment configuration file under the condition that the packaging of the application data fails;
and the deployment module is used for obtaining the packed data under the condition that the application data is successfully packed, and carrying out application installation according to the packed data so as to complete deployment.
9. A storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the storage medium is located to perform the method of any one of claims 1 to 7.
10. An electronic device comprising at least one processor, at least one memory, and a bus; the processor and the memory complete mutual communication through the bus; the processor is configured to invoke program instructions in the memory to perform the application deployment method of any of claims 1-7.
CN201910945814.5A 2019-09-30 2019-09-30 Application deployment method and device Pending CN112579145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910945814.5A CN112579145A (en) 2019-09-30 2019-09-30 Application deployment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910945814.5A CN112579145A (en) 2019-09-30 2019-09-30 Application deployment method and device

Publications (1)

Publication Number Publication Date
CN112579145A true CN112579145A (en) 2021-03-30

Family

ID=75117077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910945814.5A Pending CN112579145A (en) 2019-09-30 2019-09-30 Application deployment method and device

Country Status (1)

Country Link
CN (1) CN112579145A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416109A (en) * 2021-12-15 2022-04-29 广州市玄武无线科技股份有限公司 Program deployment method and device, computer device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453367A (en) * 2007-11-30 2009-06-10 华为技术有限公司 Software deployment method and system, software deployment server and user server
CN108399083A (en) * 2017-02-07 2018-08-14 北京京东尚科信息技术有限公司 A kind of system deployment method, apparatus, electronic equipment and storage medium
US20180260201A1 (en) * 2017-03-08 2018-09-13 International Business Machines Corporation Intelligent software deployment on an iaas platform
CN109800016A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Engineering automatic deployment method, device, computer equipment and storage medium
CN109947435A (en) * 2019-03-12 2019-06-28 中国工商银行股份有限公司 The dispositions method and system of server cluster software environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453367A (en) * 2007-11-30 2009-06-10 华为技术有限公司 Software deployment method and system, software deployment server and user server
CN108399083A (en) * 2017-02-07 2018-08-14 北京京东尚科信息技术有限公司 A kind of system deployment method, apparatus, electronic equipment and storage medium
US20180260201A1 (en) * 2017-03-08 2018-09-13 International Business Machines Corporation Intelligent software deployment on an iaas platform
CN109800016A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Engineering automatic deployment method, device, computer equipment and storage medium
CN109947435A (en) * 2019-03-12 2019-06-28 中国工商银行股份有限公司 The dispositions method and system of server cluster software environment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416109A (en) * 2021-12-15 2022-04-29 广州市玄武无线科技股份有限公司 Program deployment method and device, computer device, and storage medium
CN114416109B (en) * 2021-12-15 2023-01-10 广州市玄武无线科技股份有限公司 Program deployment method and device, computer device, and storage medium

Similar Documents

Publication Publication Date Title
CN110187914B (en) Application development method, system and device
CN108399132B (en) Scheduling test method, device and storage medium
CN103493021B (en) Method and system for fault monitoring and reparation
CN108829508B (en) Task processing method and device
CN103324582A (en) Memory migration method, memory migration device and equipment
CN112579099A (en) Code deployment method and device, storage medium and electronic equipment
CN109558143B (en) Method and device for deploying applications in cluster
CN107179982B (en) Cross-process debugging method and device
CN111258742A (en) Data synchronization method, system, computing device and storage medium
CN113595773B (en) Information processing method, device, electronic equipment and storage medium
CN111552518B (en) Method and device for loading control for starting application
CN114691445A (en) Cluster fault processing method and device, electronic equipment and readable storage medium
CN112579145A (en) Application deployment method and device
US20220206836A1 (en) Method and Apparatus for Processing Virtual Machine Migration, Method and Apparatus for Generating Virtual Machine Migration Strategy, Device and Storage Medium
CN112564956A (en) Remote upgrading method, equipment and device for client and storage medium
CN110968406B (en) Method, device, storage medium and processor for processing task
CN111198694A (en) Software installation method and device
CN116382713A (en) Method, system, device and storage medium for constructing application mirror image
CN112596750B (en) Application testing method and device, electronic equipment and computer readable storage medium
CN115080309A (en) Data backup system, method, storage medium, and electronic device
CN114527992A (en) Front-end engineering deployment method, equipment and medium based on WEB interface
CN111367796B (en) Application program debugging method and device
CN114661432A (en) Task scheduling method, device, equipment and storage medium
CN109426559B (en) Command issuing method and device, storage medium and processor
CN106469102B (en) Software regeneration method and device in Java Virtual Machine

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