CN114374688A - Application program deployment method and device, computer equipment and storage medium - Google Patents

Application program deployment method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114374688A
CN114374688A CN202210030580.3A CN202210030580A CN114374688A CN 114374688 A CN114374688 A CN 114374688A CN 202210030580 A CN202210030580 A CN 202210030580A CN 114374688 A CN114374688 A CN 114374688A
Authority
CN
China
Prior art keywords
deployment
server
application program
target application
node server
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
CN202210030580.3A
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.)
China Southern Power Grid Big Data Service Co ltd
Original Assignee
China Southern Power Grid Big Data Service Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Southern Power Grid Big Data Service Co ltd filed Critical China Southern Power Grid Big Data Service Co ltd
Priority to CN202210030580.3A priority Critical patent/CN114374688A/en
Publication of CN114374688A publication Critical patent/CN114374688A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application relates to an application program deployment method, an application program deployment device, a computer device and a storage medium. The method comprises the following steps: uploading a deployment file of a target application program to a deployment server under the condition that the target application program is not found in the deployment server; acquiring node server information of a plurality of node servers of the target application program to be installed; and submitting a deployment request carrying information of each node server to the deployment server so that the deployment server deploys the target application program to the node server corresponding to the information of each node server based on the deployment file. By adopting the method, the deployment efficiency of the cluster deployment can be improved.

Description

