CN113590169B - Application deployment method, application deployment system, and computer-readable storage medium - Google Patents

Application deployment method, application deployment system, and computer-readable storage medium Download PDF

Info

Publication number
CN113590169B
CN113590169B CN202111157660.7A CN202111157660A CN113590169B CN 113590169 B CN113590169 B CN 113590169B CN 202111157660 A CN202111157660 A CN 202111157660A CN 113590169 B CN113590169 B CN 113590169B
Authority
CN
China
Prior art keywords
application
deployment
agent
server
instance
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
CN202111157660.7A
Other languages
Chinese (zh)
Other versions
CN113590169A (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.)
Wuhan Barda Technology Co ltd
Original Assignee
Wuhan Sitong Information 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 Wuhan Sitong Information Service Co ltd filed Critical Wuhan Sitong Information Service Co ltd
Priority to CN202111157660.7A priority Critical patent/CN113590169B/en
Publication of CN113590169A publication Critical patent/CN113590169A/en
Application granted granted Critical
Publication of CN113590169B publication Critical patent/CN113590169B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

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

Abstract

The embodiment of the application provides an application deployment method, an application deployment system and a computer-readable storage medium, wherein the method comprises the following steps: the management server receives an application agent deployment request, the application agent deployment request is triggered by an application agent deployment interface, based on the remote connection service, the application virtual machine instance is connected according to instance identification information and login information of the application virtual machine instance in the application agent deployment request, and a first connection channel between the management server and the application virtual machine instance is established; dynamically generating an application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information and the deployment path of the application agent in the application agent deployment request; and using the first connection channel, the management server and the application virtual machine instance deploy the application agent on the application virtual machine instance according to the application agent deployment instruction set and start the application agent. The method and the device for deploying the application agents can improve the efficiency of deploying various application agents.

Description

