CN113448595B - Application deployment method, device, server and storage medium - Google Patents

Application deployment method, device, server and storage medium Download PDF

Info

Publication number
CN113448595B
CN113448595B CN202010211354.6A CN202010211354A CN113448595B CN 113448595 B CN113448595 B CN 113448595B CN 202010211354 A CN202010211354 A CN 202010211354A CN 113448595 B CN113448595 B CN 113448595B
Authority
CN
China
Prior art keywords
application
deployment
module
maintenance platform
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010211354.6A
Other languages
Chinese (zh)
Other versions
CN113448595A (en
Inventor
李光湛
许开文
李阳平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SF Technology Co Ltd
Original Assignee
SF 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 SF Technology Co Ltd filed Critical SF Technology Co Ltd
Priority to CN202010211354.6A priority Critical patent/CN113448595B/en
Publication of CN113448595A publication Critical patent/CN113448595A/en
Application granted granted Critical
Publication of CN113448595B publication Critical patent/CN113448595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses an application deployment method, an application deployment device, a server and a storage medium, wherein the application deployment method is applied to the server, and an application operation and maintenance platform is arranged in the server, and the application deployment method comprises the following steps: acquiring deployment requirements of an application; determining the types and the quantity of the corresponding deployment modules according to the deployment requirements of the application; obtaining corresponding plug-ins according to the types and the number of the deployment modules; updating the plug-in to an application operation and maintenance platform in the server; and executing the plug-in on the application node of the application to be deployed by the application operation and maintenance platform so as to deploy the application. According to the embodiment of the application, the application is deployed by the application operation and maintenance platform in a plug-in mode, so that one-key deployment of the application can be realized. In addition, in the process of deploying the application, a developer can determine the types and the quantity of the corresponding deployment modules according to own deployment requirements, and then acquire the corresponding plugins, so that in the process of deploying the application, the customization of the deployment steps is realized.

Description

Application deployment method, device, server and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to an application deployment method, an application deployment device, a server, and a storage medium.
Background
Most of the applications are deployed through jenkins, which is an open source software project, is a continuous integration tool based on Java development and is used for monitoring continuous repeated work, and aims to provide an open and easy-to-use software platform so that continuous integration of software becomes possible. However, jenkins is relatively weak to execute simple commands, and it is difficult for developers to customize the deployment steps according to their own needs during the deployment of applications by jenkins.
Disclosure of Invention
The embodiment of the application provides an application deployment method, an application deployment device, a server and a storage medium, which aim to improve the application deployment method, so that a developer can determine the types and the numbers of corresponding deployment modules according to own deployment requirements in the process of deploying an application, and then acquire corresponding plugins, thereby realizing the customization of deployment steps in the process of deploying the application.
The embodiment of the application provides an application deployment method, which is applied to a server, wherein an application operation and maintenance platform is arranged in the server, and the method comprises the following steps:
acquiring deployment requirements of an application;
determining the types and the quantity of the corresponding deployment modules according to the deployment requirements of the application;
obtaining corresponding plug-ins according to the types and the number of the deployment modules;
updating the plug-in to an application operation platform in the server;
and executing the plug-in on an application node to be deployed with the application through the application operation and maintenance platform so as to deploy the application.
In some embodiments of the present application, the executing, by the application operation and maintenance platform, the plugin at an application node where an application is to be deployed, to deploy the application, includes:
determining an application node to which the application is to be deployed;
the application node to be deployed with the application is connected through the application operation and maintenance platform;
and executing the plug-in on an application node to be deployed with the application through the application operation and maintenance platform so as to deploy the application.
In some embodiments of the present application, the executing, by the application operation and maintenance platform, the plugin at an application node where the application is to be deployed, to deploy the application, includes:
and the plug-in is issued to the application node through the application operation and maintenance platform so as to execute a deployment module in the plug-in at the application node to deploy the application.
In some embodiments of the present application, the connecting, through the application operation and maintenance platform, an application node where the application is to be deployed includes:
and controlling the application operation and maintenance platform to connect the application node to be deployed with the application through an SSH protocol.
In some embodiments of the present application, the application node is provided with a client corresponding to the application operation and maintenance platform, and the connection of the application node to be deployed with the application through the application operation and maintenance platform includes:
and connecting the application nodes to be deployed with the application through the client on the application operation and maintenance platform.
In some embodiments of the present application, after the executing, by the application operation and maintenance platform, the plugin at an application node where the application is to be deployed, to deploy the application, the method further includes:
and acquiring an application deployment result returned by the application operation and maintenance platform.
In some embodiments of the application, the deployment module comprises an application monitoring module; the method further comprises the steps of:
during the process of executing the plug-in by the application node, periodically acquiring monitoring data acquired by the monitoring module;
and determining the performance of the application according to the monitoring data.
The embodiment of the application also provides an application deployment device which is applied to a server, wherein an application operation and maintenance platform is arranged in the server, and the application deployment device comprises:
the first acquisition module is used for acquiring deployment requirements of the application;
the determining module is used for determining the types and the quantity of the corresponding deployment modules according to the deployment requirements of the application;
the second acquisition module is used for acquiring corresponding plug-ins according to the types and the number of the deployment modules;
the updating module is used for updating the plug-in to an application operation and maintenance platform in the server;
and the execution module is used for executing the plug-in on an application node to be deployed with the application through the application operation and maintenance platform so as to deploy the application.
In some embodiments of the application, the execution module comprises:
the determining module is used for determining application nodes to be deployed with the application;
the connection module is used for connecting application nodes to be deployed with the application through the application operation and maintenance platform;
and the sub-execution module is used for executing the plug-in on an application node to be deployed with the application through the application operation and maintenance platform so as to deploy the application.
In some embodiments of the application, the sub-execution module includes:
and the plug-in is issued to the application node through the application operation and maintenance platform so as to execute a deployment module in the plug-in at the application node to deploy the application.
In some embodiments of the application, the connection module comprises:
the first sub-connection module is used for controlling the application operation and maintenance platform to connect the application node to be deployed with the application through an SSH protocol.
In some embodiments of the present application, the application node is installed with a client corresponding to the application operation and maintenance platform, and the connection module includes:
and the second sub-connection module is used for connecting the application nodes to be deployed with the application through the client side on the application operation and maintenance platform.
In some embodiments of the application, the application deployment apparatus further comprises:
and the third acquisition module is used for acquiring an application deployment result returned by the application operation and maintenance platform.
In some embodiments of the application, the deployment module comprises an application monitoring module; the application deployment apparatus further includes:
the fourth acquisition module is used for periodically acquiring the monitoring data acquired by the monitoring module in the process of executing the plug-in by the application node;
and the performance determining module is used for determining the performance of the application according to the monitoring data.
The application further provides a server, which comprises:
one or more processors;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the application deployment method as described above.
The present application further proposes a computer readable storage medium having stored thereon a computer program to be loaded by a processor for performing the steps in the application deployment method as described above.
The application deployment method provided by the embodiment of the application comprises the steps of firstly obtaining the deployment requirement of the application, determining the type and the number of the corresponding deployment modules according to the deployment requirement of the application, then obtaining the corresponding plug-ins according to the type and the number of the deployment modules, updating the plug-ins to an application operation and maintenance platform in a server, and executing the plug-ins on application nodes of the application to be deployed through the application operation and maintenance platform so as to deploy the application. According to the embodiment of the application, the application operation and maintenance platform is arranged on the server, and the application is deployed by the application operation and maintenance platform in a plug-in mode, so that one-key deployment of the application can be realized. In addition, by the application deployment method provided by the implementation of the application, a developer can determine the types and the quantity of the corresponding deployment modules according to own deployment requirements in the process of deploying the application and acquire the corresponding plugins, so that the customization of the deployment steps is realized in the process of deploying the application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic view of a scenario of an embodiment of an application deployment system provided by an embodiment of the present application;
FIG. 2 is a flow chart of an embodiment of an application deployment method provided by an embodiment of the present application;
FIG. 3 is a flowchart of one embodiment of an application operation and maintenance platform deployment application provided by an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating an embodiment of an application deployment apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an embodiment of a server according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the drawings are merely for convenience in describing the present application and simplifying the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the present application, the term "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described as "exemplary" in this disclosure is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for purposes of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes have not been described in detail so as not to obscure the description of the application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The embodiment of the application provides an application deployment method, an application deployment device, an application deployment system, a server and a storage medium.
The following will describe in detail.
Referring to fig. 1, fig. 1 is a schematic view of a scenario of an application deployment system provided by an embodiment of the present application, where the application deployment system may include a server 100 and an application node 110, and the application node 110 is connected to the server 100 through a network, so that the application node 110 and the server 100 perform data interaction.
The server 100 in the embodiment of the present application is mainly used for obtaining deployment requirements of applications; determining the types and the quantity of the corresponding deployment modules according to the deployment requirements of the application; obtaining corresponding plug-ins according to the types and the number of the deployment modules; updating the plug-in to an application operation and maintenance platform in the server; and executing the plug-in on the application node of the application to be deployed by the application operation and maintenance platform so as to deploy the application.
In the embodiment of the present application, the server 100 may be an independent server, or may be a server network or a server cluster formed by servers, for example, the server 100 described in the embodiment of the present application includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud server formed by a plurality of servers. Wherein the Cloud server is composed of a large number of computers or web servers based on Cloud Computing (Cloud Computing). In embodiments of the present application, communication between the server and the user terminal may be achieved by any communication means, including, but not limited to, mobile communication based on the third generation partnership project (3rd Generation Partnership Project,3GPP), long term evolution (Long Term Evolution, LTE), worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, wiMAX), or computer network communication based on the TCP/IP protocol family (TCP/IP Protocol Suite, TCP/IP), user datagram protocol (User Datagram Protocol, UDP), etc.
It will be appreciated by those skilled in the art that the application environment shown in fig. 1 is merely an application scenario of the present application, and is not limited to the application scenario of the present application, and other application environments may further include more application nodes 110 than those shown in fig. 1, or a server network connection relationship, for example, only 1 server 100 and 1 application node 110 are shown in fig. 1, and it will be appreciated that the application deployment system may further include one or more other application nodes 110 connected to a server network, which is not limited herein.
It should be noted that, the schematic view of the scenario of the application deployment system shown in fig. 1 is only an example, and the application deployment system and the scenario described in the embodiment of the present application are for more clearly describing the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided by the embodiment of the present application, and those skilled in the art can know that, with the evolution of the application deployment system and the appearance of a new service scenario, the technical solution provided by the embodiment of the present application is equally applicable to similar technical problems.
The embodiment of the application also provides an application deployment method, which is applied to a server, wherein an application operation and maintenance platform is arranged in the server, and the method comprises the following steps: acquiring deployment requirements of an application; determining the types and the quantity of the corresponding deployment modules according to the deployment requirements of the application; obtaining corresponding plug-ins according to the types and the number of the deployment modules; updating the plug-in to an application operation platform in the server; and executing the plug-in on an application node to be deployed with the application through the application operation and maintenance platform so as to deploy the application.
Fig. 2 is a schematic flow chart of an embodiment of an application deployment method according to an embodiment of the present application, where an execution body of the application deployment method may be an application deployment device provided by the embodiment of the present application, or a storage medium, a terminal, a server, or the like integrated with the application deployment method device. The application deployment method is applied to a server, an application operation and maintenance platform is arranged in the server, and the application deployment method comprises steps 210 to 250, and is described in detail as follows:
210. the deployment requirements of the application are obtained.
In some embodiments, in deploying an application to a corresponding application node, there may be different deployment requirements for different applications. For example: for a first application to be deployed, its deployment requirements may include only stop, uninstall, start, update, while for a second application to be deployed, its deployment requirements may need to include application monitoring, etc., in addition to stop, uninstall, start, update. In the process of deploying the application, the actual deployment requirement of the application is acquired first, the application can be deployed according to the actual deployment requirement of the application, unnecessary deployment requirements are reduced, so that the deployment efficiency is improved, and the deployment time is saved.
220. And determining the types and the quantity of the corresponding deployment modules according to the deployment requirements of the application.
In some embodiments, the deployment module is a module for controlling the application node to execute a corresponding deployment step, where the deployment requirements of the applications to be deployed are different, and the corresponding deployment modules are also different. For example: for the first application to be deployed, the deployment requirements include stopping, unloading, starting and updating, and the number of the corresponding deployment modules is 4, namely a stopping module, an unloading module, a starting module and an updating module. The starting module is used for controlling the starting of the application in the application node; the updating module is used for controlling application updating in the application node; the stopping module is used for controlling the application in the application node to stop; the uninstallation is used for controlling the application in the application node to be uninstalled.
For the second application to be deployed, the deployment requirements include stopping, unloading, starting, updating and application monitoring, and the number of the corresponding deployment modules is 5, namely a stopping module, an unloading module, a starting module, an updating module and an application monitoring module. The application monitoring module is used for monitoring application performance in the application node.
230. And obtaining corresponding plug-ins according to the types and the number of the deployment modules.
In some embodiments, after obtaining the deployment requirement of the application (such as a developer), determining the type and the number of the corresponding deployment modules according to the deployment requirement of the application, writing the plugin of the application according to the type and the number of the deployment modules, where the plugin may be stored in a storage unit of the server, and the server obtains the corresponding plugin from the storage unit according to the type and the number of the deployment modules.
240. And updating the plug-in to an application operation and maintenance platform in the server.
In some embodiments, the application operation and maintenance platform may be an onsible, or the application operation and maintenance platform may be a platform obtained by secondary development of a developer based on an onsible and a deltastack. After the server acquires the corresponding plug-ins according to the types and the quantity of the deployment modules, the plug-ins are updated to the application operation and maintenance platform, so that the application operation and maintenance platform can deploy the application according to the plug-ins.
Wherein, the stable is an automatic operation and maintenance tool based on Python development, integrates the advantages of a plurality of operation and maintenance tools (puppet, cfengine, chef, func, fabric), and realizes functions of batch system configuration, batch program deployment, batch operation command and the like.
SaltStack is a centralized management platform of a server infrastructure, has functions of configuration management, remote execution, monitoring and the like, is realized based on Python language, and is constructed by combining a lightweight message queue (zeroMQ) with Python third party modules (Pyzmq, pyCrypto, pyjinjia, python-msgpack, pyYAML and the like).
250. And executing the plug-in on an application node to be deployed with the application through the application operation and maintenance platform so as to deploy the application.
In some embodiments, an application node for which an application is to be deployed refers to a node, such as a host, for deploying the application. According to the embodiment of the application, the application operation and maintenance platform is arranged on the server, and the application is deployed by the application operation and maintenance platform in a plug-in mode, so that one-key deployment of the application can be realized. In addition, by the application deployment method provided by the implementation of the application, a developer can determine the types and the quantity of the corresponding deployment modules according to own deployment requirements in the process of deploying the application and acquire the corresponding plugins, so that the customization of the deployment steps is realized in the process of deploying the application.
Fig. 3 is a flowchart of an embodiment of deploying an application by an application operation and maintenance platform according to an embodiment of the present application. In some embodiments, as shown in fig. 3, the executing, by the application operation and maintenance platform, the plugin at an application node where an application is to be deployed, to deploy the application, includes:
310. and determining an application node to which the application is to be deployed.
In some embodiments, an application node needing to deploy an application is determined in advance by a developer, address information of the application node needing to deploy the application is obtained, and then the address information is updated to an application operation and maintenance platform of a server, so that the application operation and maintenance platform determines the application node needing to deploy the application. It can be understood that for a plurality of application nodes connected with the server, the application may not need to be deployed in each application node connected with the server, and by determining the application node of the application to be deployed, the application can be more accurately deployed in the corresponding application node, so that the deployment efficiency of the application is effectively improved.
320. And connecting the application nodes to be deployed with the application through the application operation and maintenance platform.
In some embodiments, after the application operation and maintenance platform is connected to the application node where the application is to be deployed, the plug-in can be transmitted to the application node, so that the deployment of the application is completed at the application node.
In some embodiments, the connecting, through the application operation and maintenance platform, an application node where the application is to be deployed includes: and controlling the application operation and maintenance platform to connect the application node to be deployed with the application through an SSH protocol.
SSH is an abbreviation for Secure Shell, a Secure Shell protocol, established by the IETF network group (Network Working Group); SSH is a safe protocol based on an application layer, is a reliable protocol specially used for providing security for remote login session and other network services, and can effectively prevent information leakage in a remote management process. SSH clients are applicable to a variety of platforms, almost all UNIX platforms-including HP-UX, linux, AIX, solaris, digital UNIX, irix, and others-can run SSH.
The SSH program in the application node sends a connection request to the SSH program in the server, the SSH in the server checks the applied packet and the IP address and then sends the key to the SSH in the application node, the SSH in the application node sends the key back to the server, and the connection is established.
In other embodiments, the application node is provided with a client corresponding to the application operation and maintenance platform, and the application node to be deployed with the application is connected through the application operation and maintenance platform, including: and connecting the application nodes to be deployed with the application through the client on the application operation and maintenance platform.
Specifically, a master control end can be installed in a server, a controlled end (i.e. a client) is installed in an application node of an application to be deployed, and the master control end and the controlled end are in communication connection, so that the server where the master control end is located can be connected with the application node where the controlled end is located, and further operation and maintenance management works such as state monitoring or data management are performed on the application node.
330. And executing the plug-in on an application node to be deployed with the application through the application operation and maintenance platform so as to deploy the application.
By determining the application node of the application to be deployed, and then establishing connection between the application operation and maintenance platform and the corresponding application node, the application operation and maintenance platform can deploy the application in the corresponding application node more accurately, and the deployment efficiency of the application is effectively improved.
In some embodiments, the executing, by the application operation and maintenance platform, the plugin at an application node where the application is to be deployed, to deploy the application, includes: and the plug-in is issued to the application node through the application operation and maintenance platform so as to execute a deployment module in the plug-in at the application node to deploy the application.
In some embodiments, the application operation and maintenance platform executes various deployment modules in the plugin at an application node where an application is to be deployed, so as to complete deployment work of the application at the application node. The number and type of deployment modules in the corresponding plug-ins may also vary for different applications.
For example: for the first application to be deployed, the corresponding plug-in unit comprises a stopping module, an unloading module, a starting module and an updating module, and the application operation and maintenance platform can complete deployment work of the application after the application node of the application to be deployed executes the stopping module, the unloading module, the starting module and the updating module.
And for the second application to be deployed, the corresponding plug-in comprises a stopping module, an unloading module, a starting module, an updating module and an application monitoring module, and after the application node of the application to be deployed executes the stopping module, the unloading module, the starting module, the updating module and the application monitoring module, the application deployment can be completed.
In some embodiments, after the executing, by the application operation and maintenance platform, the plugin at an application node where the application is to be deployed, to deploy the application, the method further includes: and acquiring an application deployment result returned by the application operation and maintenance platform.
By acquiring the application deployment result returned by the application operation and maintenance platform, a developer can know the deployment condition of the application in each application node according to the deployment result.
In some embodiments, after the obtaining the application deployment result returned by the application operation and maintenance platform, the method further includes: and determining whether the application is successfully deployed in the application nodes according to the application deployment result, if the application deployment in the application nodes fails, carrying out application deployment on the application nodes with failed deployment again, and if the application deployment in the application nodes succeeds, not needing to be processed.
In some embodiments, the application operation and maintenance platform controls the application node to execute the starting module in the plug-in, and receives the execution result returned by the application node, and according to the execution result, whether the starting module is executed successfully can be judged.
In some embodiments, the application operation and maintenance platform controls the application node to execute the stop module in the plug-in, and receives the execution result returned by the application node, and according to the execution result, whether the stop module is executed successfully can be judged.
In some embodiments, the application operation and maintenance platform controls the application node to execute the unloading module in the plug-in, and receives the execution result returned by the application node, and according to the execution result, whether the unloading module is executed successfully can be judged.
In some embodiments, the update deployment package is sent to the application operation and maintenance platform, the application operation and maintenance platform controls the application node to execute the update module in the plug-in, and receives the execution result returned by the application node, and according to the execution result, whether the update module is executed successfully can be judged.
In some embodiments, the deployment module comprises an application monitoring module; the method further comprises the steps of:
1) And periodically acquiring monitoring data acquired by the application monitoring module in the process of executing the plug-in by the application node.
In some embodiments, the monitoring data includes response times, resource utilization, and the like of the application. The application operation and maintenance platform can control the application node to execute the application monitoring module in the plug-in for a plurality of times according to the preset time length so as to acquire the monitoring data of the application in the application node. Or, the application operation and maintenance platform can control the application node to execute the application monitoring module in the plug-in after receiving the monitoring instruction input by the user so as to acquire the monitoring data of the application in the application node.
2) And determining the performance of the application according to the monitoring data.
In some embodiments, the application operation and maintenance platform is capable of determining performance of the application according to the monitoring data by collecting the monitoring data of the application in the application node.
Fig. 4 is a schematic structural diagram of an embodiment of an application deployment device according to an embodiment of the present application. In order to better implement the application deployment method in the embodiment of the present application, on the basis of the application deployment method, the embodiment of the present application further provides an application deployment device, as shown in fig. 4, an application deployment device 400 includes:
a first obtaining module 410, configured to obtain a deployment requirement of an application;
a determining module 420, configured to determine a type and number of corresponding deployment modules according to deployment requirements of the application;
the second obtaining module 430 is configured to obtain corresponding plugins according to the type and the number of the deployment modules;
an updating module 440, configured to update the plug-in to an application operation platform in the server;
and the execution module 450 is used for executing the plug-in on an application node to be deployed with the application through the application operation and maintenance platform so as to deploy the application.
In some embodiments of the present application, the execution module 450 includes:
the determining module is used for determining application nodes to be deployed with the application;
the connection module is used for connecting application nodes to be deployed with the application through the application operation and maintenance platform;
and the sub-execution module is used for executing the plug-in on an application node to be deployed with the application through the application operation and maintenance platform so as to deploy the application.
In some embodiments of the application, the sub-execution module includes:
and the plug-in is issued to the application node through the application operation and maintenance platform so as to execute a deployment module in the plug-in at the application node to deploy the application.
In some embodiments of the application, the connection module comprises:
the first sub-connection module is used for controlling the application operation and maintenance platform to connect the application node to be deployed with the application through an SSH protocol.
In some embodiments of the present application, the application node is installed with a client corresponding to the application operation and maintenance platform, and the connection module includes:
and the second sub-connection module is used for connecting the application nodes to be deployed with the application through the client side on the application operation and maintenance platform.
In some embodiments of the present application, the application deployment apparatus 400 further includes:
and the third acquisition module is used for acquiring an application deployment result returned by the application operation and maintenance platform.
In some embodiments of the application, the deployment module comprises an application monitoring module; the application deployment apparatus 400 further includes:
the fourth acquisition module is used for periodically acquiring the monitoring data acquired by the monitoring module in the process of executing the plug-in by the application node;
and the performance determining module is used for determining the performance of the application according to the monitoring data.
The embodiment of the application also provides a server which integrates any one of the application deployment devices provided by the embodiment of the application, and the server comprises:
one or more processors;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to perform, by the processor, the steps of the application deployment method described in any of the above embodiments of the application deployment method.
The embodiment of the application also provides a server which integrates any application deployment device provided by the embodiment of the application. As shown in fig. 5, a schematic structural diagram of a server according to an embodiment of the present application is shown, specifically:
the server may include one or more processing cores 'processors 501, one or more computer-readable storage media's memory 502, a power supply 503, and an input unit 504, among other components. Those skilled in the art will appreciate that the server architecture shown in fig. 5 is not limiting of the server and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 501 is a control center of the server, and connects various parts of the entire server using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and/or modules stored in the memory 502, and calling data stored in the memory 502, thereby performing overall monitoring of the server. Optionally, processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by executing the software programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the server, etc. In addition, memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide access to the memory 502 by the processor 501.
The server also includes a power supply 503 for powering the various components, and preferably the power supply 503 may be logically coupled to the processor 501 via a power management system such that functions such as charge, discharge, and power consumption management are performed by the power management system. The power supply 503 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The server may also include an input unit 504, which input unit 504 may be used to receive entered numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the server may further include a display unit or the like, which is not described herein. In this embodiment, the processor 501 in the server loads executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 executes the application programs stored in the memory 502, so as to implement various functions as follows:
acquiring deployment requirements of an application;
determining the types and the quantity of the corresponding deployment modules according to the deployment requirements of the application;
obtaining corresponding plug-ins according to the types and the number of the deployment modules;
updating the plug-in to an application operation platform in the server;
and executing the plug-in on an application node to be deployed with the application through the application operation and maintenance platform so as to deploy the application.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a storage medium, which may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like. The storage medium stores a plurality of instructions that can be loaded by a processor to perform steps in any of the application deployment methods provided by the embodiments of the present application. For example, the instructions may perform the steps of:
acquiring deployment requirements of an application;
determining the types and the quantity of the corresponding deployment modules according to the deployment requirements of the application;
obtaining corresponding plug-ins according to the types and the number of the deployment modules;
updating the plug-in to an application operation platform in the server;
and executing the plug-in on an application node to be deployed with the application through the application operation and maintenance platform so as to deploy the application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The application deployment method, device, system, server and storage medium provided by the embodiments of the present application are described in detail, and specific examples are applied to illustrate the principles and embodiments of the present application, and the description of the above embodiments is only used to help understand the technical solution and core ideas of the present application; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.