Application program deployment method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a computer device, a computer-readable storage medium, and a computer program product for deploying an application.
Background
With the development of information technology, the requirement on the stability of an application system is higher and higher, and the stability of a cluster-type deployed system is higher than that of a single-node deployed system, and the cluster-type deployed system gradually becomes a mainstream deployment method.
At present, a common method for cluster deployment is to implement corresponding operations on each node server by implementers to implement cluster deployment. However, the deployment method in which the implementer performs the same operation on each node server takes a long time and is inefficient in deployment.
Disclosure of Invention
In view of the above, it is necessary to provide an application deployment method, an apparatus, a computer device, a computer-readable storage medium, and a computer program product for solving the technical problems of the cluster deployment method that the time consumption is long and the deployment efficiency is low.
In a first aspect, the present application provides a method of application deployment. The method comprises the following steps:
uploading a deployment file of a target application program to a deployment server under the condition that the target application program is not found in the deployment server;
acquiring node server information of a plurality of node servers of the target application program to be installed;
and submitting a deployment request carrying information of each node server to the deployment server so that the deployment server deploys the target application program to the node server corresponding to the information of each node server based on the deployment file.
In one embodiment, the uploading the deployment file of the target application to the deployment server includes:
uploading the deployment file of the target application program to a file under a target directory of the deployment server; the target directory is a directory corresponding to the target application program.
In one embodiment, before the submitting the deployment request carrying the information of each node server to the deployment server, the method further includes:
detecting whether the deployment terminal has the information of each node server;
if any one of the node server information does not exist, adding the missing node server information to the deployment terminal, and executing a selected operation instruction of the added node server information and the existing node server information;
and if the information of each node server exists, executing a selected operation instruction of the information of each node server.
In one embodiment, the method further comprises the following steps:
generating a deployment log;
if the deployment is determined to fail through the deployment log, determining a target node server with failed deployment according to error reporting information in the deployment log;
and redeploying the target node server.
In a second aspect, the present application further provides another method for deploying an application. The method comprises the following steps:
receiving a deployment file of a target application program uploaded by a deployment terminal; the deployment file is uploaded when the deployment terminal does not find the target application program from the deployment server;
responding to a deployment request sent by the deployment terminal, and determining a plurality of node servers to be installed with the target application program; the deployment request carries node server information of each of a plurality of node servers on which the target application program is to be installed;
and deploying the target application program to each node server based on the deployment file.
In one embodiment, the deploying the target application to each node server based on the deployment file includes:
copying the deployment file to each node server;
and calling the deployment script in the deployment file, and deploying the target application program to each node server.
In a third aspect, the application further provides an application deployment apparatus. The device comprises:
the uploading module is used for uploading the deployment file of the target application program to the deployment server under the condition that the target application program is not found in the deployment server;
the acquisition module is used for acquiring node server information of each node server of a plurality of node servers to be installed with the target application program;
and the submitting module is used for submitting a deployment request carrying information of each node server to the deployment server so that the deployment server deploys the target application program to the node server corresponding to the information of each node server based on the deployment file.
In a fourth aspect, the present application further provides another application deployment apparatus. The device comprises:
the receiving module is used for receiving the deployment file of the target application program uploaded by the deployment terminal; the deployment file is uploaded when the deployment terminal does not find the target application program from the deployment server;
the determining module is used for responding to a deployment request sent by the deployment terminal and determining a plurality of node servers of the target application program to be installed; the deployment request carries node server information of each of a plurality of node servers on which the target application program is to be installed;
and the deployment module is used for deploying the target application program to each node server based on the deployment file.
In a fifth aspect, the present application further provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
uploading a deployment file of a target application program to a deployment server under the condition that the target application program is not found in the deployment server;
acquiring node server information of a plurality of node servers of the target application program to be installed;
and submitting a deployment request carrying information of each node server to the deployment server so that the deployment server deploys the target application program to the node server corresponding to the information of each node server based on the deployment file.
In a sixth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
uploading a deployment file of a target application program to a deployment server under the condition that the target application program is not found in the deployment server;
acquiring node server information of a plurality of node servers of the target application program to be installed;
and submitting a deployment request carrying information of each node server to the deployment server so that the deployment server deploys the target application program to the node server corresponding to the information of each node server based on the deployment file.
In a seventh aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
uploading a deployment file of a target application program to a deployment server under the condition that the target application program is not found in the deployment server;
acquiring node server information of a plurality of node servers of the target application program to be installed;
and submitting a deployment request carrying information of each node server to the deployment server so that the deployment server deploys the target application program to the node server corresponding to the information of each node server based on the deployment file.
In the application program deployment method, the device, the computer equipment, the storage medium and the computer program product, under the condition that the target application program is not found in the deployment server, the deployment file of the target application program is uploaded to the deployment server so as to ensure that the target application program exists in the deployment server, the node server information of each node server of the target application program to be installed is further obtained, and the deployment request carrying the node server information is submitted to the deployment server, so that the deployment server can determine the node server of the target application program to be installed according to the node server information in the deployment request, the target application program can be deployed in each node server based on the deployment file, the automatic deployment of each node server in the cluster deployment system is realized, and the manual login of each node server for deployment operation is not needed, the deployment time is greatly saved, and the deployment efficiency is improved.
Drawings
FIG. 1 is a diagram of an application environment in which a method for deploying an application is implemented, in one embodiment;
FIG. 2 is a flowchart illustrating a method for deploying an application in one embodiment;
FIG. 3 is a flowchart illustrating a method for deploying an application in accordance with another embodiment;
FIG. 4 is a flowchart illustrating a method for deploying an application in accordance with an embodiment;
FIG. 5 is a block diagram of an application deployment apparatus in one embodiment;
FIG. 6 is a block diagram showing the construction of an application deployment apparatus according to another embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit 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 is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein.
The application deployment method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Wherein deployment terminal 102 communicates with deployment server 104 over a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on deployment server 104, or may be located on the cloud or other network server. In the application scenario of the present application, when the target application program is not found in the deployment server 104, the deployment file of the target application program is uploaded to the deployment server 104, node server information of each of a plurality of node servers of the target application program to be installed is acquired, and a deployment request carrying the node server information is submitted to the deployment server 104, so that the deployment server 104 deploys the target application program to the node server corresponding to the node server information based on the deployment file.
The deployment terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. Deployment server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In an exemplary embodiment, as shown in fig. 2, an application deployment method is provided, which is described by taking the method as an example applied to the deployment terminal 102 in fig. 1, and includes the following steps:
in step S210, if the target application is not found in the deployment server, the deployment file of the target application is uploaded to the deployment server.
Wherein the target application represents an application that needs to be installed into a node server of the clustered system.
The deployment file comprises an application deployment package, a deployment script and a dependency package of the target application.
In a specific implementation, the deployment terminal 102, in response to a search instruction triggered by a user account, searches whether a target application program to be installed exists in the deployment server 104, and if the search result is that the target application program does not exist in the deployment server, obtains an application program deployment package, a deployment script, and a dependency package of the target application program as a deployment file, and uploads the deployment file of the target application program to the deployment server 104. If the search result indicates that the target application program exists in the deployment server, the process skips to step S220 to obtain node server information of each of the plurality of node servers to which the target application program is to be installed.
In step S220, node server information of each of a plurality of node servers to which the target application is to be installed is acquired.
The node server information is information for characterizing characteristics or uniqueness of the node server, and for example, the node server information may be a number, an identifier, and the like of the node server.
In a specific implementation, after it is determined that the target application program exists in the deployment server 104, the deployment terminal 102 may obtain node server information of each of the plurality of node servers of the target application program to be installed, and generate a deployment request carrying the node server information, so that the deployment request is submitted to the deployment server 104 in the following, and the deployment server 104 processes the deployment request.
In step S230, a deployment request carrying information of each node server is submitted to the deployment server, so that the deployment server deploys the target application program to the node server corresponding to the information of each node server based on the deployment file.
In a specific implementation, the terminal 102 submits a deployment request carrying information of each node server to the deployment server 104, so that the deployment server 104 can determine the node server of the target application to be installed according to the information of each node server in the deployment request, copy the deployment file to each node server, call the deployment script in the deployment file, and implement automatic deployment of the target application in each node server.
In the application program deployment method, when the target application program is not found in the deployment server, the deployment file of the target application program is uploaded to the deployment server, so as to ensure that the target application program exists in the deployment server, further obtain the node server information of each node server of a plurality of node servers of the target application program to be installed, and submits a deployment request carrying information of each node server to the deployment server, so that the deployment server can determine the node server of the target application program to be installed according to the information of each node server in the deployment request, therefore, the target application program can be deployed to each node server based on the deployment file, automatic deployment of each node server in the cluster deployment system is achieved, manual login of each node server for deployment operation is not needed, deployment time is greatly saved, and deployment efficiency is improved.
In an exemplary embodiment, in the step S210, uploading the deployment file of the target application to the deployment server specifically includes: uploading a deployment file of a target application program to a file under a target directory of a deployment server; the target directory is a directory corresponding to the target application.
In a specific implementation, in order to avoid mixing of files between different applications, when the deployment file of the target application is uploaded to the deployment server 104 through the terminal 102, the deployment file of the target application may be uploaded to the deployment server 104 and a file under a specified target directory corresponding to the target application.
In this embodiment, by uploading the deployment file of the target application program to the file in the target directory of the deployment server, confusion between deployment files of different application programs can be avoided.
In an exemplary embodiment, before submitting, to the deployment server, the deployment request carrying the information of each node server in step S230, the method further includes: detecting whether the deployment terminal has information of each node server; if any one of the node server information does not exist, adding the missing node server information to the deployment terminal, and executing a selected operation instruction of the added node server information and the existing node server information; and if the information of each node server exists, executing the selected operation instruction of the information of each node server.
In a specific implementation, when it is determined that an application exists in the deployment server 104, or the deployment server 104 does not have the application, but a deployment file of a target application has been uploaded to the deployment server 104, an application to be installed may be selected in the deployment terminal 102, and whether node server information of a plurality of node servers of the target application to be installed exists in the deployment terminal 102 is detected, and if any one of the node server information does not exist in the deployment terminal 102, the missing node server information is added to the deployment terminal 102, and a selected operation instruction for the added node server information and the existing node server information is executed; and if the information of each node server exists, executing a selected operation instruction of the information of each node server, so that the subsequently submitted deployment request can contain the information of each selected node server.
In this embodiment, by detecting whether the deployment terminal has the information of each node server, and performing the operations of adding and selecting the information of the node servers according to the detection result, the subsequently submitted deployment request may include the information of each selected node server, so that the deployment server may determine the node server of the target application to be installed based on the information of each node server.
In an exemplary embodiment, after the step S230, the method further includes:
step S240, generating a deployment log;
step S250, if the deployment is determined to fail through the deployment log, determining a target node server with failed deployment according to error information in the deployment log;
and step S260, redeploying the target node server.
In a specific implementation, after the target application program is deployed to each node server of the target application program to be installed through the deployment server 104, a deployment log may be further generated, the deployment log is checked to determine whether the deployment is successful, if the deployment is determined to be failed through the deployment log, the target node server with the failed deployment is determined according to error reporting information in the deployment log, and a deployment request carrying node server information of the target node server is submitted to the deployment server 104, so that the deployment server 104 performs redeployment on the target application program in the target node server with the failed deployment.
In the embodiment, the deployment log is generated, and the deployment result of the target application program to each node server is determined through the deployment log, so that the target node server with failed deployment can be found and redeployed, the deployment result is rapidly screened, and the debugging efficiency is improved.
In an exemplary embodiment, as shown in fig. 3, another application deployment method is further provided, and the present embodiment is described by taking the application method as an example for the deployment server 104, and includes the following steps:
in step S310, receiving a deployment file of a target application uploaded by a deployment terminal; the deployment file is uploaded when the deployment terminal does not find the target application program from the deployment server;
in step S320, in response to a deployment request sent by a deployment terminal, determining a plurality of node servers to which a target application is to be installed; the deployment request carries node server information of each node server of a plurality of node servers to which the target application program is to be installed;
in step S330, the target application is deployed to each node server based on the deployment file.
In a specific implementation, when the deployment terminal 102 searches the deployment server 104, and a search result indicates that the deployment server 104 does not have the target application program, the deployment terminal 102 uploads a deployment file of the target application program to the deployment server 104, and after the deployment server 104 receives the deployment file of the target application program and receives a deployment request sent by the deployment terminal, in response to the deployment request, according to node server information in the deployment request, a plurality of node servers to which the target application program is to be installed are determined, and the target application program is deployed to each node server based on the deployment file uploaded by the deployment terminal 102.
Further, in an exemplary embodiment, in step S330, deploying the target application to each node server based on the deployment file includes: copying the deployment file to each node server; and calling the deployment script in the deployment file, and deploying the target application program to each node server.
Specifically, the deployment file may be copied or copied to a designated directory in each node server, and then the deployment script in the deployment file is called to deploy the target application program to each node server.
In the application deployment method provided in this embodiment, the deployment server receives the deployment file of the target application uploaded by the deployment terminal to ensure that the deployment file for deploying the target application exists in the deployment server, further receives the deployment request sent by the deployment terminal, determines the node server of the target application to be installed according to the information of each node server in the deployment request, and deploys the target application to each node server based on the deployment file, thereby implementing automatic deployment of each node server in the cluster deployment system, without manually logging in each node server to perform deployment operation, greatly saving deployment time, and improving deployment efficiency.
In an exemplary embodiment, to facilitate understanding of the embodiments of the present application by those skilled in the art, reference will now be made to the specific examples illustrated in the accompanying drawings. Referring to FIG. 4, there is shown a complete flow chart of a method of application deployment comprising the steps of:
(1) the user account logs in and starts the deployment server.
(2) Initialization: and uploading the application program deployment package, the deployment script and the dependency package of the target application program to a specified directory of the deployment server.
(3) Accessing a web front end (namely a deployment terminal), and starting automatic deployment:
(3a) judging whether a target application program to be installed exists or not through a web front end; and (3) if the target application program to be installed does not exist, executing the step (3b), and if the target application program to be installed exists, executing the step (3 c).
(3b) And uploading the application program deployment package, the deployment script and the dependency package of the target application program to a specified directory of a deployment server at the web front end.
(3c) And selecting a target application program to be installed at the front end of the web.
(3d) And detecting whether the web front end has node server information of the node server of the target application program to be installed. If the node server information exists, directly selecting the node server information; and if any node server information does not exist, adding the missing node server information, and selecting the newly added node server information and the existing node server information.
(3e) And generating a deployment request containing the information of each selected node server at the web front end, and submitting the deployment request to a deployment server.
(4) And the deployment server receives the deployment request and carries out automatic deployment. Specifically, the deployment server may copy the application deployment package, the deployment script, and the dependency package of the target application program to the designated directory of the node server corresponding to the information of each node server, and call the deployment script to deploy the target application program to each node server.
(5) A deployment log is generated. If the deployment log shows that the deployment is successful, the automatic deployment is successful; and if the deployment log shows that the deployment is failed, determining the target node server with failed deployment to process according to the log error reporting information, returning to the step (3c), and redeploying the target node server with failed deployment.
The application deployment method provided by the embodiment has the following technical effects: 1. the implementation manpower is saved, the deployment is automated, the repeated labor and time consumption are reduced, and the implementation technology threshold is reduced; 2. the program is automatically deployed, manual operation is reduced, and deployment efficiency is improved.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides an application deployment apparatus for implementing the application deployment method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the application deployment device provided below may refer to the limitations in the above application deployment method, and are not described herein again.
In one embodiment, as shown in fig. 5, there is provided an application deployment apparatus, including: an upload module 510, an acquisition module 520, and a submit module 530, wherein:
an upload module 510, configured to upload the deployment file of the target application to the deployment server if the target application is not found in the deployment server;
an obtaining module 520, configured to obtain node server information of each of a plurality of node servers to which a target application is to be installed;
the submitting module 530 is configured to submit a deployment request carrying information of each node server to the deployment server, so that the deployment server deploys the target application program to the node server corresponding to the information of each node server based on the deployment file.
In an embodiment, the uploading module 510 is specifically configured to upload the deployment file of the target application program to a file in a target directory of the deployment server; the target directory is a directory corresponding to the target application.
In one embodiment, the apparatus further includes a selection module, configured to detect whether there is server information of each node in the deployment terminal; if any one of the node server information does not exist, adding the missing node server information to the deployment terminal, and executing a selected operation instruction of the added node server information and the existing node server information; and if the information of each node server exists, executing the selected operation instruction of the information of each node server.
In one embodiment, the apparatus further includes a redeployment module configured to generate a deployment log; if the deployment is determined to fail through the deployment log, determining a target node server with failed deployment according to error reporting information in the deployment log; and redeploying the target node server.
In one embodiment, as shown in fig. 6, another application deployment apparatus is provided, including: a receiving module 610, a determining module 620, and a deploying module 630, wherein:
a receiving module 610, configured to receive a deployment file of a target application uploaded by a deployment terminal; the deployment file is uploaded when the deployment terminal does not find the target application program from the deployment server;
a determining module 620, configured to determine, in response to a deployment request sent by a deployment terminal, a plurality of node servers to which a target application is to be installed; the deployment request carries node server information of each node server of a plurality of node servers to which the target application program is to be installed;
and the deployment module 630 is configured to deploy the target application to each node server based on the deployment file.
In an embodiment, the deployment module 630 is further configured to copy the deployment file to each node server; and calling the deployment script in the deployment file, and deploying the target application program to each node server.
The modules in the application deployment apparatus can be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an application deployment method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method for deploying an application, the method comprising:
uploading a deployment file of a target application program to a deployment server under the condition that the target application program is not found in the deployment server;
acquiring node server information of a plurality of node servers of the target application program to be installed;
and submitting a deployment request carrying information of each node server to the deployment server so that the deployment server deploys the target application program to the node server corresponding to the information of each node server based on the deployment file.
2. The method of claim 1, wherein uploading the deployment file of the target application to the deployment server comprises:
uploading the deployment file of the target application program to a file under a target directory of the deployment server; the target directory is a directory corresponding to the target application program.
3. The method according to claim 1, wherein before said submitting a deployment request carrying information of each of said node servers to said deployment server, further comprising:
detecting whether the deployment terminal has the information of each node server;
if any one of the node server information does not exist, adding the missing node server information to the deployment terminal, and executing a selected operation instruction of the added node server information and the existing node server information;
and if the information of each node server exists, executing a selected operation instruction of the information of each node server.
4. The method of any one of claims 1 to 3, further comprising:
generating a deployment log;
if the deployment is determined to fail through the deployment log, determining a target node server with failed deployment according to error reporting information in the deployment log;
and redeploying the target node server.
5. A method for deploying an application, the method comprising:
receiving a deployment file of a target application program uploaded by a deployment terminal; the deployment file is uploaded when the deployment terminal does not find the target application program from the deployment server;
responding to a deployment request sent by the deployment terminal, and determining a plurality of node servers to be installed with the target application program; the deployment request carries node server information of each of a plurality of node servers on which the target application program is to be installed;
and deploying the target application program to each node server based on the deployment file.
6. An application deployment apparatus, the apparatus comprising:
the uploading module is used for uploading the deployment file of the target application program to the deployment server under the condition that the target application program is not found in the deployment server;
the acquisition module is used for acquiring node server information of each node server of a plurality of node servers to be installed with the target application program;
and the submitting module is used for submitting a deployment request carrying information of each node server to the deployment server so that the deployment server deploys the target application program to the node server corresponding to the information of each node server based on the deployment file.
7. An application deployment apparatus, the apparatus comprising:
the receiving module is used for receiving the deployment file of the target application program uploaded by the deployment terminal; the deployment file is uploaded when the deployment terminal does not find the target application program from the deployment server;
the determining module is used for responding to a deployment request sent by the deployment terminal and determining a plurality of node servers of the target application program to be installed; the deployment request carries node server information of each of a plurality of node servers on which the target application program is to be installed;
and the deployment module is used for deploying the target application program to each node server based on the deployment file.
8. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 5 when executed by a processor.
CN202210030580.3A 2022-01-12 2022-01-12 Application program deployment method and device, computer equipment and storage medium Pending CN114374688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210030580.3A CN114374688A (en) 2022-01-12 2022-01-12 Application program deployment method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210030580.3A CN114374688A (en) 2022-01-12 2022-01-12 Application program deployment method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114374688A true CN114374688A (en) 2022-04-19