Application deployment method, application deployment system, and computer-readable storage medium
Technical Field
The application relates to the technical field of smart cities, in particular to an application deployment method, an application deployment system and a computer-readable storage medium.
Background
When the application deployment of the cloud platform, such as the application agent deployment, is performed, usually, when a technician obtains an application agent package, the application agent package is uploaded to a system where a virtual machine instance is located through a mobile hard disk or file transfer software, and then the application agent is manually installed in the system and manually started. Deployment of the application agent is performed in a manual operation mode, efficiency is low, and the deployment can be realized only by technical personnel who are familiar with the system.
Disclosure of Invention
The embodiment of the application provides an application deployment method, an application deployment system and a computer-readable storage medium, and the application deployment efficiency can be improved.
The embodiment of the application provides an application deployment method, which comprises the following steps:
the method comprises the steps that a management server receives an application agent deployment request, the application agent deployment request is triggered by an application agent deployment interface, the application agent deployment request comprises type information and agent identification information of an application agent, instance identification information of an application virtual machine instance, login information of the application virtual machine instance and a deployment path of the application agent, the type information and the agent identification information, the login information, the instance identification information and the deployment path are input through the application agent deployment interface, the type information of the application agent is consistent with the type information of the application virtual machine instance, and remote connection services matched with an operating system of the application virtual machine instance are integrated in both the application virtual machine instance and the management server;
based on the remote connection service, connecting the application virtual machine instance according to the instance identification information and the login information of the application virtual machine instance, and establishing a first connection channel between the management server and the application virtual machine instance;
dynamically generating an application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information and the deployment path;
and deploying the application agent on the application virtual machine instance by the management server and the application virtual machine instance according to the application agent deployment instruction set and starting the application agent by utilizing the first connecting channel.
An embodiment of the present application further provides an application deployment system, including:
a management server and a target server, wherein the target server comprises an application virtual machine instance, wherein,
the management server is used for receiving an application agent deployment request, the application agent deployment request is triggered by an application agent deployment interface, the application agent deployment request comprises type information and agent identification information of an application agent, instance identification information of an application virtual machine instance, login information of the application virtual machine instance and a deployment path of the application agent, the type information and the agent identification information, the login information, the instance identification information and the deployment path are input through the application agent deployment interface, the type information of the application agent is consistent with the type information of the application virtual machine instance, and remote connection services matched with an operating system of the application virtual machine instance are integrated in both the application virtual machine instance and the management server;
based on the remote connection service, connecting the application virtual machine instance according to the instance identification information and the login information of the application virtual machine instance, and establishing a first connection channel between the management server and the application virtual machine instance;
dynamically generating an application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information and the deployment path;
the management server and the application virtual machine instance are configured to deploy the application agent on the application virtual machine instance according to the application agent deployment instruction set and start the application agent by using the first connection channel.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps in any of the above application deployment methods are implemented.
According to the method and the device, the application agent deployment request is triggered through the type information and the agent identification information of the application agent, the instance identification information of the application virtual machine instance, the login information of the application virtual machine instance and the deployment path of the application agent, which are input through the application agent deployment interface, so that the application agent deployment request can be generated through simple interface input operation without complex configuration, and the labor cost is reduced; after receiving the application agent deployment request, the management server automatically deploys the application agent on the application virtual machine instance and starts the application agent, so that the application agent is automatically deployed, and the deployment efficiency of the application agent is improved; in the process of automatically deploying the application agent, an application agent deployment instruction set corresponding to the application agent deployment request is dynamically generated according to the type information, the agent identification information and the deployment path, and the application agent is remotely deployed according to the application agent deployment instruction. The application deployment method in the embodiment of the application is highly automatic, the efficiency of deployment of various application agents is greatly improved, the data safety problem caused by manual misoperation is greatly reduced, and the data operation and maintenance cost is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of an application deployment method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of an application deployment method provided in an embodiment of the present application;
3 a-3 b are schematic diagrams of an application agent deployment interface provided by an embodiment of the application;
fig. 4 is a schematic view of another application scenario of the application deployment method provided in the embodiment of the present application;
fig. 5 is a flowchart illustrating an application deployment method provided in an embodiment of the present application;
6a, 6b, and 6c are schematic diagrams of a server deployment interface provided by an embodiment of the present application;
fig. 7 is another schematic flowchart of an application deployment method provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an application deployment system provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an application deployment method and a computer-readable storage medium of an application deployment system. Any application deployment method provided by the embodiment of the application can be integrated in an application deployment system. The application deployment system includes at least a plurality of different types of servers. The server may be an independent server individual or a server cluster.
Fig. 1 is a schematic view of an application scenario of an application deployment method according to an embodiment of the present application. The application scenario includes an easy cloud platform and an easy standby platform, where the easy standby platform includes an easy standby server (also belonging to a management server) and a plurality of different applications (not shown in the figure), such as an Oracle database application, an sql server database application, and the like. The cloud facilitating platform comprises a client of the cloud facilitating platform and a server of the cloud facilitating platform. The server of the cloud-prone platform comprises a management server and a plurality of different application virtual machine instances such as an application virtual machine instance 1, an application virtual machine instance 2 and the like, wherein the application virtual machine instances can be witness server instances of Oracle database application, witness server instances of sqlServer database application and the like, and can also be other application virtual machine instances such as a monitoring agent application virtual machine instance and the like. Each different application virtual machine instance may correspond to a different operating system type, such as a windows operating system, a Linux operating system, and the like. It should be noted that the application virtual machine instance is also deployed in a server (not shown in the figure), but not in the management server. The management server stores the relevant information of the application virtual machine instance.
The application deployment method in the embodiment of the application is used for deploying a corresponding application agent in an application virtual machine instance of an easy cloud platform through a management server, wherein the application virtual machine instance is a virtual machine instance corresponding to a certain application in the easy cloud platform, such as a witness server instance of an Oracle database application, and the application agent is an application agent corresponding to the certain application in the easy cloud platform, such as an application agent of the Oracle database application. In an embodiment, the application deployment method in the embodiment of the present application may further be configured to deploy/install a monitoring agent in an application virtual machine instance of the cloud platform through the management server, so as to monitor various resource information, running state information, and the like in the application virtual machine instance through the monitoring agent.
The client of the cloud-prone platform comprises an application agent deployment interface, and the application agent deployment interface can be an independent webpage interface or formed by a plurality of different webpage interfaces. The method comprises the steps of inputting configuration information corresponding to application agent deployment through an application agent deployment interface, generating an application agent deployment request according to the configuration information, sending the application agent deployment request to a management server of the cloud-prone platform, and automatically deploying the application agent by the management server of the cloud-prone platform according to the configuration information. Therefore, the deployment of the application agent can be automatically realized only by simply inputting the configuration information in the application agent deployment interface by the user, the deployment efficiency of the application agent is improved, the deployment can be completed without professional technicians, and the labor cost is reduced.
Hereinafter, the application deployment method, the application deployment system, and the computer-readable storage medium in the embodiments of the present application will be described in detail. The numbers in the following examples are not intended to limit the order of preference of the examples. In addition, it should be further noted that "application" in the application deployment method includes an application agent (including a database application agent, a monitoring agent, and the like), a database application, and the like.
Fig. 2 is a flowchart of an application deployment method provided in an embodiment of the present application, where the application deployment method is used for deploying an application agent on an instance on an application virtual machine, and the application deployment method includes the following steps.
101, the management server receives an application agent deployment request, the application agent deployment request is triggered by an application agent deployment interface, and the application agent deployment request includes type information and agent identification information of an application agent, instance identification information of an application virtual machine instance, login information of the application virtual machine instance, and a deployment path of the application agent.
The type information and agent identification information of the application agent, the instance identification information of the application virtual machine instance, the login information of the application virtual machine instance, the deployment path of the application agent and the like belong to configuration information.
The type information of the application agent includes an operating system type and an application type, the operating system type includes a windows operating system, a Linux operating system and the like, and the application type includes an Oracle database application, an sql server database application or any other application and the like. The agent identification information of the application agent includes an application agent name and the like; the instance identification information of the application virtual machine instance includes a name of the application virtual machine instance, and in an implemented case, may further include an IP address of the application virtual machine instance, and the like. The login information of the application virtual machine instance comprises a login name and a login password of the application virtual machine instance, and the application virtual machine instance can be accessed by the login name and the login password. The deployment path of the application agent refers to which path the application agent is deployed to in the application virtual machine instance, and the deployment path may be a relative path or an absolute path.
As shown in fig. 3a and 3b, schematic diagrams of application agent deployment interfaces provided in the embodiments of the present application are shown. In fig. 3a, a part of the application agent in the easy cloud platform is shown, including a part of the database application agent under the Linux operating system and the windows operating system. And responding to the agent selection operation of the user, and determining an application agent corresponding to the agent selection operation, wherein the application agent comprises type information and an application agent name, such as an application agent xfyb-sqlServer-linux.
In fig. 3b, in response to an instance selection operation of an application virtual machine instance by a user, instance identification information such as an instance name of the application virtual machine instance is determined, and in response to an information input operation by the user, information such as a login name and a login password, a deployment path, and the like of the application virtual machine instance is determined.
As such, type information and agent identification information, login information, instance identification information, and deployment path are entered (including selections) through the application agent deployment interface.
And in response to an input determination operation (such as triggering a deployment button or a determination button on the application agent deployment interface) aiming at the application agent deployment interface, generating an application agent deployment request according to the input/selected type information, agent identification information, login information, instance identification information, deployment path and other information, and sending the application agent deployment request to a management server. The management server receives the application agent deployment request.
Therefore, the corresponding configuration information is input through the application agent deployment interface, the application agent deployment request is generated and sent to the management server, the management server can automatically achieve deployment of the application agent, deployment efficiency of the application agent is improved, the deployment can be completed without professional technicians, and labor cost is reduced.
It should be noted that, before step 101, deployment is also required to obtain an application virtual machine instance (hereinafter, details will be described by taking deployment of a witness server to obtain a witness server instance as an example), and a remote connection service matching with an operating system of the application virtual machine instance is integrated in the application virtual machine instance and is already opened. It should also be noted that the management server also integrates a remote connection service that matches the operating system of the application virtual machine instance. For example, the windows operating system, the corresponding remote connection service may be a winter remote connection service; the Linux operating system and the corresponding remote connection service can be an Sftp remote connection service.
In this embodiment, the following steps 102 to 105 are all performed automatically by the server, and the application agent is deployed by the application virtual machine instance.
102, based on the remote connection service, connecting the application virtual machine instance according to the instance identification information and the login information of the application virtual machine instance, and establishing a first connection channel between the management server and the application virtual machine instance.
The IP address of the server where the application virtual machine instance is located can be obtained according to the instance identification information of the application virtual machine instance, such as the name of the application virtual machine instance, by the management server, and the application virtual machine instance is connected based on the remote connection service according to the IP address, the login name and the login password.
It should be noted that, whether the login name and the login password are correct or not is verified, and if the login name and/or the login password are wrong, prompt is performed; and if the login name and the login are correct, connecting the application virtual machine instance, and establishing a first connection channel between the management server and the application virtual machine instance, wherein the first connection channel comprises a first connection channel port number.
And 103, dynamically generating an application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information and the deployment path.
The type information, the agent identification information and the deployment path corresponding to each application agent deployment request are different, so that each different application agent deployment request dynamically generates a corresponding application agent deployment instruction set.
In an embodiment, the step of dynamically generating an application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information, and the deployment path includes: acquiring a basic deployment instruction set matched with the type information of the application agent; and dynamically generating an application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information, the deployment path and the basic deployment instruction set. In this embodiment, different types of information correspond to different basic deployment instruction sets, and then an application agent deployment instruction set corresponding to the application deployment request is dynamically generated according to the different basic deployment instruction sets and the different types of information, the agent identification information, and the deployment path. In this manner, each generated application agent deployment instruction set is made different.
In an embodiment, the step of obtaining the basic deployment instruction set matched with the type information of the application agent includes: generating a file transmission instruction, a decompression instruction, an installation instruction, a deletion instruction, a starting instruction and a state query instruction of the application agent according to the type information of the application agent; and taking the file transmission instruction, the file decompression instruction, the file installation instruction, the file deletion instruction, the file startup instruction and the file status query instruction as a basic deployment instruction set matched with the type information. In some cases, the base deployment instruction set may also not include a delete instruction and/or a status query instruction.
The file transmission instruction is used for transmitting an application agent package (application agent installation package) from an original storage address in the management server to a target storage address in the application virtual machine instance. And the decompression instruction is used for decompressing the application proxy packet and decompressing the application proxy packet in the target storage address into a decompression address. The installation instruction is used for installing the application agent, the deletion instruction is used for deleting the application agent package and the like, the starting instruction is used for starting the application agent, and the state inquiry instruction is used for inquiring the state information of the application agent.
The file transmission instruction, the decompression instruction, the installation instruction, the deletion instruction, the starting instruction and the state query instruction all comprise dynamic updating parts. The dynamic update part can be directly represented by a dynamic update label or a preset character, and also can be represented by a corresponding variable. For example, the dynamic update part in the file transfer instruction includes an original deposit address variable and a target deposit address variable, and the like, and the decompression instruction includes a target deposit address variable and a decompression address variable.
The file transmission instruction, the decompression instruction, the installation instruction, the deletion instruction, the starting instruction and the state query instruction corresponding to different types of information are different. For example, the installation instruction of the application agent of the Oracle database application under the Linux operating system is% s/bin/% s install, and the installation instruction of the application agent of the Oracle database application under the windows operating system is% s \ bin \ InstallTestWrapper-nt.bat; the start instruction under Linux operating system is% s/bin/% s start, while the start instruction under Windows operating system is% s \ bin \ StartTestWrapper-NT.bat. Where,% s represents a dynamic update tag.
In an embodiment, the step of dynamically generating an application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information, the deployment path, and the basic deployment instruction set includes: determining an original storage address of an application agent package of the application agent according to the type information and the agent identification information; generating a target storage address, a decompression path, an installation path, a deletion path and a starting path of the application agent package according to the deployment path, the agent identification information and a preset path generation rule; writing the original storage address, the target storage address, the deployment path, the decompression path, the installation path, the deletion path and the starting path into a basic deployment instruction set so as to dynamically generate an application agent deployment instruction set corresponding to the application agent deployment request. In some cases, a deletion path may not be generated.
And determining an original storage address for storing the application agent package corresponding to the application agent according to the type information and the agent identification information so as to obtain the application agent package corresponding to the application agent from the original storage address.
Because the agent identification information includes the application agent name, the application agent name is not used, and because the deployment path is different, the preset path generation rule may also be different, so that the target storage address, the decompression path, the installation path, the deletion path and the start path generated each time are different.
In an embodiment, the step of writing the original deposit address, the target deposit address, the deployment path, the decompression path, the installation path, the deletion path, and the launch path into the basic deployment instruction set to dynamically generate the application agent deployment instruction set corresponding to the application agent deployment request includes: acquiring a file transmission instruction, a decompression instruction, an installation instruction, a deletion instruction and a starting instruction in a basic deployment instruction set; replacing an original storage address variable, a target storage address variable and a decompression path variable in a decompression instruction in a file transmission instruction by using the original storage address, the target storage address and the decompression path respectively; respectively replacing the dynamic updating parts in the installation instruction, the deletion instruction and the starting instruction by using an installation path, a deletion path and a starting path; and taking the replaced basic deployment instruction set as an application agent deployment instruction set corresponding to the agent deployment request.
In this manner, the application agent deployment instruction set is dynamically obtained.
And 104, deploying the application agent on the application virtual machine instance and starting the application agent by the management server and the application virtual machine instance according to the application agent deployment instruction set by utilizing the first connection channel.
The application agent deploys the instruction set by the management server and the application virtual machine instance execution of one instruction by one instruction. Wherein a part of the instructions are executed in the management server, such as file transmission instructions; and sending another part of instructions, such as an installation instruction, a deletion instruction, a starting instruction and the like, to the application virtual machine instance by using the first connection channel through the management server so as to execute by using the application virtual machine instance.
In an embodiment, the operating system type is a Linux operating system. The step of deploying the application agent on the application virtual machine instance and starting the application agent by using the first connection channel, the management server and the application virtual machine instance according to the application agent deployment instruction set includes: the management server acquires an application agent package of the application agent from an original storage address corresponding to an original storage address variable according to the original storage address variable in the file transmission instruction in the application agent deployment instruction set, and sends the application agent package to a target storage address corresponding to the target storage address variable in the application virtual machine instance through a first connecting channel and the target storage address variable in the file transmission instruction; the management server sends a decompression instruction, an authorization instruction, an installation instruction, a deletion instruction, a starting instruction and a state query instruction in the application agent deployment instruction set to the application virtual machine instance through the first connecting channel; the application virtual machine instance respectively realizes the decompression of the application agent package in the deployment path, the operation authorization and installation of the file corresponding to the application agent obtained after the decompression, the deletion of the application agent package after the installation of the application agent, the starting of the application agent after the installation of the application agent, the inquiry of the starting state of the application agent and the like according to the decompression instruction, the authorization instruction, the installation instruction, the deletion instruction, the starting instruction and the state inquiry instruction.
In this embodiment, the file transfer instruction is executed in the management server, and the decompression instruction, the authorization instruction, the installation instruction, the deletion instruction, the start instruction, the status query instruction, and the like are all executed on the application virtual machine instance, that is, remotely executed.
In one embodiment, a windows operating system is used as an example for illustration. The management server decompresses the application agent packet of the application agent from the original storage address to the preset directory by executing the decompression instruction, transmits the instruction by executing the file transmission instruction so as to transmit the application agent decompressed from the preset directory to the target storage address through the first connecting channel, and deletes the application agent in the preset directory by executing the deletion instruction after transmission is finished. And the management server sends the installation instruction and the starting instruction to the application virtual machine instance through the first connecting channel. And the application virtual machine instance executes the installation instruction so as to install the application agent into the application virtual machine instance, and after the installation is finished, the starting instruction is executed to start the application agent. Further, the management server may access the agent service interface of the application agent through the status query interface to view the status information of the application agent. In this embodiment, a decompression instruction, a file transfer instruction, a deletion instruction, and the like are executed in the management server, and an installation instruction, a start instruction, and the like are executed in the application virtual machine instance. Correspondingly, the decompressed address in the decompressed instruction, the deleted path in the deleted instruction, and the like can be generated according to a preset directory in the management server without generating through the deployed path.
In an embodiment, as shown in fig. 2, the application deployment method further includes:
and 105, the management server acquires the service IP and the service port of the application agent, calls a first data synchronization interface of the easy-to-prepare system, and sends the service IP, the service port, the type information, the agent identification information and the login information to the easy-to-prepare server of the easy-to-prepare system.
The service IP, the service port, the type information, the agent identification information, the login information and the like are sent to the easy-to-prepare server of the easy-to-prepare system, so that an application agent in the application virtual machine instance and the easy-to-prepare server in the easy-to-prepare system are communicated with each other, the access speed between the easy-to-prepare platform and the easy-to-cloud platform is accelerated, and meanwhile, when the application of the easy-to-prepare platform is abnormal, the application virtual machine instance can be directly switched to be accessed, so that the disaster tolerance performance is improved. And when the application virtual machine instance is the witness server instance, monitoring the corresponding database application in the ready system through the witness server instance, and realizing the fault transfer function of the corresponding database application in the ready system.
In the embodiment, after receiving the application agent deployment request, the management server automatically deploys the application agent on the application virtual machine instance and starts the application agent, so that the application agent is automatically deployed, and the deployment efficiency of the application agent is improved; in the process of automatically deploying the application agent, an application agent deployment instruction set corresponding to the application agent deployment request is dynamically generated according to the type information, the agent identification information and the deployment path, and the application agent is remotely deployed according to the application agent deployment instruction. The application deployment method in the embodiment of the application is highly automatic, the efficiency of deployment of various application agents is greatly improved, the data safety problem caused by manual misoperation is greatly reduced, and the data operation and maintenance cost is reduced.
Hereinafter, an example of an application virtual machine is taken as an example of a witness server, and a process of deploying the witness server to obtain the witness server is introduced.
Fig. 4 is a schematic view of another application scenario of the application deployment method according to the embodiment of the present application. The application scene also comprises a cloud-prone platform and a standby platform. The witness server instance is created in a resource pool of the easy cloud platform, and is an instance of a witness server corresponding to the database application A in the easy cloud platform. The easy-to-prepare platform comprises a database application A in a production environment and a database application A in a backup environment. And witnessing the server instance (corresponding to the database application A) to monitor the database application A in the production environment, backup the database application A in the production environment, and support the realization of the failover function of the database application A. The database application a may be an Oracle database application, an sql server database application, a mySql database application, or another type of database. Correspondingly, the application agents are respectively an application agent of Oracle database application, an application agent of sql Server database application and an application agent of mySql database application. After the witness server is deployed, the application agent of the witness server may be deployed by the application deployment method in the above embodiment.
The following embodiments describe in detail how witness servers are deployed to obtain witness server instances.
Referring to fig. 5, fig. 5 is a flowchart illustrating an application deployment method provided in an embodiment of the present application, where the application deployment method is used to deploy a witness server of a database to obtain an instance of the witness server. The application deployment method comprises the following steps.
The method comprises the following steps that 201, a management server receives a server deployment request of a database witness server, the server deployment request is triggered by a server deployment interface, the server deployment request comprises type information of a witness server template, witness identification information of the witness server template, instance configuration information corresponding to the witness server and database configuration information, an operating system, a database application and remote connection service are integrated in the witness server template, and the version of the database application is consistent with that of the corresponding database application stored on an easy-to-prepare server.
The client of the cloud platform comprises a server deployment interface, and the server deployment interface can be an independent webpage interface or formed by a plurality of different webpage interfaces. Various configuration information corresponding to the witness deployment server, such as type information of the witness deployment server template, witness identification information of the witness deployment server template, instance configuration information corresponding to the witness deployment server, database configuration information and the like, is input through the server deployment interface. And generating a server deployment request of the database witness server according to the configuration information, and sending the server deployment request to a management server of the cloud platform. And the management server receives the server deployment request and automatically deploys the database witness server according to the configuration information. Therefore, the arrangement of the witness server can be automatically realized only by simply inputting the configuration information in the server arrangement interface by the user, the arrangement efficiency of the witness server is improved, the arrangement can be finished without professional technicians, and the labor cost is reduced.
The witness server template is required to be manufactured in advance, a virtual machine instance which is installed with a database application and remote connection service can be manufactured into the template to form the witness server template, the witness server template is uploaded to the cloud platform, a link corresponding to the witness server template is generated, and the link is stored to obtain a storage address. The witness template includes an operating system, a database application, and a remote connection service. The operating system in the witness server template is the same as the operating system of the database application to be monitored in the easy-to-prepare platform, the database application is also consistent with the database application to be monitored (such as a database application type and a database version) in the easy-to-prepare platform, and the remote connection service is also consistent with the remote connection service of the database application to be monitored in the easy-to-prepare platform.
It should be noted that the witness template includes an operating system, a database application and a remote connection service, so that the operating system, the database application and the remote connection service can be installed at one time when the witness is deployed, and the operating system, the database application and the remote connection service are not required to be installed for multiple times, so that the efficiency of deploying the witness is improved, installation is automatically completed at one time, labor cost is reduced, and errors are not easy to occur.
As shown in fig. 6a, fig. 6b, and fig. 6c, schematic diagrams of server deployment interfaces provided in the embodiments of the present application are shown. A witness template for the database witness is selected in the server deployment interface in fig. 6 a. The witness template includes type information of the witness template and witness identification information of the witness template. The witness identification information of the witness server template comprises information such as the name of the witness server template. For example, the name of the selected witness server template is Linux-oracle11 g. The name includes information such as an operating system (Linux), a database application type (Oracle), and a database version (11 g). And responding to the template selection operation of the witness server template of the server deployment interface, and determining the selected witness server template, wherein the witness server template comprises type information and witness identification information.
In fig. 6b, the instance configuration information of the witness server to be deployed is configured, and the instance configuration information includes the name of the witness server instance, the type of the resource, the selected resource domain, the selected instance template, the network information, and the like. Wherein, the witness server instance name refers to the instance name of the witness server to be deployed; the resource type comprises internal resources, and the witness server is deployed by using the resources on the easy cloud platform to obtain a witness server instance; the resource domain is that a witness server is deployed on a certain resource domain corresponding to the resource type; the template refers to template information of the witness server to be deployed, and the template information comprises information such as the number of cores and the number of memories of a CPU (central processing unit); the network information refers to information such as a network segment occupied by the witness server to be deployed, and understandably, the witness server needs to have a service IP, and the network segment where the service IP is located.
And in response to the configuration input/configuration selection operation of the witness server instance configuration of the server deployment interface by the user, determining instance configuration information corresponding to the configuration input/configuration selection operation.
The database configuration information of the witness server to be deployed is configured in fig. 6 c. The database configuration information includes a database name and a database password. It is understood that after the witness server deployment is completed, the database name and password of the corresponding database application may be modified according to the configured database configuration information.
The database configuration information is determined in response to a configuration input/configuration selection operation for the witness server configuration for the server deployment interface.
In fig. 6c, in response to an input determination operation (e.g., triggering a deployment button or a determination button on the server deployment interface) for the server deployment interface, determining the type information of the inputted witness template and witness identification information of the witness template, instance configuration information of the witness server, and database configuration information, generating a server deployment request, and sending the server deployment request to the management server.
And the management server receives the server deployment request and automatically completes the deployment of the witness server according to the server deployment request.
202, the management server automatically deploys the witness server according to the type information, witness identification information, instance configuration information and database configuration information of the witness server template to obtain the witness server instance.
And the witness servers are automatically deployed, so that the efficiency of deploying the witness servers is improved.
In one embodiment, as shown in fig. 7, step 202 includes the following steps 2021 to 2023.
2021, determining the storage address of the witness template according to the type information and witness identification information of the witness template.
And storing the storage address of each witness server template in the cloud platform, and determining the corresponding storage address according to the type information and witness identification information of the witness server in the server deployment request after the management server receives the server deployment request.
2022, according to the resource type, the resource domain and the network information in the instance configuration information, determining a target server from the servers corresponding to the resource domain and the network information.
If the resource type is an internal resource, a resource pool inside the easy cloud platform is used, and the resource pool inside the easy cloud platform can include one or more resource pools. According to the resource domain, a target resource pool can be determined, and a target server and information such as an IP address corresponding to the target server are determined from servers of the target resource pool according to network information.
2023, importing the witness template from the saved address to the target server, so that the target server calls the preset instance creation interface to create the witness server based on the witness template to obtain the witness instance.
The witness server may be created using cloudstock technology, and correspondingly, the preset instance creation interface includes an instance creation interface encapsulated using cloudstock technology. And decompressing the witness server template by utilizing the preset instance creating interface to obtain information such as an operating system, a database application, a remote login service and the like, then installing the operating system, installing the database application and the remote login service, and determining the virtual machine instance provided with the operating system, the database application and the remote login service as the witness server instance.
The obtained witness instance is consistent with the information in the witness template, but in general, some modification of the configuration information is also required to the obtained witness instance.
In one embodiment, step 202 further includes the following steps 2024 to 2025.
2024, the management server connects with the corresponding remote connection service and the remote connection service of the witness instance to obtain a second connection channel.
Because the management server is integrated with the remote connection service and the witness server instance is also integrated with the remote connection service, the management server is connected with the remote connection service in the witness server instance through the corresponding remote connection service to obtain a second connection channel.
2025, using the second connection channel, according to the instance configuration information and the database configuration information, calling a preset instance modification interface to modify the corresponding configuration information of the witness instance, and setting the monitoring information of the witness instance and the failover function of the witness instance to complete the deployment of the witness instance.
And calling a preset instance modification interface to modify the corresponding configuration information of the witness server instance according to the instance template in the instance configuration information, the instance name of the witness server and the database login name and login password in the database configuration information. For example, the instance name of the witness server instance is modified to be the instance name set in the server deployment interface, the number of CPU cores and the size of the memory of the witness server instance are modified to be the number of CPU cores and the size of the memory of the instance template selected in the server deployment interface, and similarly, the database login name and the login password corresponding to the witness server instance are modified to be the login name and the login password set in the server deployment interface.
Wherein the default instance modification interface comprises an instance modification interface encapsulated using cloudstock technology. And searching a corresponding instance configuration file by using the preset instance modification interface, modifying the instance name of the corresponding witness server instance, the CPU core number, the memory size and the like of the witness server instance from the corresponding instance configuration file, searching a corresponding database configuration file, and modifying the corresponding database login name and login password from the corresponding database configuration file. In some cases, the database configuration file and the instance configuration file may be the same file or separate files.
Furthermore, a preset instance modification interface can be called through a second connecting channel to set monitoring information of the witness server and set a fault transfer function of the witness server instance, so that the deployment of the witness server is completed. Specifically, the configuration files such as the corresponding monitoring fault and the like are searched through a preset instance modification interface, and modification is performed from the corresponding configuration files. Wherein, the monitoring information of the witness server is set, which comprises: starting the monitoring function of the witness server, and the like. Setting a failover function of the witness instance, comprising: starting or closing a fault transfer function, setting fault transfer time, setting a fault transfer target (such as transferring a database application to a database application in a backup environment after the database application in a production environment fails), and the like.
Therefore, the creation of the witness server instance and the modification of the configuration information are automatically completed to complete the deployment of the witness server, the speed and the efficiency of the deployment of the witness server are improved, the implementation is realized without using scripts or commands by professionals, and the labor cost is reduced.
In an embodiment, after step 102, the method further includes: and the management server sends the instance configuration information and the database configuration information of the witness server instance to the easy-to-prepare server so that the local easy-to-prepare server stores the instance configuration information and the database configuration information.
Fig. 8 is a schematic structural diagram of an application deployment system according to an embodiment of the present application. The application deployment system comprises a client of the easy cloud platform, a management server, a target server and an easy-to-prepare server of the easy-to-prepare platform. Wherein the application agent is deployed in the target server. Prior to deploying the application agent in the target server, an application server instance (witness instance) has been deployed in the target server.
The client is used for responding to input/selection operation aiming at the application agent deployment interface, and determining the type information and agent identification information of the input/selected application agent, the instance identification information of the application virtual machine instance, the login information of the application virtual machine instance, the deployment path of the application agent and the like; responding to input determination operation aiming at an application agent deployment interface, and generating an application agent deployment request according to information such as type information and agent identification information of an application agent, instance identification information of an application virtual machine instance, login information of the application virtual machine instance, and a deployment path of the application agent; the application virtual machine instance is integrated with a remote connection service matched with an operating system of the application virtual machine instance.
The management server is also integrated with a remote connection service matched with an operating system of the application virtual machine instance.
The management server is used for receiving the application agent deployment request, connecting the application virtual machine instance according to the instance identification information and the login information of the application virtual machine instance based on the remote connection service, and establishing a first connection channel between the management server and the application virtual machine instance; and dynamically generating an application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information and the deployment path.
And the application virtual machine instances in the management server and the target server deploy the application agents on the application virtual machine instances according to the application agent deployment instruction set by utilizing the first connecting channel and start the application agents.
In an embodiment, when the step of dynamically generating the application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information, and the deployment path is executed, the management server specifically executes: acquiring a basic deployment instruction set matched with the type information; and generating an application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information, the deployment path dynamic state and a basic deployment instruction set.
In an embodiment, when the step of obtaining the basic deployment instruction set matched with the type information is executed, the management server specifically executes: generating a file transmission instruction, a decompression instruction, an installation instruction, a deletion instruction, a starting instruction and a state query instruction of the application agent according to the type information of the application agent; and taking the file transmission instruction, the file decompression instruction, the file installation instruction, the file deletion instruction, the file startup instruction and the file status query instruction as a basic deployment instruction set matched with the type information. In some cases, the base deployment instruction set may also not include a delete instruction and/or a status query instruction.
In an embodiment, when executing the step of generating the application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information, the deployment path dynamic state, and the basic deployment instruction set, the management server specifically executes: determining an original storage address of an application agent package of the application agent according to the type information and the agent identification information; generating a target storage address, a decompression path, an installation path, a deletion path and a starting path of the application agent package according to the deployment path, the agent identification information and a preset path generation rule; writing the original storage address, the target storage address, the deployment path, the decompression path, the installation path, the deletion path and the starting path into a basic deployment instruction set so as to dynamically generate an application agent deployment instruction set corresponding to the application agent deployment request. In some cases, a deletion path may not be generated.
In an embodiment, when executing the step of writing the original storage address, the target storage address, the deployment path, the decompression path, the installation path, the deletion path, and the start path into the basic deployment instruction set to dynamically generate the application agent deployment instruction set corresponding to the application agent deployment request, the management server specifically executes: acquiring a file transmission instruction, a decompression instruction, an installation instruction, a deletion instruction and a starting instruction in a basic deployment instruction set; replacing an original storage address variable and a target storage address variable in the file transmission instruction and a decompression path variable in the decompression instruction by using the original storage address, the target storage address and the decompression path respectively; respectively replacing the dynamic updating parts in the installation instruction, the deletion instruction and the starting instruction by using an installation path, a deletion path and a starting path; and taking the replaced basic deployment instruction set as an application agent deployment instruction set corresponding to the agent deployment request.
In an embodiment, the management server is configured to obtain an application agent package of the application agent from an original storage address corresponding to an original storage address variable according to the original storage address variable in the file transmission instruction in the application agent deployment instruction set, and send the application agent package to a target storage address corresponding to a target storage address variable in the application virtual machine instance through the first connection channel and the target storage address variable in the file transmission instruction; and sending a decompression instruction, an authorization instruction, an installation instruction, a deletion instruction, a starting instruction and a state query instruction in the application agent deployment instruction set to the application virtual machine instance through the first connecting channel. And the application virtual machine instance of the target server is used for respectively decompressing the application agent package in the deployment path, operating and authorizing the file corresponding to the application agent obtained after decompression and installing, deleting the application agent package after the installation of the application agent is finished, starting the application agent after the installation of the application agent is finished, and inquiring the starting state of the application agent according to the decompression instruction, the authorization instruction, the installation instruction, the deletion instruction, the starting instruction and the state inquiry instruction.
In an embodiment, the management server is configured to decompress, by executing a decompression instruction, an application agent package of an application agent from an original storage address to a preset directory, transmit, by executing a file transmission instruction, the application agent decompressed in the preset directory to a target storage address through a first connection channel, and delete, by executing a deletion instruction, the application agent in the preset directory after transmission is completed; and sending the installation instruction and the starting instruction to the application virtual machine instance through the first connecting channel. Correspondingly, the application virtual machine instance of the target server is used for executing the installation instruction so as to install the application agent into the application virtual machine instance, and after the installation is completed, the starting instruction is executed to start the application agent.
In an embodiment, the management server is further configured to obtain a service IP and a service port of the application agent, call the first data synchronization interface of the easy-to-provision system, and send the service IP and the service port, the type information, the agent identification information, and the login information to the easy-to-provision server of the easy-to-provision system.
The application deployment system completes automatic deployment of the application agent.
In one embodiment, the application virtual machine instance comprises a witness instance, and the following application deployment system is described by taking deployment of a witness as an example.
The client is also used for responding to the input/selection operation aiming at the server deployment interface, and determining the type information of the input/selected witness server template, witness identification information of the witness server template, instance configuration information corresponding to the witness server, database configuration information and the like; responding to input determination operation aiming at a server deployment interface, and generating a server deployment request of a database witness server according to the type information of the witness server template, witness identification information of the witness server template, instance configuration information corresponding to the witness server, database configuration information and other information; the witness server template is integrated with an operating system, a database application and a remote connection service, and the version of the database application is consistent with that of the corresponding database application on the easy-to-prepare server.
And the management server is also used for automatically deploying the witness server according to the type information of the witness server template, the witness identification information, the instance configuration information and the database configuration information so as to obtain a witness server instance.
In an embodiment, when executing the step of automatically deploying the witness server according to the type information of the witness server template, the witness identification information, the instance configuration information, and the database configuration information to obtain the witness server instance, the management server specifically executes: determining a storage address of the witness server template according to the type information of the witness server template and the witness identification information; according to the resource type, the resource domain and the network information in the example configuration information, determining a target server from the servers determined by the resource domain corresponding to the resource type and the network information; importing the witness server template into a target server from the saved address so that the target server calls a preset instance creation interface to create the witness server based on the witness server template to obtain a witness server instance; the management server is connected with the remote connection service of the witness server instance through the corresponding remote connection service to obtain a second connection channel; and calling a preset instance modification interface to modify the corresponding configuration information of the witness server instance, setting monitoring information of the witness server instance, and starting or closing the fault transfer function of the witness server instance by using the second connection channel according to the instance configuration information and the database configuration information so as to complete the deployment of the witness server.
In specific implementation, each server may be an independent server or a server cluster. The specific implementation process of the server and the achieved beneficial effects may refer to the corresponding description in the foregoing method embodiments, and are not described herein again for convenience and brevity of description.
It is noted that each of the servers described above may include one or more processors of the processing core, one or more memories of the computer readable storage medium, a power supply, radio frequency circuitry, and the like. In this embodiment, the processor in each server loads the executable file corresponding to the thread of one or more application programs into the memory according to the following instructions, and the processor runs the application programs stored in the memory, thereby implementing the functions that can be performed by each server.
Each server combination can implement the steps in any embodiment of the application deployment method provided in the embodiment of the present application, and therefore, the beneficial effects that can be achieved by any application deployment method provided in the embodiment of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions (computer programs) which are stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the instructions (computer programs). To this end, an embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps of any embodiment of the application deployment method provided in the embodiment of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any application deployment method embodiment provided in the embodiment of the present invention, beneficial effects that can be achieved by any application deployment method provided in the embodiment of the present invention may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The application deployment method, the application deployment system, and the computer-readable storage medium provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. An application deployment method, comprising:
the method comprises the steps that a management server receives an application agent deployment request, the application agent deployment request is triggered by an application agent deployment interface, the application agent deployment request comprises type information and agent identification information of an application agent, instance identification information of an application virtual machine instance, login information of the application virtual machine instance and a deployment path of the application agent, the type information and the agent identification information, the login information, the instance identification information and the deployment path are input through the application agent deployment interface, the type information of the application agent is consistent with the type information of the application virtual machine instance, and remote connection services matched with an operating system of the application virtual machine instance are integrated in both the application virtual machine instance and the management server;
based on the remote connection service, connecting the application virtual machine instance according to the instance identification information and the login information of the application virtual machine instance, and establishing a first connection channel between the management server and the application virtual machine instance;
dynamically generating an application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information and the deployment path;
deploying, by the management server and the application virtual machine instance, the application agent on the application virtual machine instance according to the application agent deployment instruction set and starting the application agent, by using the first connection channel;
wherein the step of dynamically generating an application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information and the deployment path includes:
acquiring a basic deployment instruction set matched with the type information;
determining an original storage address of an application agent package of the application agent according to the type information and the agent identification information;
generating a target storage address, a decompression path, an installation path and a starting path of the application agent package according to the deployment path, the agent identification information and a preset path generation rule;
writing the original deposit address, the target deposit address, the decompression path, the installation path and the starting path into the basic deployment instruction set so as to dynamically generate an application agent deployment instruction set corresponding to the application agent deployment request.
2. The application deployment method according to claim 1, wherein the step of writing the original deposit address, the target deposit address, the decompression path, the installation path, and the boot path into the base deployment instruction set to dynamically generate the application agent deployment instruction set corresponding to the application agent deployment request includes:
acquiring a file transmission instruction, a decompression instruction, an installation instruction and a starting instruction in the basic deployment instruction set;
replacing an original storage address variable and a target storage address variable in the file transmission instruction, and replacing a decompression path variable in the decompression instruction by using the original storage address, the target storage address and the decompression path respectively;
replacing the dynamic updating part in the installation instruction and the starting instruction by using the installation path and the starting path respectively;
and taking the replaced basic deployment instruction set as an application agent deployment instruction set corresponding to the agent deployment request.
3. The application deployment method of claim 1, wherein the step of deploying the application agent on the application virtual machine instance and starting the application agent by the management server and the application virtual machine instance according to the application agent deployment instruction set using the first connection channel comprises:
the management server acquires an application agent package of the application agent from an original storage address corresponding to an original storage address variable according to the original storage address variable in a file transmission instruction in the application agent deployment instruction set, and sends the application agent package to a target storage address corresponding to the target storage address variable in the application virtual machine instance through the first connecting channel and the target storage address variable in the file transmission instruction;
the management server sends a decompression instruction, an installation instruction and a starting instruction in the application agent deployment instruction set to the application virtual machine instance through the first connecting channel;
and the application virtual machine instance respectively realizes the decompression of the application agent packet in the deployment path, the installation of the application agent obtained after the decompression and the starting of the application agent after the installation of the application agent is finished according to the decompression instruction, the installation instruction and the starting instruction.
4. The application deployment method of claim 1, further comprising:
and the management server acquires the service IP and the service port of the application agent, calls a first data synchronization interface of the easy-to-prepare system, and sends the service IP and the service port, the type information, the agent identification information and the login information to the easy-to-prepare server of the easy-to-prepare system.
5. The application deployment method of claim 1, wherein the application virtual machine instance comprises a witness instance, and wherein prior to the step of the management server receiving an application agent deployment request, the application deployment method further comprises:
the management server receives a server deployment request of a database witness server, the server deployment request is triggered by a server deployment interface, the server deployment request comprises type information of a witness server template, witness identification information of the witness server template, instance configuration information corresponding to the witness server and database configuration information, an operating system, a database application and remote connection service are integrated in the witness server template, and the version of the database application is consistent with that of a corresponding database application on an easy-to-prepare server;
and the management server automatically deploys the witness server according to the type information of the witness server template, the witness identification information, the instance configuration information and the database configuration information to obtain a witness server instance.
6. The application deployment method of claim 5, wherein the step of automatically deploying, by the management server, the witness server according to the type information of the witness server, the witness identification information, the instance configuration information, and the database configuration information to obtain the witness server instance comprises:
determining a storage address of the witness server template according to the type information of the witness server template and the witness identification information;
according to the resource type, the resource domain and the network information in the example configuration information, determining a target server from the servers determined by the resource domain corresponding to the resource type and the network information;
and importing the witness server template into a target server from the saved address, so that the target server calls a preset instance creation interface to create the witness server based on the witness server template to obtain a witness server instance.
7. The application deployment method of claim 6, further comprising, after the step of creating the witness server:
the management server is connected with the remote connection service of the witness server instance through the corresponding remote connection service to obtain a second connection channel;
and calling a preset instance modification interface to modify the corresponding configuration information of the witness server instance, setting monitoring information of the witness server instance, and starting or closing the fault transfer function of the witness server instance by using the second connection channel according to the instance configuration information and the database configuration information so as to complete the deployment of the witness server.
8. An application deployment system is characterized by comprising a management server and a target server, wherein the target server comprises an application virtual machine instance, and the application virtual machine instance is arranged in the target server,
the management server is used for receiving an application agent deployment request, the application agent deployment request is triggered by an application agent deployment interface, the application agent deployment request comprises type information and agent identification information of an application agent, instance identification information of an application virtual machine instance, login information of the application virtual machine instance and a deployment path of the application agent, the type information and the agent identification information, the login information, the instance identification information and the deployment path are input through the application agent deployment interface, the type information of the application agent is consistent with the type information of the application virtual machine instance, and remote connection services matched with an operating system of the application virtual machine instance are integrated in both the application virtual machine instance and the management server;
based on the remote connection service, connecting the application virtual machine instance according to the instance identification information and the login information of the application virtual machine instance, and establishing a first connection channel between the management server and the application virtual machine instance;
dynamically generating an application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information and the deployment path;
the management server and the application virtual machine instance are used for deploying the application agent on the application virtual machine instance according to the application agent deployment instruction set and starting the application agent by using the first connection channel;
wherein, when executing the step of dynamically generating the application agent deployment instruction set corresponding to the application agent deployment request according to the type information, the agent identification information and the deployment path, the management server specifically executes:
acquiring a basic deployment instruction set matched with the type information;
determining an original storage address of an application agent package of the application agent according to the type information and the agent identification information;
generating a target storage address, a decompression path, an installation path and a starting path of the application agent package according to the deployment path, the agent identification information and a preset path generation rule;
writing the original deposit address, the target deposit address, the decompression path, the installation path and the starting path into the basic deployment instruction set so as to dynamically generate an application agent deployment instruction set corresponding to the application agent deployment request.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, which when executed by a processor, implements the steps in the application deployment method of any of the preceding claims 1 to 7.
CN202111157660.7A 2021-09-30 2021-09-30 Application deployment method, application deployment system, and computer-readable storage medium Active CN113590169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111157660.7A CN113590169B (en) 2021-09-30 2021-09-30 Application deployment method, application deployment system, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111157660.7A CN113590169B (en) 2021-09-30 2021-09-30 Application deployment method, application deployment system, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN113590169A CN113590169A (en) 2021-11-02
CN113590169B true CN113590169B (en) 2021-12-21