Claims (7)

1. An application deployment method is characterized by being applied to a server, wherein an application operation and maintenance platform is arranged in the server, and the method comprises the following steps:
acquiring deployment requirements of an application, wherein the deployment requirements comprise stopping, unloading, starting and updating;
determining the types and the quantity of corresponding deployment modules according to the deployment requirements of the applications, wherein the deployment modules comprise a stopping module, an unloading module, a starting module and an updating module, and the starting module is used for controlling the starting of the applications in the application nodes; the updating module is used for controlling application updating in the application node; the stopping module is used for controlling the application in the application node to stop; the unloading is used for controlling the application in the application node to be unloaded;
obtaining corresponding plug-ins according to the types and the number of the deployment modules;
updating the plug-in to an application operation and maintenance platform in the server, wherein the application operation and maintenance platform is an onsible platform, or the application operation and maintenance platform is a platform obtained by secondary development based on the onsible platform and a saltstack platform;
the method comprises the steps of determining application nodes needing to be deployed with the application in advance, acquiring address information of the application nodes, and updating the address information into the application operation and maintenance platform to enable the application operation and maintenance platform to determine the application nodes needing to be deployed with the application;
the application node to be deployed with the application is connected through the application operation and maintenance platform;
the plug-in is issued to the application node through the application operation and maintenance platform so that a deployment module in the plug-in is executed at the application node to deploy the application;
the deployment module comprises an application monitoring module; the method further comprises the steps of:
in the process of executing the plug-in by the application node, the response time and the resource utilization rate of the application acquired by the monitoring module are periodically acquired;
and determining the performance of the application according to the response time and the resource utilization rate.
2. The application deployment method according to claim 1, wherein the connecting, through the application operation and maintenance platform, an application node where the application is to be deployed, comprises:
and controlling the application operation and maintenance platform to connect the application node to be deployed with the application through an SSH protocol.
3. The application deployment method according to claim 1, wherein the application node is provided with a client corresponding to the application operation and maintenance platform, and the connecting the application node to be deployed with the application through the application operation and maintenance platform includes:
and connecting the application nodes to be deployed with the application through the client on the application operation and maintenance platform.
4. The application deployment method according to claim 1, further comprising, after the executing, by the application operation and maintenance platform, the plug-in at an application node where the application is to be deployed, to deploy the application:
and acquiring an application deployment result returned by the application operation and maintenance platform.
5. An application deployment device, which is characterized in that the application deployment device is applied to a server, an application operation and maintenance platform is arranged in the server, and the application deployment device comprises:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring the deployment requirements of an application, and the deployment requirements comprise stopping, unloading, starting and updating;
the system comprises a determining module, a deploying module and a judging module, wherein the determining module is used for determining the types and the quantity of the corresponding deploying modules according to the deploying requirements of the application, the deploying module comprises a stopping module, an unloading module, a starting module and an updating module, and the starting module is used for controlling the starting of the application in an application node; the updating module is used for controlling application updating in the application node; the stopping module is used for controlling the application in the application node to stop; the unloading is used for controlling the application in the application node to be unloaded;
the second acquisition module is used for acquiring corresponding plug-ins according to the types and the number of the deployment modules;
the updating module is used for updating the plug-in to an application operation and maintenance platform in the server, wherein the application operation and maintenance platform is an existing platform, or the application operation and maintenance platform is a platform obtained by secondary development based on the existing platform and a deltack platform;
the execution module is used for executing the plug-in on an application node to be deployed with the application through the application operation and maintenance platform so as to deploy the application;
wherein the execution module comprises:
the determining module is used for determining application nodes needing to be deployed with the application in advance, acquiring address information of the application nodes, updating the address information into the application operation and maintenance platform, and enabling the application operation and maintenance platform to determine the application nodes needing to be deployed with the application;
the connection module is used for connecting application nodes to be deployed with the application through the application operation and maintenance platform;
the sub-execution module is used for issuing the plug-in to the application node through the application operation and maintenance platform so as to execute a deployment module in the plug-in at the application node to deploy the application;
the deployment module comprises an application monitoring module; the application deployment apparatus further includes:
the fourth acquisition module is used for periodically acquiring the monitoring data acquired by the monitoring module in the process of executing the plug-in by the application node;
and the performance determining module is used for determining the performance of the application according to the monitoring data.
6. A server, the server comprising:
one or more processors;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the application deployment method of any of claims 1 to 4.
7. A computer-readable storage medium, having stored thereon a computer program, the computer program being loaded by a processor to perform the steps in the application deployment method of any of claims 1 to 4.
CN202010211354.6A 2020-03-24 2020-03-24 Application deployment method, device, server and storage medium Active CN113448595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010211354.6A CN113448595B (en) 2020-03-24 2020-03-24 Application deployment method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010211354.6A CN113448595B (en) 2020-03-24 2020-03-24 Application deployment method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN113448595A CN113448595A (en) 2021-09-28
CN113448595B true CN113448595B (en) 2023-08-25

