CN106886434B - Distributed application installation method and device - Google Patents

Distributed application installation method and device Download PDF

Info

Publication number
CN106886434B
CN106886434B CN201611234720.XA CN201611234720A CN106886434B CN 106886434 B CN106886434 B CN 106886434B CN 201611234720 A CN201611234720 A CN 201611234720A CN 106886434 B CN106886434 B CN 106886434B
Authority
CN
China
Prior art keywords
installation
target node
distributed application
directory
application
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
CN201611234720.XA
Other languages
Chinese (zh)
Other versions
CN106886434A (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.)
Shanxi Great Wisdom Water Conservancy Technology Co., Ltd
Original Assignee
Shanxi Great Wisdom Water Conservancy Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanxi Great Wisdom Water Conservancy Technology Co Ltd filed Critical Shanxi Great Wisdom Water Conservancy Technology Co Ltd
Priority to CN201611234720.XA priority Critical patent/CN106886434B/en
Publication of CN106886434A publication Critical patent/CN106886434A/en
Application granted granted Critical
Publication of CN106886434B publication Critical patent/CN106886434B/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/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a distributed application installation method and a distributed application installation device, which are used for solving the problem of low efficiency of a distributed application installation method in the prior art. The method comprises the following steps: acquiring Internet protocol IP addresses and login parameters corresponding to a plurality of target nodes needing to be deployed in the distributed application; acquiring installation configuration parameters corresponding to the distributed application, wherein the installation configuration parameters comprise information of a main node and a slave node in the target node; and installing the installation package of the distributed application on the target nodes according to the IP addresses, the login parameters and the installation configuration parameters of the target nodes.

Description