Family

ID=78242673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111157660.7A Active CN113590169B (en) 2021-09-30 2021-09-30 Application deployment method, application deployment system, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN113590169B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363332B (en) * 2021-12-27 2024-01-23 徐工汉云技术股份有限公司 Remote automatic operation and maintenance method based on distributed gateway
CN114338674B (en) * 2021-12-30 2023-08-18 天翼物联科技有限公司 Multi-agent automatic deployment method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611569A (en) * 2011-12-21 2012-07-25 华为技术有限公司 Path display method and device in service deployment and communication system
CN112162766A (en) * 2020-09-16 2021-01-01 银盛支付服务股份有限公司 Linux script application deployment method, system, computer equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110009B (en) * 2009-12-28 2014-06-11 中国移动通信集团公司 Method for deploying application in virtual platform and virtual platform manager
CN103197952B (en) * 2012-01-09 2017-08-25 华为技术有限公司 The management system and method disposed for application system maintenance based on cloud infrastructure
PL3672199T3 (en) * 2017-09-19 2022-09-12 Huawei Technologies Co., Ltd. Application deployment method, apparatus and system
CN108847950B (en) * 2018-04-02 2022-06-07 重庆金融资产交易所有限责任公司 Electronic device, cloud system software automatic deployment method and storage medium
US10942719B2 (en) * 2018-05-15 2021-03-09 Ingram Micro Inc. System and method for connector development and integration channel development
CN110855746A (en) * 2019-10-12 2020-02-28 重庆金融资产交易所有限责任公司 Middleware management method, electronic device and storage medium
US11307887B2 (en) * 2019-12-02 2022-04-19 American Megatrends International, Llc Server deployment method and system in hypervisor architecture
CN111367669B (en) * 2020-03-02 2023-08-15 北京小米松果电子有限公司 Method, device and medium for determining optimal operation path
CN112688804B (en) * 2020-12-18 2023-09-19 中国平安财产保险股份有限公司 Service platform deployment method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611569A (en) * 2011-12-21 2012-07-25 华为技术有限公司 Path display method and device in service deployment and communication system
CN112162766A (en) * 2020-09-16 2021-01-01 银盛支付服务股份有限公司 Linux script application deployment method, system, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113590169A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
EP2696532A2 (en) Method, server and system for starting application
CN113590169B (en) Application deployment method, application deployment system, and computer-readable storage medium
CN107741852B (en) Service deployment method based on cluster software
CN108959385B (en) Database deployment method, device, computer equipment and storage medium
CN108667639B (en) Resource management method and management server in private cloud environment
CN112860282B (en) Cluster plug-in upgrading method, device and server
CN107911467B (en) Service operation management system and method for scripted operation
EP4033349A1 (en) Method and apparatus for generating mirror image file, and computer-readable storage medium
CN113572862A (en) Cluster deployment method and device, electronic equipment and storage medium
CN111582824B (en) Cloud resource synchronization method, device, equipment and storage medium
CN111464603B (en) Server capacity expansion method and system
CN114168179A (en) Micro-service management method, device, computer equipment and storage medium
CN106547602B (en) Method for manufacturing operating system mirror image suitable for iSCSI protocol remote wireless loading
CN117056115B (en) Application program repairing method and device, storage medium and electronic equipment
CN113596087A (en) Application upgrading method and device and computer readable storage medium
CN115357198B (en) Mounting method and device of storage volume, storage medium and electronic equipment
CN109639629B (en) Data access processing method and device, computer equipment and storage medium
CN115309457B (en) Restarting method and device of application instance, electronic equipment and readable storage medium
CN115665265A (en) Request processing method, device, equipment, storage medium and system
CN112269601B (en) BMC (baseboard management controller) and component asset information management method, device and storage medium thereof
CN109101253B (en) Management method and device for host in cloud computing system
CN111240589A (en) Partition isolation-based system management method, device, equipment and storage medium
CN114691125B (en) Method, system, medium and electronic equipment for applying resource mapping conversion
CN113590341B (en) Service component calling method and device, computer equipment and storage medium
KR102286148B1 (en) Method and system for providing personalized font service

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Application deployment method, application deployment system and computer readable storage medium