Family

ID=77806330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010211354.6A Active CN113448595B (en) 2020-03-24 2020-03-24 Application deployment method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN113448595B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977274A (en) * 2010-10-25 2011-02-16 中兴通讯股份有限公司 System and method for disposing service platforms
CN104615466A (en) * 2015-02-05 2015-05-13 广州亦云信息技术有限公司 Cloud platform deployment method and system
CN104967664A (en) * 2015-05-13 2015-10-07 西安三星电子研究有限公司 Automatic cloud deploying system and method
CN105099739A (en) * 2014-05-15 2015-11-25 中国移动通信集团公司 Plug-in type software deployment method and apparatus, and application server
CN105511906A (en) * 2015-11-25 2016-04-20 苏州科达科技股份有限公司 Automatic deploy method, device and system of video platform

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9251498B2 (en) * 2006-10-23 2016-02-02 Oracle International Corporation Facilitating deployment of customizations of enterprise applications
EP2751682A4 (en) * 2011-08-29 2015-01-07 Fiberlink Comm Corp Platform for deployment and distribution of modules to endpoints
US8997088B2 (en) * 2012-11-02 2015-03-31 Wipro Limited Methods and systems for automated deployment of software applications on heterogeneous cloud environments

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977274A (en) * 2010-10-25 2011-02-16 中兴通讯股份有限公司 System and method for disposing service platforms
CN105099739A (en) * 2014-05-15 2015-11-25 中国移动通信集团公司 Plug-in type software deployment method and apparatus, and application server
CN104615466A (en) * 2015-02-05 2015-05-13 广州亦云信息技术有限公司 Cloud platform deployment method and system
CN104967664A (en) * 2015-05-13 2015-10-07 西安三星电子研究有限公司 Automatic cloud deploying system and method
CN105511906A (en) * 2015-11-25 2016-04-20 苏州科达科技股份有限公司 Automatic deploy method, device and system of video platform