Family

ID=81144206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210030580.3A Pending CN114374688A (en) 2022-01-12 2022-01-12 Application program deployment method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114374688A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190213004A1 (en) * 2016-08-19 2019-07-11 Huawei Technologies Co., Ltd. Application component deployment method and deployment node
CN110457114A (en) * 2019-07-24 2019-11-15 杭州数梦工场科技有限公司 Application cluster dispositions method and device
CN112035124A (en) * 2020-09-03 2020-12-04 中国银行股份有限公司 Application deployment method and device
CN113407222A (en) * 2021-06-17 2021-09-17 南方电网数字电网研究院有限公司 Service updating method and device, computer equipment and storage medium
CN113407193A (en) * 2021-07-01 2021-09-17 中国工商银行股份有限公司 System deployment method, device and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190213004A1 (en) * 2016-08-19 2019-07-11 Huawei Technologies Co., Ltd. Application component deployment method and deployment node
CN110457114A (en) * 2019-07-24 2019-11-15 杭州数梦工场科技有限公司 Application cluster dispositions method and device
CN112035124A (en) * 2020-09-03 2020-12-04 中国银行股份有限公司 Application deployment method and device
CN113407222A (en) * 2021-06-17 2021-09-17 南方电网数字电网研究院有限公司 Service updating method and device, computer equipment and storage medium
CN113407193A (en) * 2021-07-01 2021-09-17 中国工商银行股份有限公司 System deployment method, device and equipment