Effective date of registration: 20220628

Granted publication date: 20211221

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: Wuhan Sitong Information Service Co.,Ltd.

Registration number: Y2022420000200

PE01 Entry into force of the registration of the contract for pledge of patent right
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 430070 No. 1, 2 and 10, floors 1-3, building A7, Rongke Zhigu industrial project phase I, No. 555, Wenhua Avenue, Hongshan District, Wuhan City, Hubei Province

Patentee after: Wuhan Barda Technology Co.,Ltd.

Address before: 430070 No. 1, 2 and 10, floors 1-3, building A7, Rongke Zhigu industrial project phase I, No. 555, Wenhua Avenue, Hongshan District, Wuhan City, Hubei Province

Patentee before: Wuhan Sitong Information Service Co.,Ltd.

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230625

Granted publication date: 20211221

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: Wuhan Sitong Information Service Co.,Ltd.

Registration number: Y2022420000200

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Application deployment methods, application deployment systems, and computer-readable storage media

Effective date of registration: 20230627

Granted publication date: 20211221

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: Wuhan Barda Technology Co.,Ltd.

Registration number: Y2023420000262

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20211221

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: Wuhan Barda Technology Co.,Ltd.

Registration number: Y2023420000262

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Application deployment methods, application deployment systems, and computer-readable storage media

Granted publication date: 20211221

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: Wuhan Barda Technology Co.,Ltd.

Registration number: Y2024980007424

PE01 Entry into force of the registration of the contract for pledge of patent right