Distributed application installation method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a distributed application installation method and apparatus.
Background
With the development of science and technology, the degree of informatization is continuously improved, the requirements of people on the processing capacity of computers are higher and higher, and because the processing capacity of one computer often cannot meet the requirements of people sometimes, distributed computing is carried out at the same time. Distributed computing divides a problem which needs huge computing power to solve into a plurality of small parts, then distributes the small parts to a plurality of computers for processing, and finally integrates the computing results to obtain a final result.
Distributed computing involves multiple computers, each of which is commonly referred to as a node, and any one of which may be configured as a master node and the remaining computers as slave nodes. The master node is used for controlling the slave nodes and further processing the processing results returned by the slave nodes to obtain final processing results.
Although distributed computing can meet the requirements of people on the processing capacity of a computer, the installation of distributed applications has the following disadvantages:
in the prior art, applications are generally installed for computers in distributed computing, which need to install the applications, in a manner of manually installing the applications. Because the number of computers in distributed computing is large, the manual installation of the application will take a long time, and the efficiency is low.
Disclosure of Invention
The embodiment of the application provides a method and a device for installing a distributed application, and the method and the device are used for solving the problem that the installation method of the distributed application in the prior art is low in efficiency.
The embodiment of the application adopts the following technical scheme:
a distributed application installation method, comprising:
acquiring Internet Protocol (IP) IP addresses and login parameters corresponding to a plurality of target nodes needing to be deployed in distributed application;
acquiring installation configuration parameters corresponding to the distributed application, wherein the installation configuration parameters comprise information of a main node and a slave node in the target node;
and installing the installation package of the distributed application on the target nodes according to the IP addresses, the login parameters and the installation configuration parameters of the target nodes.
A distributed application installation method, the method comprising:
receiving an application installation script template, installation configuration parameters, an installation package of the distributed application and an execution instruction, which are sent by a first distributed application installation device and correspond to the installation package of the distributed application, wherein the execution instruction is used for indicating the installation of the distributed application;
generating an application installation script according to the application installation script template and the installation configuration parameters, wherein the application installation script is used for executing an installation package for installing the distributed application;
and running the application installation script according to the execution instruction.
A first distributed application installation apparatus, the apparatus comprising:
the system comprises an acquisition module, a configuration module and a management module, wherein the acquisition module is used for acquiring Internet Protocol (IP) addresses and login parameters corresponding to a plurality of target nodes needing to be deployed in the distributed application;
the acquisition module is further configured to acquire installation configuration parameters corresponding to the distributed application, where the installation configuration parameters include information of a master node and a slave node in the target node;
and the installation module is used for installing the installation package of the distributed application on the target nodes according to the IP addresses, the login parameters and the installation configuration parameters of the target nodes.
A second distributed application installation apparatus deployed on a target node for installing a distributed application, the apparatus comprising:
a receiving module, configured to receive an application installation script template, an installation configuration parameter, an installation package of the distributed application, and an execution instruction, where the application installation script template, the installation configuration parameter, the installation package of the distributed application, and the execution instruction are sent by a first distributed application installation apparatus, and the execution instruction is used to instruct to install the distributed application on the target node;
the generating module is used for generating an application installation script according to the application installation script template and the installation configuration parameters, and the application installation script is used for executing an installation package for installing the distributed application;
and the running module is used for running the application installation script according to the execution instruction.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
on one hand, the installation package of the distributed application is installed on the target nodes according to the IP addresses, the login parameters and the installation configuration parameters of the target nodes, so that the installation efficiency of the distributed application can be improved, and the problem of low efficiency of an installation method of the distributed application in the prior art can be solved.
On the other hand, according to the application installation script template, the installation configuration parameters, the installation package of the distributed application and the execution instruction corresponding to the installation package of the distributed application sent by the first distributed application installation device, the application installation script is generated and operated so as to install the distributed application on the first target node, so that the installation efficiency of the distributed application can be improved, and the problem of low efficiency of the installation method of the distributed application in the prior art can be solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic specific flowchart of a distributed application installation method according to an embodiment of the present application;
fig. 2 is a schematic specific flowchart of another distributed application installation method according to an embodiment of the present application;
fig. 3 is a schematic specific flowchart of another distributed application installation method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a specific distributed application installation apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another specific distributed application installation apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a distributed application installation apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another distributed application installation apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some 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 technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Example 1
In order to solve the problem of low efficiency of an installation method of a distributed application in the prior art, embodiment 1 of the present application provides a distributed application installation method, a specific flow diagram of the method is shown in fig. 1, and the method includes the following steps:
step 101, a first distributed application installation device obtains IP addresses and login parameters corresponding to a plurality of target nodes that need to be deployed in a distributed application.
The distributed application may be any type of distributed application, such as a distributed database management system, or the like.
And 102, the first distributed application installation device acquires installation configuration parameters corresponding to the distributed application.
The installation configuration parameters may include information of master nodes and slave nodes in the target node.
103, the first distributed application installation device installs the installation package of the distributed application on the target nodes according to the IP addresses, the login parameters and the installation configuration parameters corresponding to the target nodes.
Specifically, the first distributed application installation apparatus may send an application installation script template corresponding to the distributed application, the installation configuration parameters, and an installation package of the distributed application to a first target node in the plurality of target nodes, where the first target node may generate an application installation script according to the application installation script template and the installation configuration parameters, and the application installation script is used to install the installation package of the distributed application. And sending an execution command to the first target node, wherein the execution command is used for instructing the first target node to run the application installation script.
In an implementation scenario, the first distributed application installation apparatus may send, through a Secure Shell (SSH), the application installation script template corresponding to the distributed application, the installation configuration parameters, and the installation package of the distributed application to a first target node in the plurality of target nodes.
The first distributed application installation device may further monitor hardware parameter information of a first target node of the plurality of target nodes before installing the installation package of the distributed application on the plurality of target nodes according to the IP addresses, the login parameters, and the installation configuration parameters corresponding to the plurality of target nodes. And if the hardware parameter information meets the preset hardware parameter condition, determining that the first target node is a target node capable of installing the distributed application.
In the embodiment of the application, the first distributed application installation device installs the installation package of the distributed application on the target nodes according to the IP addresses, the login parameters and the installation configuration parameters of the target nodes, so that the installation efficiency of the distributed application can be improved, and the problem of low efficiency of an installation method of the distributed application in the prior art can be solved.
Example 2
In order to solve the problem of low efficiency of an installation method of a distributed application in the prior art, embodiment 2 of the present application provides a distributed application installation method, a specific flowchart of the method is shown in fig. 2, and the method includes the following steps:
step 201, a first target node receives an application installation script template, installation configuration parameters, an installation package of a distributed application and an execution instruction corresponding to the installation package of the distributed application sent by a first distributed application installation device.
The execution instruction is to instruct installation of the distributed application.
The distributed application may be any type of distributed application, such as a distributed database management system, or the like.
And 202, generating an application installation script by the first target node according to the application installation script template and the installation configuration parameters.
The application installation script is used for executing an installation package for installing the distributed application.
And 203, the first target node runs the application installation script according to the execution instruction.
In the embodiment of the application, the first target node generates the application installation script and runs the application installation script according to the application installation script template, the installation configuration parameters, the installation package of the distributed application and the execution instruction corresponding to the installation package of the distributed application sent by the first distributed application installation device, so that the distributed application is installed on the first target node, and thus, the installation efficiency of the distributed application can be improved, and the problem of low efficiency of an installation method of the distributed application in the prior art can be solved.
Example 3
In order to solve the problem of low efficiency of an installation method of a distributed application in the prior art, embodiment 3 of the present application provides a distributed application installation method, a specific flowchart of the method is shown in fig. 3, and the method includes the following steps:
step 301, a first distributed application installation apparatus obtains internet protocol IP addresses and login parameters corresponding to a plurality of target nodes that need to be deployed in a distributed application.
The first distributed application installation apparatus may be a hardware apparatus, such as a Central Processing Unit (CPU), a memory, or a software installed in any type or model of device, or a device having both hardware and software, such as a mobile phone, a computer, or the like, which is not limited in this embodiment 3. In addition, if the first distributed application installation apparatus is a hardware apparatus or software installed in any type or model of equipment, the first distributed application installation apparatus may exist in any computer other than the distributed computing; if the first distributed application installation apparatus is a device having both hardware and software, the first distributed application installation apparatus may be any computer other than the distributed computing, as long as the first distributed application installation apparatus can implement the distributed application installation method provided in the embodiment of the present application. For convenience of description, the first distributed application installation apparatus will be described in detail below by taking an example in which the first distributed application installation apparatus is any one of computers (hereinafter referred to as a distributed application installation computer) other than the distributed computer.
Distributed computing typically involves multiple computers, but sometimes, rather than installing an application on all of the computers in the distributed computing, i.e., deploying an application, the option is to deploy an application on multiple ones of the computers.
In embodiment 3 of the present application, a worker may select a plurality of computers to be deployed in advance, and then the computers may be used as target nodes. In addition, one node may be arbitrarily selected as a master node among the target nodes, and the other nodes may be selected as slave nodes. After the target node is selected, a worker can directly input the IP addresses and the login parameters corresponding to the target nodes in the distributed application installation computer, or the worker can send the IP addresses and the login parameters corresponding to the target nodes to the distributed application installation computer through any type of terminal equipment, so that the distributed application installation computer can obtain conference IP addresses and login parameters corresponding to a plurality of target nodes to be deployed in the distributed application. The login parameters may include a login account, a login password, and the like.
Step 302, the distributed application installation computer obtains installation configuration parameters corresponding to the distributed application.
The installation configuration parameters may include information of a master node and a slave node in the target node, such as an installation directory, a data storage directory, a mirror directory, kernel configuration parameters, and the like. Wherein the installation directory is used for indicating the position of the distributed application in the target node; the data storage directory is used for indicating a position in a target node where the generated data is to be stored in the use process of the distributed application; the mirror directory is used to indicate where the installation package of the distributed application is stored in the destination node.
Step 303, the distributed application installation computer installs the installation package of the distributed application on the target nodes according to the IP addresses, the login parameters, and the installation configuration parameters of the target nodes.
The installation package of the distributed application may be an installation package of any type of application, such as an installation package of a database management system.
Before step 303 is executed, an application installation script template corresponding to the distributed application and an installation package of the distributed application may be stored on the distributed application installation computer in advance.
Since the operation performed by the distributed application installation computer for each target node is the same, and the operation performed by each target node is also the same, this application embodiment 3 details step 303 by taking the first target node of the plurality of target nodes as an example:
the distributed application installation computer may send an application installation script template, installation configuration parameters, and an installation package of the distributed application corresponding to the distributed application to a first target node of the plurality of target nodes. And the first target node can generate an application installation script according to the application installation script template and the installation configuration parameters. The application installation script is used to install an installation package for the distributed application. And sends an execution command to the first target node. The execution command is used for instructing the first target node to execute the application installation script. In embodiment 3 of the present application, the order in which the distributed application installation computer sends the application installation script template, the installation configuration parameters, the installation package of the distributed application, and the execution command corresponding to the distributed application to the first target node is not limited, and the application installation script template, the installation configuration parameters, the installation package of the distributed application, and the execution command may be sent simultaneously or in a sequential order.
Then, after the first target node receives the application installation script template, the installation configuration parameters and the installation package of the distributed application corresponding to the distributed application, the first target node may generate the application installation script according to the application installation script template and the installation configuration parameters. And running the application installation script according to the execution command to finally complete installation. Or according to the received execution command, generating an application installation script according to the application installation script template and the installation configuration parameters, and operating the application installation script according to the execution command to finally complete installation.
In order to make installation of the distributed application safer and more reliable, the distributed application installation computer may send, through a Secure Shell (SSH), the application installation script template corresponding to the installation package of the distributed application, the installation configuration parameters, and the installation package of the distributed application to a first target node of the plurality of target nodes. In addition, the execution command can also be sent to the first target node through the SSH. Due to the SSH prior art, further description is omitted here.
In addition, in order to improve the success rate of installation of the distributed application, before performing step 303, the distributed application installation computer may perform the following operations:
monitoring hardware parameter information of a first target node, if the hardware parameter information meets preset hardware parameter information, determining that the first target node is a target node capable of installing distributed application, and executing step 303; otherwise, determining that the first target node is not the target node capable of installing the distributed application, and outputting the reminding information. The reminding information is used for informing a worker that the hardware parameter information of the first target node does not meet the preset hardware parameter information, so that the worker can timely process the situation, and finally the hardware parameter information of the first target node meets the preset hardware parameter information. The distributed application installation computer can output the reminding information in the form of sound or pictures and the like.
Specifically, the distributed application installation computer may monitor the hardware parameter information of a first target node among the plurality of target nodes through a monitoring program installed on the first target node. The hardware parameter information may include information such as a computer disk remaining space, a CPU utilization rate, and a storage path name. For example, the distributed application installation computer may monitor whether an installation directory, a data storage directory, and a mirror directory included in the installation parameter information exist in the first target node through a monitoring program installed on the first target node, and if at least one of the installation directory, the data storage directory, and the mirror directory included in the installation parameter information does not exist in the first target node, determine that the hardware parameter information does not satisfy the preset hardware parameter information; if the installation directory, the data storage directory and the mirror directory included in the installation parameter information exist in the first target node, respectively monitoring whether the disk residual space corresponding to the installation directory, the data storage directory and the mirror directory existing in the first target node is larger than a preset disk residual space, monitoring whether the CPU utilization rate of the first target node is larger than a preset CPU utilization rate, and if the disk residual space corresponding to the installation directory, the data storage directory and the mirror directory existing in the first target node is larger than a preset disk residual space and the CPU utilization rate of the first target node is larger than a preset CPU utilization rate, determining that the hardware parameter information meets preset hardware parameter information; otherwise, determining that the hardware parameter information does not meet the preset hardware parameter information.
The distributed application installation computer can enable the target node to automatically install the installation package of the distributed application by executing the steps 301-303 without manual installation.
In order to make the reader more easily understand the installation method of the distributed application provided in embodiment 3 of the present application, the following example is described in detail. As shown in fig. 4, a in fig. 4 is a distributed application installation computer, which is any computer except for distributed computing. B, J, K in FIG. 4 is the target node, where B is the master node and J and K are the slave nodes. The distributed application that needs to be deployed B, J, K is a database management system. After the internet protocol IP address and login parameters corresponding to B, J, K, the installation configuration parameters corresponding to the distributed database management system, the installation package of the distributed database management system, and the application installation script template of the distributed database management system are obtained, the obtained internet protocol IP address and login parameters corresponding to B, J, K, the installation configuration parameters corresponding to the distributed database management system, the installation package of the distributed database management system, and the application installation script template of the distributed database management system may be sent to B, J, K, respectively. And sends an execute command to B, J, K.
B. J, K after receiving the installation configuration parameters corresponding to the distributed database management system and the application installation script template of the distributed database management system, the application installation script is generated according to the installation configuration parameters corresponding to the distributed database management system and the application installation script template of the distributed database management system. And respectively executing the application installation scripts respectively generated by the distributed database management system according to the execution command, and installing B, J, K the distributed database management system.
It should be noted that the installation configuration parameters corresponding to the target nodes may be the same or different, which is determined by the hardware configuration information and the software configuration information of the target nodes. If the hardware configuration information and the software configuration information of different target nodes are the same, the installation configuration parameters corresponding to the target nodes can be the same; if the hardware configuration information and the software configuration information of different target nodes are different, for example, the hard disk partition conditions of different target nodes are different, the hard disk in the master node in the target node is divided into three areas: the system comprises a C disk, a D disk and an E disk, wherein any one of target nodes is divided into an area from a hard disk in the node: and C, setting corresponding installation configuration parameters for target nodes with different hardware configuration information and software configuration information by staff.
The installation configuration parameters mentioned in the above steps 301 to 303 are the same, so that when the installation configuration parameters are different, the corresponding relationship between the IP address corresponding to the target node and the installation configuration parameters can be established. The staff can directly input all the installation configuration parameters and the corresponding relation between the IP addresses corresponding to the target nodes and the installation configuration parameters into the distributed application installation computer, or send the installation configuration parameters and the corresponding relation between the IP addresses corresponding to the target nodes and the installation configuration parameters to the distributed application installation computer through any type of terminal equipment, so that the distributed application installation computer obtains the installation configuration parameters corresponding to each target node. The distributed application installation computer may then send an application installation script template corresponding to the distributed application, an installation package for the distributed application, and an execution command to each target node. And sending the installation configuration parameters to the corresponding target nodes. After receiving the application installation script template, the installation package of the distributed application, the execution command, and the installation configuration parameters, each target node performs the same operation as the first target node performs in step 303. In this way, all target nodes can complete the installation of the distributed application.
In addition, the first distributed application installation apparatus may be present in any computer in the distributed computing or may be present in any computer in the distributed computing, in addition to or as any computer in the distributed computing. When the first distributed application installation apparatus exists in any one of the computers in the distributed computing or is any one of the computers in the distributed computing, if the first distributed application installation apparatus does not exist in the target node or is not the target node but exists in other computers in the distributed computing or is other computers in the distributed computing, the first distributed application installation apparatus still executes the above steps 301 to 303. If the first distributed application installation device exists in a certain target node or is a certain target node, the first distributed application installation device still executes the steps 301 to 303, except that when the step 303 is executed, the first distributed application installation device does not need to send the application installation script template corresponding to the installation package of the distributed application, the installation configuration parameters and the installation package of the distributed application to the target nodes. And when the first distributed application installation device sends the application installation script template corresponding to the installation package of the distributed application, the installation configuration parameters and the installation package of the distributed application to other target nodes, the distributed application installation device generates an application installation script according to the application installation script template and the installation configuration parameters, executes the generated application installation script according to the execution command, and installs the distributed application on the distributed application installation device.
For example, as shown in fig. 5, E in fig. 5 is a distributed application installation apparatus, and the first distributed application installation apparatus is one of the target nodes. F, G, H in FIG. 5 is the other destination node. Where E is the master node and F, G, H is the slave node. The distributed application that needs to be deployed E, F, G, H is a database management system. After the internet protocol IP address and login parameters corresponding to E, F, G, H, the installation configuration parameters corresponding to the distributed database management system, the installation package of the distributed database management system, and the application installation script template of the distributed database management system are obtained, the obtained internet protocol IP address and login parameters corresponding to F, G, H, the installation configuration parameters corresponding to the distributed database management system, the installation package of the distributed database management system, and the application installation script template of the distributed database management system may be sent to F, G, H, respectively. And sends an execute command to F, G, H. Wherein, E, F, G, H has the same corresponding installation configuration parameters.
F. G, H after receiving the installation configuration parameters corresponding to the distributed database management system and the application installation script template of the distributed database management system, the application installation script is generated according to the installation configuration parameters corresponding to the distributed database management system and the application installation script template of the distributed database management system. And respectively executing the application installation scripts respectively generated by the distributed database management system according to the execution command, and installing F, G, H the distributed database management system. And E, after respectively sending the obtained Internet protocol IP address and login parameters corresponding to F, G, H, installation configuration parameters corresponding to the distributed database management system, an installation package of the distributed database management system and an application installation script template of the distributed database management system to F, G, H, generating an application installation script by the E according to the installation configuration parameters corresponding to the distributed database management system and the application installation script template of the distributed database management system. And the distributed database management system can be installed on the E according to the execution command or the application installation script generated by spontaneous operation.
In the embodiment of the application, the distributed application installation computer installs the installation package of the distributed application on the target nodes according to the IP addresses, the login parameters and the installation configuration parameters of the target nodes, so that the installation efficiency of the distributed application can be improved, and the problem of low efficiency of an installation method of the distributed application in the prior art can be solved.
Example 4
In order to solve the problem of low efficiency of an installation method of a distributed application in the prior art, embodiment 4 of the present application provides a first distributed application installation apparatus, a specific structural schematic diagram of the apparatus is shown in fig. 7, and the apparatus includes:
the obtaining module 41 is configured to obtain internet protocol IP addresses and login parameters corresponding to a plurality of target nodes that need to be deployed in the distributed application.
The obtaining module 41 is further configured to obtain an installation configuration parameter corresponding to the distributed application, where the installation configuration parameter includes information of a master node and a slave node in the target node.
And the installation module 42 is configured to install the installation package of the distributed application on the plurality of target nodes according to the IP addresses of the plurality of target nodes, the login parameters, and the installation configuration parameters.
In one embodiment, a module 42 is installed for:
sending an application installation script template corresponding to the distributed application, the installation configuration parameters and an installation package of the distributed application to a first target node in the plurality of target nodes, wherein the first target node can generate an application installation script according to the application installation script template and the installation configuration parameters, and the application installation script is used for installing the installation package of the distributed application;
and sending an execution command to the first target node, wherein the execution command is used for instructing the first target node to run the application installation script.
In one embodiment, a mounting module is configured to:
and sending the application installation script template corresponding to the distributed application, the installation configuration parameters and the installation package of the distributed application to a first target node in the plurality of target nodes through a secure shell protocol (SSH).
In one embodiment, the apparatus further comprises:
a monitoring module, configured to monitor hardware parameter information of a first target node in the plurality of nodes before installing the installation package of the distributed application on the plurality of target nodes;
and the determining module is used for determining that the first target node is a target node capable of installing the distributed application when the monitoring module monitors that the hardware parameter information meets a preset hardware parameter condition.
In one embodiment, the distributed application includes a distributed database management system.
It should be particularly noted that the distributed application installation apparatus provided in embodiment 4 of the present application may execute the distributed application installation methods provided in embodiments 1 and 3.
In the embodiment of the application, the first distributed application installation device installs the installation package of the distributed application on the target nodes according to the IP addresses, the login parameters and the installation configuration parameters of the target nodes, so that the installation efficiency of the distributed application can be improved, and the problem of low efficiency of an installation method of the distributed application in the prior art can be solved.
Example 5
In order to solve the problem of low efficiency of an installation method of a distributed application in the prior art, embodiment 5 of the present application provides a second distributed application installation apparatus, where the apparatus is deployed on a target node for installing the distributed application, and a specific structural schematic diagram of the apparatus is shown in fig. 7, where the apparatus includes:
a receiving module 51, configured to receive an application installation script template, an installation configuration parameter, an installation package of the distributed application, and an execution instruction, where the application installation script template, the installation configuration parameter, the installation package of the distributed application, and the execution instruction are sent by a first distributed application installation apparatus, and the execution instruction is used to instruct to install the distributed application on the target node.
A generating module 52, configured to generate an application installation script according to the application installation script template and the installation configuration parameters, where the application installation script is used to execute an installation package for installing the distributed application.
And the running module 53 is configured to run the application installation script according to the execution instruction.
In one embodiment, the distributed application is a distributed database management system.
It should be noted that the distributed application installation apparatus provided in embodiment 5 of the present application may execute the installation method of the distributed application provided in embodiment 2 or 3.
In the embodiment of the application, the second distributed application installation device generates the application installation script and runs the application installation script according to the application installation script template, the installation configuration parameters, the installation package of the distributed application and the execution instruction corresponding to the installation package of the distributed application sent by the first distributed application installation device, so that the distributed application is installed on the first target node, and thus, the installation efficiency of the distributed application can be improved, and the problem of low efficiency of the installation method of the distributed application in the prior art can be solved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A distributed application installation method, the method comprising:
acquiring Internet protocol IP addresses and login parameters corresponding to a plurality of target nodes needing to be deployed in the distributed application;
obtaining installation configuration parameters corresponding to the distributed application, where the installation configuration parameters include information of a master node and a slave node in the target node, and the installation configuration parameters include at least one of: the system comprises an installation directory, a data storage directory, a mirror directory and kernel configuration parameters, wherein the installation directory is used for indicating the position of installing the distributed application in a target node; the data storage directory is used for indicating the position of data generated by the distributed application in the use process to be stored in the target node; the mirror directory is used for indicating the position of storing the installation package of the distributed application in the target node;
installing an installation package of the distributed application on the plurality of target nodes according to the IP addresses, login parameters and the installation configuration parameters of the plurality of target nodes,
installing the installation package of the distributed application on the target nodes according to the IP addresses, the login parameters and the installation configuration parameters of the target nodes, wherein the installation package of the distributed application is installed on the target nodes and comprises the following steps:
sending an application installation script template corresponding to the distributed application, the installation configuration parameters and an installation package of the distributed application to a first target node in the plurality of target nodes, wherein the first target node can generate an application installation script according to the application installation script template and the installation configuration parameters, and the application installation script is used for installing the installation package of the distributed application;
sending an execution command to the first target node, wherein the execution command is used for instructing the first target node to run the application installation script;
prior to installing the installation package of the distributed application on the plurality of target nodes, the method further comprises:
monitoring hardware parameter information of a first target node of the plurality of target nodes, including: monitoring whether an installation directory, a data storage directory and a mirror directory included in installation parameter information exist in a first target node or not, and if at least one of the installation directory, the data storage directory and the mirror directory included in the installation parameter information does not exist in the first target node, determining that the hardware parameter information does not meet preset hardware parameter information; if the installation directory, the data storage directory and the mirror directory included in the installation parameter information exist in the first target node, respectively monitoring whether the disk residual space corresponding to the installation directory, the data storage directory and the mirror directory existing in the first target node is larger than a preset disk residual space, monitoring whether the CPU utilization rate of the first target node is larger than a preset CPU utilization rate, and if the disk residual space corresponding to the installation directory, the data storage directory and the mirror directory existing in the first target node is larger than a preset disk residual space and the CPU utilization rate of the first target node is larger than the preset CPU utilization rate, determining that the hardware parameter information meets preset hardware parameter information;
if the hardware parameter information meets the preset hardware parameter condition, determining that the first target node is a target node capable of installing the distributed application, otherwise, determining that the first target node is not a target node capable of installing the distributed application, and outputting reminding information.
2. The method of claim 1, wherein sending an application installation script template corresponding to the distributed application, the installation configuration parameters, and an installation package of the distributed application to a first target node of the plurality of target nodes comprises:
and sending the application installation script template corresponding to the distributed application, the installation configuration parameters and the installation package of the distributed application to a first target node in the plurality of target nodes through a secure shell protocol (SSH).
3. The method of any of claims 1-2, wherein the distributed application comprises a distributed database management system.
4. A distributed application installation method is applied to a second distributed application installation device, the second distributed application installation device is deployed on a target node for installing a distributed application, and the method comprises the following steps:
receiving an application installation script template, installation configuration parameters, an installation package of the distributed application and an execution instruction, which are sent by a first distributed application installation device and correspond to the installation package of the distributed application, wherein the execution instruction is used for indicating the installation of the distributed application; wherein the installation configuration parameters include at least one of: the system comprises an installation directory, a data storage directory, a mirror directory and kernel configuration parameters, wherein the installation directory is used for indicating the position of installing the distributed application in a target node; the data storage directory is used for indicating the position of data generated by the distributed application in the use process to be stored in the target node; the mirror directory is used for indicating the position of storing the installation package of the distributed application in the target node;
generating an application installation script according to the application installation script template and the installation configuration parameters, wherein the application installation script is used for executing an installation package for installing the distributed application;
running the application installation script according to the execution instruction;
wherein the first distributed application installation apparatus is configured to: monitoring hardware parameter information of the target node, including: monitoring whether an installation directory, a data storage directory and a mirror directory included in the installation parameter information exist in the target node or not, and if at least one of the installation directory, the data storage directory and the mirror directory included in the installation parameter information does not exist in the target node, determining that the hardware parameter information does not meet the preset hardware parameter information; if the target node has an installation directory, a data storage directory and a mirror directory included in the installation parameter information, respectively monitoring whether the disk residual space corresponding to the installation directory, the data storage directory and the mirror directory existing in the target node is larger than a preset disk residual space, and monitoring whether the CPU utilization rate of the target node is larger than a preset CPU utilization rate, if the disk residual space corresponding to the installation directory, the data storage directory and the mirror directory existing in the target node is larger than a preset disk residual space, and the CPU utilization rate of the target node is larger than a preset CPU utilization rate, determining that the hardware parameter information meets the preset hardware parameter information; and if the hardware parameter information meets the preset hardware parameter condition, determining that the target node is the target node capable of installing the distributed application, otherwise, determining that the target node is not the target node capable of installing the distributed application, and outputting reminding information.
5. The method of claim 4, wherein the distributed application is a distributed database management system.
6. A first distributed application installation apparatus, the apparatus comprising:
the system comprises an acquisition module, a configuration module and a management module, wherein the acquisition module is used for acquiring Internet Protocol (IP) addresses and login parameters corresponding to a plurality of target nodes needing to be deployed in the distributed application;
an obtaining module, configured to obtain installation configuration parameters corresponding to the distributed application, where the installation configuration parameters include information of a master node and a slave node in the target node, and the installation configuration parameters include at least one of the following: the system comprises an installation directory, a data storage directory, a mirror directory and kernel configuration parameters, wherein the installation directory is used for indicating the position of installing the distributed application in a target node; the data storage directory is used for indicating the position of data generated by the distributed application in the use process to be stored in the target node; the mirror directory is used for indicating the position of storing the installation package of the distributed application in the target node;
the installation module is used for installing the installation packages of the distributed application on the target nodes according to the IP addresses, the login parameters and the installation configuration parameters of the target nodes;
sending an application installation script template corresponding to the distributed application, the installation configuration parameters and an installation package of the distributed application to a first target node in the plurality of target nodes, wherein the first target node can generate an application installation script according to the application installation script template and the installation configuration parameters, and the application installation script is used for installing the installation package of the distributed application;
sending an execution command to the first target node, wherein the execution command is used for instructing the first target node to run the application installation script;
the device further comprises:
a monitoring module, configured to monitor hardware parameter information of a first target node in the plurality of target nodes, including: monitoring whether an installation directory, a data storage directory and a mirror directory included in installation parameter information exist in a first target node or not, and if at least one of the installation directory, the data storage directory and the mirror directory included in the installation parameter information does not exist in the first target node, determining that the hardware parameter information does not meet preset hardware parameter information; if the installation directory, the data storage directory and the mirror directory included in the installation parameter information exist in the first target node, respectively monitoring whether the disk residual space corresponding to the installation directory, the data storage directory and the mirror directory existing in the first target node is larger than a preset disk residual space, monitoring whether the CPU utilization rate of the first target node is larger than a preset CPU utilization rate, and if the disk residual space corresponding to the installation directory, the data storage directory and the mirror directory existing in the first target node is larger than a preset disk residual space and the CPU utilization rate of the first target node is larger than the preset CPU utilization rate, determining that the hardware parameter information meets preset hardware parameter information;
and the determining module is used for determining that the first target node is a target node capable of installing the distributed application when the monitoring module monitors that the hardware parameter information meets a preset hardware parameter condition, and otherwise, outputting reminding information if the first target node is determined not to be the target node capable of installing the distributed application.
7. The apparatus of claim 6, wherein the mounting module is to:
and sending the application installation script template corresponding to the distributed application, the installation configuration parameters and the installation package of the distributed application to a first target node in the plurality of target nodes through a secure shell protocol (SSH).
8. The apparatus of any of claims 6-7, wherein the distributed application comprises a distributed database management system.
9. A second distributed application installation apparatus deployed on a target node for installing a distributed application, the apparatus comprising:
a receiving module, configured to receive an application installation script template, an installation configuration parameter, an installation package of the distributed application, and an execution instruction, where the application installation script template, the installation configuration parameter, the installation package of the distributed application, and the execution instruction are sent by a first distributed application installation apparatus, and the execution instruction is used to instruct to install the distributed application on the target node; wherein the installation configuration parameters include at least one of: the system comprises an installation directory, a data storage directory, a mirror directory and kernel configuration parameters, wherein the installation directory is used for indicating the position of installing the distributed application in a target node; the data storage directory is used for indicating the position of data generated by the distributed application in the use process to be stored in the target node; the mirror directory is used for indicating the position of storing the installation package of the distributed application in the target node;
the generating module is used for generating an application installation script according to the application installation script template and the installation configuration parameters, and the application installation script is used for executing an installation package for installing the distributed application;
the running module is used for running the application installation script according to the execution instruction;
wherein the first distributed application installation apparatus is configured to: monitoring hardware parameter information of the target node, including: monitoring whether an installation directory, a data storage directory and a mirror directory included in the installation parameter information exist in the target node or not, and if at least one of the installation directory, the data storage directory and the mirror directory included in the installation parameter information does not exist in the target node, determining that the hardware parameter information does not meet the preset hardware parameter information; if the target node has an installation directory, a data storage directory and a mirror directory included in the installation parameter information, respectively monitoring whether the disk residual space corresponding to the installation directory, the data storage directory and the mirror directory existing in the target node is larger than a preset disk residual space, and monitoring whether the CPU utilization rate of the target node is larger than a preset CPU utilization rate, if the disk residual space corresponding to the installation directory, the data storage directory and the mirror directory existing in the target node is larger than a preset disk residual space, and the CPU utilization rate of the target node is larger than a preset CPU utilization rate, determining that the hardware parameter information meets the preset hardware parameter information; and if the hardware parameter information meets the preset hardware parameter condition, determining that the target node is the target node capable of installing the distributed application, otherwise, determining that the target node is not the target node capable of installing the distributed application, and outputting reminding information.
10. The apparatus of claim 9, wherein the distributed application is a distributed database management system.
CN201611234720.XA 2016-12-28 2016-12-28 Distributed application installation method and device Active CN106886434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611234720.XA CN106886434B (en) 2016-12-28 2016-12-28 Distributed application installation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611234720.XA CN106886434B (en) 2016-12-28 2016-12-28 Distributed application installation method and device