Similar Documents

Publication Publication Date Title
US9183072B1 (en) Error troubleshooting using a correlated knowledge base
US9558852B2 (en) Method and apparatus for defect repair in NAND memory device
CN113918437A (en) User behavior data analysis method and device, computer equipment and storage medium
CN108228611B (en) Document information copying method and device
CN114374688A (en) Application program deployment method and device, computer equipment and storage medium
CN116185774A (en) Log monitoring installation method, device, computer equipment and storage medium
CN114756293A (en) Service processing method, device, computer equipment and storage medium
CN110888649B (en) Application deployment method, application baseline creation method and device
CN114661249B (en) Data storage method and device, computer equipment and storage medium
CN112162756B (en) Deployment method and device of software product, computer equipment and storage medium
CN117389588A (en) Patch upgrading method, patch upgrading device, computer equipment and storage medium
CN115480912A (en) Memory frequency configuration method and device, electronic equipment and storage medium
CN117056220A (en) Batch job testing method and device, computer equipment and storage medium
CN115687375A (en) Database updating method and device, computer equipment and storage medium
CN116881116A (en) Interface test method, apparatus, computer device, storage medium, and program product
CN115687074A (en) Business system testing method and device, computer equipment and storage medium
CN114339961A (en) Network access method, network access device, electronic equipment, storage medium and computer program product
CN116301934A (en) Software installation method, device, computer equipment and storage medium
CN114036171A (en) Application data management method and device, computer equipment and storage medium
CN114817065A (en) Interface automation test method and device and computer equipment
CN117056228A (en) Page loading test method and device, computer equipment and storage medium
CN114915573A (en) Test method, device, equipment, storage medium and program product
CN117311740A (en) HongMong application program installation method, device, computer equipment and storage medium
CN117453561A (en) Test script calling method, device, computer equipment and storage medium
CN114416214A (en) Cross-network system integration method and device, computer equipment and storage 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