Also Published As

Publication number Publication date
CN113448595A (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN109525624B (en) Container login method and device and storage medium
EP2645636B1 (en) Home gateway, cloud server, and method for communication therebetween
US20230334930A1 (en) Consensus method and apparatus for blockchain, server and storage medium
CN108509203B (en) Software cross-cloud deployment method, computer equipment and storage medium
WO2019184164A1 (en) Method for automatically deploying kubernetes worker node, device, terminal apparatus, and readable storage medium
JP4571216B2 (en) Device management system and set value setting method in the system
CN113312165B (en) Task processing method and device
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN112740638A (en) Packet Data Unit (PDU) session control method and apparatus
CN113312059B (en) Service processing system, method and cloud native system
CN113726581B (en) Method and device for restoring factory configuration of network equipment and network equipment
KR102127591B1 (en) Method and apparatus for event-based synchronous communication in asynchronous communication framework
CN113448595B (en) Application deployment method, device, server and storage medium
CN105827567B (en) Service management and control method and capability opening platform
US20050132237A1 (en) Method, apparatus and program storage device for providing a remote power reset at a remote server through a network connection
WO2021136358A1 (en) Network device management method and system, and network device
CN114338763A (en) Micro-service calling method, device, server and computer readable storage medium
CN113608767A (en) Service upgrade processing method, electronic device and storage medium
CN110401557B (en) Network configuration method and device of terminal equipment and server
CN108234215B (en) Gateway creating method and device, computer equipment and storage medium
CN113407384B (en) Method and device for transmitting peer node instruction, proxy server and storage medium
CN113259378B (en) Operation method, device, equipment and storage medium of block chain system
CN116760930B (en) Call processing method and device, storage medium and electronic equipment
CN114936043B (en) Method, device, equipment and storage medium for starting pooled heterogeneous resources
CN114296763A (en) Firmware upgrading method and device for Internet of things equipment, server 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
GR01 Patent grant
GR01 Patent grant