Publications (2)

Publication Number Publication Date
CN106886434A CN106886434A (en) 2017-06-23
CN106886434B true CN106886434B (en) 2020-10-23

Family

ID=59175825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611234720.XA Active CN106886434B (en) 2016-12-28 2016-12-28 Distributed application installation method and device

Country Status (1)

Country Link
CN (1) CN106886434B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483602A (en) * 2017-08-28 2017-12-15 济南浪潮高新科技投资发展有限公司 A kind of method and device that communication software is disposed in Distributed Computer System
CN109597627A (en) * 2017-09-30 2019-04-09 北京国双科技有限公司 A kind of component mounting method, device, storage medium and processor
CN109614120A (en) * 2018-11-29 2019-04-12 郑州云海信息技术有限公司 A kind of installation method of Distributed Application, system and node device
CN110109684B (en) * 2019-04-04 2023-06-09 平安科技(深圳)有限公司 Block chain link point management proxy service installation method, electronic device and storage medium
CN110297645B (en) * 2019-06-28 2021-09-14 联想(北京)有限公司 System installation method and electronic equipment
CN115004650B (en) * 2020-05-11 2024-01-16 深圳市欢太科技有限公司 Node configuration method, node configuration device, distributed system and computer readable medium
CN114531467B (en) 2020-11-04 2023-04-14 中移(苏州)软件技术有限公司 Information processing method, equipment and system
CN114816442A (en) * 2021-01-22 2022-07-29 华为技术有限公司 Processing method and device for distributed application
CN114816444A (en) * 2021-01-28 2022-07-29 网联清算有限公司 Method and device for deploying monitoring program, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601622A (en) * 2013-10-31 2015-05-06 国际商业机器公司 Method and system for deploying cluster
CN105099739A (en) * 2014-05-15 2015-11-25 中国移动通信集团公司 Plug-in type software deployment method and apparatus, and application server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014034A (en) * 2006-12-31 2007-08-08 武汉蓝星科技股份有限公司 U disk server-based cluster solving method
CN102455915A (en) * 2010-10-18 2012-05-16 卓望数码技术(深圳)有限公司 Method for automatically configuring distributed system, and server
CN103473140A (en) * 2013-10-09 2013-12-25 浪潮(北京)电子信息产业有限公司 Cluster distribution method of life science applications, and software setup method and device applied of life science applications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601622A (en) * 2013-10-31 2015-05-06 国际商业机器公司 Method and system for deploying cluster
CN105099739A (en) * 2014-05-15 2015-11-25 中国移动通信集团公司 Plug-in type software deployment method and apparatus, and application server

Also Published As

Publication number Publication date
CN106886434A (en) 2017-06-23

Similar Documents

Publication Publication Date Title
CN106886434B (en) Distributed application installation method and device
US10802906B2 (en) Monitoring method and apparatus of server, and storage medium
US11178233B2 (en) Service orchestration method and apparatus, and server
KR102354536B1 (en) Hyperledger fabric network creation method, controller and storage medium
CN108023742B (en) Application capacity expansion method, device and system
US20210263714A1 (en) System and method for autowiring of a microservice architecture
US20180048545A1 (en) Container monitoring configuration deployment
CN110413346B (en) Parameter updating method and device
WO2017020770A1 (en) Lxc-based continuous integration method and device
CN113037794B (en) Method, device and system for computing resource allocation scheduling
CN109561128B (en) Data transmission method and device
CN109558143B (en) Method and device for deploying applications in cluster
CN113204353A (en) Big data platform assembly deployment method and device
US10397071B2 (en) Automated deployment of cloud-hosted, distributed network monitoring agents
CN112600931B (en) API gateway deployment method and device
US11631011B2 (en) Automatically remediating storage device issues using machine learning techniques
US11071151B2 (en) Methods and apparatuses for connecting a wireless access point through an application in a user equipment
CN111897565A (en) Data processing method, device and equipment based on Internet of things
CN110968406B (en) Method, device, storage medium and processor for processing task
US10635467B1 (en) Deployable console-based virtual application deployment and configuration systems and methods
Botez et al. Deploying a dockerized application with Kubernetes on Google cloud platform
CN116167082A (en) Data processing method and device, electronic equipment and storage medium
CN110971642B (en) Data processing method and device for cloud computing platform
CN111026502A (en) Business debugging architecture creating method and device, electronic equipment and storage medium
CN112241293A (en) Application management method, device, equipment and medium for industrial internet cloud platform

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
TA01 Transfer of patent application right

Effective date of registration: 20200922

Address after: 030006 NO.311, 3rd floor, hydraulic building, No.368, Qinxian North Street, Xiaodian District, Taiyuan City, Shanxi Province

Applicant after: Shanxi Great Wisdom Water Conservancy Technology Co., Ltd

Address before: 030001 Shanxi city of Taiyuan province high tech Zone Changzhi Road, Lane 9, e-commerce industrial park two sixteen floor

Applicant before: SHANXI KERUISEN INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Yao Xianda

Inventor after: Wang Lei

Inventor after: Wang Gang

Inventor after: Wang Qingyuan

Inventor before: Yao Xianda

Inventor before: Wang Lei

Inventor before: Wang Gang

CB03 Change of inventor or designer information