CN106357738B - A kind of automatically dispose methods, devices and systems of server cluster - Google Patents

A kind of automatically dispose methods, devices and systems of server cluster Download PDF

Info

Publication number
CN106357738B
CN106357738B CN201610743441.XA CN201610743441A CN106357738B CN 106357738 B CN106357738 B CN 106357738B CN 201610743441 A CN201610743441 A CN 201610743441A CN 106357738 B CN106357738 B CN 106357738B
Authority
CN
China
Prior art keywords
application
server
cluster
deployment
serial number
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
CN201610743441.XA
Other languages
Chinese (zh)
Other versions
CN106357738A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610743441.XA priority Critical patent/CN106357738B/en
Publication of CN106357738A publication Critical patent/CN106357738A/en
Application granted granted Critical
Publication of CN106357738B publication Critical patent/CN106357738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of automatically dispose methods, devices and systems of server cluster.The method comprise the steps that receiving the deployment summary file for being sent to book server, wherein the deployment summary file is each server being distributed in cluster by disposing control centre;Determine that book server needs each application to be mounted according to deployment summary file;Downloading book server needs the installation kit to be mounted respectively applied, and executes installation operation to each installation kit downloaded on book server.The technical solution realizes the automatically dispose of server cluster, the deployment efficiency of server cluster is greatly improved, human cost and time have been saved, and reduces the issuable fault of manual operation, it is especially suitable for larger server cluster deployment, meets the needs of enterprise customer.

Description

Automatic deployment method, device and system of server cluster
Technical Field
The invention relates to the technical field of computer networks, in particular to a method, a device and a system for automatically deploying a server cluster.
Background
A server cluster refers to a collection of servers that together perform the same service, and appears to a client as if there is only one server. Therefore, each server in the server cluster needs to be deployed, install a specific application, join the server cluster, and execute a corresponding function. In practical application, the applications installed by each server are not completely the same, and in the prior art, the applications are downloaded on each server in a manual manner for installation, which is very time-consuming and inefficient, and especially after a server cluster reaches a certain scale, the scheme for manual deployment costs very high.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method, apparatus and system for automated deployment of a server cluster that overcomes or at least partially solves the above mentioned problems.
According to one aspect of the invention, an automated deployment method of a server cluster is provided, which comprises the following steps:
receiving a deployment summary file sent to the server, wherein the deployment summary file is distributed to each server in the cluster by a deployment control center;
determining each application required to be installed by the server according to the deployment summary file;
and downloading the installation packages of the applications required to be installed by the server, and executing installation operation on the downloaded installation packages on the server.
Optionally, the determining, according to the deployment summary file, each application that needs to be installed by the server includes:
and for each application name in the application installation list in the deployment summary file, checking whether the IP address set corresponding to the application name has the IP address of the server, and if so, determining that the server needs to install the application.
Optionally, the downloading the installation package of each application that the server needs to install includes:
determining the download address of the installation package of each application to be installed according to the download address corresponding to each application name in the summary deployment file; or, determining the download address of the installation package of each application to be installed according to an application download address list pre-stored in the server;
and downloading the corresponding installation package from the determined download address.
Optionally, the method further comprises:
searching out configuration parameters corresponding to each application required to be installed by the server from the application configuration parameter list in the deployment summary file;
and modifying the configuration file of each application required to be installed by the server according to the found configuration parameters.
Optionally, the configuration parameters include one or more of:
the storage time of the data;
a data saving path;
a log file saving path;
a configuration file path of the log;
the number of partitions;
cluster sequence number information.
Optionally, the method further comprises:
when the installed application is a cluster application, determining a cluster serial number allocation formula corresponding to the application;
sending a serial number request message to a cluster serial number allocation formula corresponding to the application;
and receiving cluster serial number information returned by the cluster serial number allocation formula, and writing the cluster serial number information into the configuration file of the application.
Optionally, the writing the cluster sequence number information into the configuration file of the application includes:
traversing the configuration file of the application, and finding out a cluster serial number configuration item;
and modifying the cluster serial number configuration item into the cluster serial number information.
Optionally, the determining the cluster number allocation formula corresponding to the application includes:
determining the cluster serial number allocation formula corresponding to the application according to the address of the cluster serial number allocation formula corresponding to the application recorded in the deployment summary file;
or,
and determining the cluster serial number allocation formula corresponding to the application according to the locally stored recording information of the server.
Optionally, the determining the cluster number allocation formula corresponding to the application includes:
and selecting a cluster serial number distribution formula from the plurality of cluster serial number distribution formulas according to the network connection condition and the distance information.
Optionally, the same script program is deployed on each server in the cluster, and the above steps are performed by the script program on each server.
According to another aspect of the present invention, an automated deployment apparatus for a server cluster is provided, including:
the receiving unit is suitable for receiving the deployment summary file sent to the server, wherein the deployment summary file is distributed to each server in the cluster by the deployment control center;
the deployment determining unit is suitable for determining each application required to be installed by the server according to the deployment summary file;
and the deployment processing unit is suitable for downloading the installation packages of the applications required to be installed by the server and executing installation operation on the downloaded installation packages on the server.
Optionally, the deployment determining unit is adapted to check, for each application name in the application installation list in the deployment summary file, whether an IP address of the server exists in an IP address set corresponding to the application name, and if so, determine that the server needs to install the application.
Optionally, the deployment processing unit is adapted to determine, according to the download address corresponding to each application name in the summarized deployment file, an installation package download address of each application that needs to be installed; or, determining the download address of the installation package of each application to be installed according to an application download address list pre-stored in the server; and downloading the corresponding installation package from the determined download address.
Optionally, the deployment processing unit is further adapted to find configuration parameters corresponding to each application that needs to be installed by the server from the application configuration parameter list in the deployment summary file; and modifying the configuration file of each application required to be installed by the server according to the found configuration parameters.
Optionally, the configuration parameters include one or more of:
the storage time of the data;
a data saving path;
a log file saving path;
a configuration file path of the log;
the number of partitions;
cluster sequence number information.
Optionally, the deployment processing unit is further adapted to determine, when the installed application is a cluster application, a cluster serial number allocation formula corresponding to the application; sending a serial number request message to a cluster serial number allocation formula corresponding to the application; and receiving cluster serial number information returned by the cluster serial number allocation formula, and writing the cluster serial number information into the configuration file of the application.
Optionally, the deployment processing unit is adapted to traverse the configuration file of the application and find out a cluster sequence number configuration item; and modifying the cluster serial number configuration item into the cluster serial number information.
Optionally, the deployment processing unit is adapted to determine the cluster serial number allocation formula corresponding to the application according to the address of the cluster serial number allocation formula corresponding to the application recorded in the deployment summary file; or determining the cluster serial number allocation formula corresponding to the application according to the recording information locally stored by the server.
Optionally, the deployment processing unit is adapted to select one cluster serial number allocation formula from the plurality of cluster serial number allocation parties according to the network connection status and the distance information.
According to another aspect of the present invention, there is provided an automated deployment system of a server cluster, including: the automatic deployment device comprises a deployment control center and a plurality of automatic deployment devices of the server cluster, wherein the automatic deployment devices are respectively installed on the servers in the cluster;
the deployment control center is adapted to distribute deployment summary files to automated deployment devices of the plurality of server clusters.
According to the technical scheme, after each server in the server cluster determines each application required to be installed by each server through receiving the deployment summary file distributed by the deployment control center, the installation package of each application required to be installed by the server is downloaded and installed. According to the technical scheme, automatic deployment of the server cluster is achieved, deployment efficiency of the server cluster is greatly improved, labor cost and time are saved, errors possibly caused by manual operation are reduced, the server cluster deployment method is particularly suitable for server cluster deployment with large scale, and requirements of enterprise users are met.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow diagram illustrating a method for automated deployment of a server cluster according to one embodiment of the invention;
FIG. 2 is a schematic structural diagram of an automated deployment apparatus for a server cluster according to an embodiment of the present invention; and
fig. 3 is a schematic structural diagram of an automated deployment system of a server cluster according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flowchart illustrating an automated deployment method of a server cluster according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
step S110, receiving a deployment summary file sent to the server, where the deployment summary file is distributed to each server in the cluster by the deployment control center.
And step S120, determining each application required to be installed by the server according to the deployment summary file. The application may include multiple components, for example, installing a distributed message queue QBus application on a server often requires deploying multiple components such as kafka, zookeeper, monitoring system, and the like.
Step S130, downloading an installation package of each application that the server needs to install, and executing an installation operation on each downloaded installation package on the server.
As can be seen, in the method shown in fig. 1, each server in the server cluster receives the deployment summary file distributed by the deployment control center, determines each application that needs to be installed, and then downloads and installs the installation package of each application that needs to be installed by the server. According to the technical scheme, automatic deployment of the server cluster is achieved, deployment efficiency of the server cluster is greatly improved, labor cost and time are saved, errors possibly caused by manual operation are reduced, the server cluster deployment method is particularly suitable for server cluster deployment with large scale, and requirements of enterprise users are met.
Considering that in the server cluster, the IP address of each server is different from the IP addresses of other servers, so as to form a valid identifier for the server, in an embodiment of the present invention, in the method shown in fig. 1, the step S120 of determining, according to the deployment summary file, each application that needs to be installed by the server includes: and for each application name in the application installation list in the deployment summary file, checking whether the IP address set corresponding to the application name has the IP address of the server, and if so, determining that the server needs to install the application.
For example, the IP address of the server a1 is 10.2.1.144, and in the deployment summary file, the IP address set corresponding to the application a is 10.2.1.2-10.2.1.166, and the IP address set corresponding to the application B is 10.2.1.2-10.2.1.132, so that the server a1 only needs to install the application a and does not need to install the application B. Of course, in other embodiments, each application name in the deployment summary file may correspond to a set of server IDs, and the server determines whether its own ID is in the set, and if so, installs the corresponding application.
In an embodiment of the present invention, in the method shown in fig. 1, the downloading the installation package of each application that the server needs to install in step S130 includes: determining the download address of the installation package of each application to be installed according to the download address corresponding to each application name in the summary deployment file; or, determining the download address of the installation package of each application to be installed according to an application download address list pre-stored in the server; and downloading the corresponding installation package from the determined download address.
For example, a server that maintains an installation package of an application may obtain the download addresses of the installation packages of the applications in advance, assemble all the download addresses into an application download address list, and store the application download address list on each server. Thus, after receiving the summary deployment file, the server can query the local application download address list and determine the download address of the installation package of the application which needs to be downloaded and installed. Considering that the download address may be updated, the download address corresponding to each application name may also be written in the summary deployment file, so that each server can determine the currently available download address of the installation package of each application when acquiring the summary deployment file.
In one embodiment of the present invention, the method shown in fig. 1 further comprises: searching out configuration parameters corresponding to each application needing to be installed by the server from an application configuration parameter list in the deployment summary file; and modifying the configuration file of each application required to be installed by the server according to the found configuration parameters. Wherein the configuration parameters include one or more of the following: the storage time of the data; a data saving path; a log file saving path; a configuration file path of the log; the number of partitions; cluster sequence number information.
The installation packages for the applications downloaded by each server are identical, but there may be differences in the same application deployed on each server due to the different performance of each server. In the present embodiment, it is shown that the application configuration file is modified according to the configuration parameters so that the server can correctly implement its functions. The configuration parameters of the application are stored in an application configuration parameter list, and the application configuration parameter list can be stored in each server or stored in a deployment summary file and is issued to the servers together with the deployment summary file.
When the application installed on the server is a cluster application, since a plurality of cluster applications exist in the server cluster where the server is located, if the cluster applications need to perform data transmission between networks, a distinction needs to be made. Thus, in one embodiment of the present invention, the method shown in FIG. 1 further comprises: when the installed application is a cluster application, determining a cluster serial number allocation formula corresponding to the application; sending a serial number request message to a cluster serial number allocation formula corresponding to the application; and receiving cluster sequence number information returned by the cluster sequence number distributor, and writing the cluster sequence number information into the configuration file of the application.
Taking the zookeeper component required by the Qbus application as an example, the zookeeper on each server needs to be configured with a unique ID. In this case, zookeeper components in other server clusters may be used as cluster number allocation formulas, and cluster number allocation may be performed on zookeeper components in a cluster where a server to which the zookeeper components are to be installed is located. Therefore, for each server cluster, the cluster application in the server cluster can be ensured to have a serialized configuration. The associated directory may also be created from the configuration file written to the application.
In an embodiment of the present invention, in the method, writing the cluster serial number information into the configuration file of the application includes: traversing the configuration file of the application, and finding out a cluster serial number configuration item; and modifying the cluster serial number configuration item into cluster serial number information.
For example, using keyword matching, the cluster number configuration item in the configuration file is found. If the configuration file China does not have the cluster serial number configuration item, the cluster serial number information can be set as the cluster serial number configuration item according to the configuration file preset rule corresponding to the application.
Two examples of determining the cluster number allocation formula corresponding to the application are given below:
example 1
And determining the cluster serial number allocation formula corresponding to the application according to the address of the cluster serial number allocation formula corresponding to the application recorded in the deployment summary file.
Example two
And determining the cluster serial number allocation formula corresponding to the application according to the locally stored recording information of the server.
The two examples can quickly and simply determine the cluster number allocation formula corresponding to the application.
Example three
And selecting a cluster serial number distribution formula from the plurality of cluster serial number distribution formulas according to the network connection condition and the distance information.
This example may determine a cluster number allocation that is more efficient.
The above three examples can be selected according to practical requirements, but do not represent limitations to the present invention. For example, in the actual selection, the optimal cluster serial number allocation formula can be determined according to the running state (busy or not) of each cluster serial number allocation formula.
In one embodiment of the present invention, in the method, the same script program is deployed on each server in the cluster, and the steps are executed by the script program on each server.
All script programs are completely the same, so that deployment can be completed at one time, and convenience is brought. During actual execution, the downloading, installation and configuration of the application on the server can be realized according to the application installation list, the application configuration parameter list and the like, and the user requirements can be met correctly. After the installation of each cluster application in the server cluster is finished, the corresponding application can be started to form a cluster, and the cluster can normally provide services for the outside.
Fig. 2 is a schematic structural diagram of an automated deployment apparatus for a server cluster according to an embodiment of the present invention, and as shown in fig. 2, the automated deployment apparatus 200 for a server cluster includes:
the receiving unit 210 is adapted to receive the deployment summary file sent to the server, where the deployment summary file is distributed to the servers in the cluster by the deployment control center.
And the deployment determining unit 220 is adapted to determine, according to the deployment summary file, each application that needs to be installed by the server.
The deployment processing unit 230 is adapted to download installation packages of applications that the server needs to install, and perform installation operations on the downloaded installation packages on the server.
As can be seen, in the apparatus shown in fig. 2, through the mutual cooperation of the units, each server in the server cluster determines each application that needs to be installed by receiving the deployment summary file distributed by the deployment control center, and then downloads and installs the installation package of each application that needs to be installed by the server. According to the technical scheme, automatic deployment of the server cluster is achieved, deployment efficiency of the server cluster is greatly improved, labor cost and time are saved, errors possibly caused by manual operation are reduced, the server cluster deployment method is particularly suitable for server cluster deployment with large scale, and requirements of enterprise users are met.
In an embodiment of the present invention, in the apparatus shown in fig. 2, the deployment determining unit 220 is adapted to, for each application name in the application installation list in the deployment summary file, check whether an IP address of the server exists in an IP address set corresponding to the application name, and if so, determine that the server needs to install the application.
In an embodiment of the present invention, in the apparatus shown in fig. 2, the deployment processing unit 230 is adapted to determine, according to the download address corresponding to each application name in the summarized deployment file, an installation package download address of each application that needs to be installed; or, determining the download address of the installation package of each application to be installed according to an application download address list pre-stored in the server; and downloading the corresponding installation package from the determined download address.
In an embodiment of the present invention, in the apparatus shown in fig. 2, the deployment processing unit 230 is further adapted to find, from the application configuration parameter list in the deployment summary file, the configuration parameters corresponding to each application that needs to be installed by the server; and modifying the configuration file of each application required to be installed by the server according to the found configuration parameters.
In an embodiment of the present invention, in the above apparatus, the configuration parameter includes one or more of the following: the storage time of the data; a data saving path; a log file saving path; a configuration file path of the log; the number of partitions; cluster sequence number information.
In an embodiment of the present invention, in the apparatus shown in fig. 2, the deployment processing unit 230 is further adapted to determine, when the installed application is a cluster application, a cluster serial number allocation formula corresponding to the application; sending a serial number request message to a cluster serial number allocation formula corresponding to the application; and receiving cluster sequence number information returned by the cluster sequence number distributor, and writing the cluster sequence number information into the configuration file of the application.
In an embodiment of the present invention, in the apparatus, the deployment processing unit 230 is adapted to traverse the configuration file of the application and find out a cluster sequence number configuration item; and modifying the cluster serial number configuration item into cluster serial number information.
In an embodiment of the present invention, in the above apparatus, the deployment processing unit 230 is adapted to determine the cluster serial number allocation formula corresponding to the application according to the address of the cluster serial number allocation formula corresponding to the application recorded in the deployment summary file; or determining the cluster serial number allocation formula corresponding to the application according to the recording information locally stored by the server.
In an embodiment of the present invention, in the above apparatus, the deployment processing unit 230 is adapted to select a cluster serial number allocation formula from a plurality of cluster serial number allocation formulas according to the network connection status and the distance information.
It should be noted that the specific implementation of the above device embodiment is the same as the specific implementation of the corresponding method embodiment, and is not described herein again.
Fig. 3 is a schematic structural diagram of an automated deployment system of a server cluster according to an embodiment of the present invention, and as shown in fig. 3, the automated deployment system 300 of a server cluster includes: a deployment control center 310 and a plurality of automated deployment devices 320 of a server cluster as in any of the above embodiments, each installed on a respective server in the cluster; the deployment control center 310 is adapted to distribute the deployment summary file to the automated deployment devices 320 of the plurality of server clusters.
In summary, according to the technical solution of the present invention, each server in the server cluster determines each application that needs to be installed by receiving the deployment summary file distributed by the deployment control center, then downloads and installs the installation package of each application that needs to be installed by the server, and modifies the configuration file of the application according to the corresponding parameter in the application configuration parameter list. According to the technical scheme, automatic deployment of the server cluster is achieved, deployment efficiency of the server cluster is greatly improved, labor cost and time are saved, errors possibly caused by manual operation are reduced, the server cluster deployment method is particularly suitable for server cluster deployment with large scale, and requirements of enterprise users are met.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in an automated deployment apparatus and system for a server cluster according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (18)

1. An automated deployment method of a server cluster, wherein the method comprises:
receiving a deployment summary file sent to the server, wherein the deployment summary file is distributed to each server in the cluster by a deployment control center;
determining each application required to be installed by the server according to the deployment summary file;
downloading installation packages of all applications required to be installed by the server, and executing installation operation on the downloaded installation packages on the server;
the method further comprises the following steps:
when the installed application is a cluster application, determining a cluster serial number allocation formula corresponding to the application;
sending a serial number request message to a cluster serial number allocation formula corresponding to the application;
and receiving cluster serial number information returned by the cluster serial number allocation formula, and writing the cluster serial number information into the configuration file of the application.
2. The method of claim 1, wherein the determining, according to the deployment summary file, each application that needs to be installed by the server comprises:
and for each application name in the application installation list in the deployment summary file, checking whether the IP address set corresponding to the application name has the IP address of the server, and if so, determining that the server needs to install the application.
3. The method of claim 1, wherein downloading the installation package of each application that the server needs to install comprises:
determining the download address of the installation package of each application to be installed according to the download address corresponding to each application name in the deployment summary file; or, determining the download address of the installation package of each application to be installed according to an application download address list pre-stored in the server;
and downloading the corresponding installation package from the determined download address.
4. The method of claim 1, wherein the method further comprises:
searching out configuration parameters corresponding to each application required to be installed by the server from the application configuration parameter list in the deployment summary file;
and modifying the configuration file of each application required to be installed by the server according to the found configuration parameters.
5. The method of claim 4, wherein the configuration parameters include one or more of:
the storage time of the data;
a data saving path;
a log file saving path;
a configuration file path of the log;
the number of partitions;
cluster sequence number information.
6. The method of claim 1, wherein the writing the cluster serial number information into the configuration file of the application comprises:
traversing the configuration file of the application, and finding out a cluster serial number configuration item;
and modifying the cluster serial number configuration item into the cluster serial number information.
7. The method of claim 1, wherein the determining the cluster number allocation formula corresponding to the application comprises:
determining the cluster serial number allocation formula corresponding to the application according to the address of the cluster serial number allocation formula corresponding to the application recorded in the deployment summary file;
or,
and determining the cluster serial number allocation formula corresponding to the application according to the locally stored recording information of the server.
8. The method of claim 1, wherein the determining the cluster number allocation formula corresponding to the application comprises:
and selecting a cluster serial number distribution formula from the plurality of cluster serial number distribution formulas according to the network connection condition and the distance information.
9. The method of any one of claims 1-8,
the same script program is deployed on each server in the cluster, and the steps are executed by the script program on each server.
10. An automated deployment apparatus of a server cluster, wherein the apparatus comprises:
the receiving unit is suitable for receiving the deployment summary file sent to the server, wherein the deployment summary file is distributed to each server in the cluster by the deployment control center;
the deployment determining unit is suitable for determining each application required to be installed by the server according to the deployment summary file;
the deployment processing unit is suitable for downloading the installation packages of all the applications required to be installed by the server and executing installation operation on the downloaded installation packages on the server;
the deployment processing unit is further suitable for determining a cluster serial number allocation formula corresponding to the application when the installed application is a cluster application; sending a serial number request message to a cluster serial number allocation formula corresponding to the application; and receiving cluster serial number information returned by the cluster serial number allocation formula, and writing the cluster serial number information into the configuration file of the application.
11. The apparatus of claim 10, wherein,
the deployment determining unit is adapted to check, for each application name in the application installation list in the deployment summary file, whether an IP address of the server exists in an IP address set corresponding to the application name, and if so, determine that the server needs to install the application.
12. The apparatus of claim 10, wherein,
the deployment processing unit is suitable for determining the download address of the installation package of each application to be installed according to the download address corresponding to each application name in the deployment summary file; or, determining the download address of the installation package of each application to be installed according to an application download address list pre-stored in the server; and downloading the corresponding installation package from the determined download address.
13. The apparatus of claim 10, wherein,
the deployment processing unit is further adapted to find out configuration parameters corresponding to each application that needs to be installed by the server from the application configuration parameter list in the deployment summary file; and modifying the configuration file of each application required to be installed by the server according to the found configuration parameters.
14. The apparatus of claim 13, wherein the configuration parameters comprise one or more of:
the storage time of the data;
a data saving path;
a log file saving path;
a configuration file path of the log;
the number of partitions;
cluster sequence number information.
15. The apparatus of claim 10, wherein,
the deployment processing unit is suitable for traversing the configuration file of the application and finding out a cluster serial number configuration item; and modifying the cluster serial number configuration item into the cluster serial number information.
16. The apparatus of claim 10, wherein,
the deployment processing unit is suitable for determining the cluster serial number allocation formula corresponding to the application according to the address of the cluster serial number allocation formula corresponding to the application recorded in the deployment summary file; or determining the cluster serial number allocation formula corresponding to the application according to the recording information locally stored by the server.
17. The apparatus of claim 10, wherein,
the deployment processing unit is suitable for selecting one cluster serial number distribution formula from a plurality of cluster serial number distribution formulas according to the network connection condition and the distance information.
18. An automated deployment system for a cluster of servers, wherein the system comprises: an automated deployment apparatus for deploying a control centre and a plurality of server clusters according to any one of claims 10 to 17 each installed on a respective server in the cluster;
the deployment control center is adapted to distribute deployment summary files to automated deployment devices of the plurality of server clusters.
CN201610743441.XA 2016-08-26 2016-08-26 A kind of automatically dispose methods, devices and systems of server cluster Active CN106357738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610743441.XA CN106357738B (en) 2016-08-26 2016-08-26 A kind of automatically dispose methods, devices and systems of server cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610743441.XA CN106357738B (en) 2016-08-26 2016-08-26 A kind of automatically dispose methods, devices and systems of server cluster

Publications (2)

Publication Number Publication Date
CN106357738A CN106357738A (en) 2017-01-25
CN106357738B true CN106357738B (en) 2019-05-31

Family

ID=57854351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610743441.XA Active CN106357738B (en) 2016-08-26 2016-08-26 A kind of automatically dispose methods, devices and systems of server cluster

Country Status (1)

Country Link
CN (1) CN106357738B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483572A (en) * 2017-08-08 2017-12-15 北京奇艺世纪科技有限公司 The dispositions method and device of a kind of server
CN107276835A (en) * 2017-08-11 2017-10-20 郑州云海信息技术有限公司 A kind of clustered deploy(ment) collocation method and system
CN107302467A (en) * 2017-08-28 2017-10-27 迈普通信技术股份有限公司 The management method and access device of access device
CN107769959B (en) * 2017-09-06 2021-02-12 北京五八到家信息技术有限公司 Automatic deployment system and method for deploying server sites on server
CN107896162B (en) * 2017-11-08 2020-03-10 平安科技(深圳)有限公司 Deployment method and device of monitoring system, computer equipment and storage medium
CN108255509B (en) * 2018-02-07 2022-02-22 平安好房(上海)电子商务有限公司 Application deployment method, device, equipment and readable storage medium
CN109471799B (en) * 2018-10-29 2022-07-29 北京城市网邻信息技术有限公司 Method, device, storage medium and terminal for deploying demand environment
CN111324356A (en) * 2018-12-17 2020-06-23 北京数安鑫云信息技术有限公司 Software automation deployment method and system
CN110753119A (en) * 2019-10-25 2020-02-04 北京浪潮数据技术有限公司 Application package deployment system based on K8s cluster
CN111782231B (en) * 2020-07-14 2022-10-11 厦门市美亚柏科信息股份有限公司 Service deployment method and device
CN112947949B (en) * 2020-09-22 2024-07-23 深圳市明源云科技有限公司 Application program installation method and device and electronic equipment
CN113138776A (en) * 2021-03-25 2021-07-20 杭州博联智能科技股份有限公司 Template-based cluster automatic deployment method, device, equipment and medium
CN113342475B (en) * 2021-07-05 2024-03-01 统信软件技术有限公司 Server cluster construction method, computing device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402441A (en) * 2010-09-16 2012-04-04 腾讯科技(深圳)有限公司 System and method for configuring multiple computers
CN104219312A (en) * 2014-09-05 2014-12-17 无锡天脉聚源传媒科技有限公司 Program installation method and program installation device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10326645B2 (en) * 2011-11-11 2019-06-18 Level 3 Communications, Llc System and methods for configuration management

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402441A (en) * 2010-09-16 2012-04-04 腾讯科技(深圳)有限公司 System and method for configuring multiple computers
CN104219312A (en) * 2014-09-05 2014-12-17 无锡天脉聚源传媒科技有限公司 Program installation method and program installation device

Also Published As

Publication number Publication date
CN106357738A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN106357738B (en) A kind of automatically dispose methods, devices and systems of server cluster
CN107562472B (en) Micro-service system and method based on docker container
CN106487850B (en) The methods, devices and systems of mirror image are obtained under a kind of cloud environment
US10216514B2 (en) Identification of a component for upgrade
CN111240653B (en) Interface document generation method, device and readable storage medium
CN103973682B (en) Carry out the method and device of web page access
CN110968478B (en) Log acquisition method, server and computer storage medium
CN105610903B (en) Data node upgrading method and device for distributed system
US7882232B2 (en) Rapid resource provisioning with automated throttling
CN105553738A (en) Heat loading method and device of configuration information and distributed cluster system
CN104714835A (en) Data access processing method and device
CN103034803B (en) Dress software prompt system by mistake
CN109818934A (en) A kind of method, apparatus and calculating equipment of automation daily record processing
CN106708573B (en) System and method for Hadoop cluster automatic installation
CN106549789A (en) A kind of method and system for realizing that server is installed
CN106034113A (en) Data processing method and data processing device
CN113312064A (en) Installation configuration method and device of physical machine and computer readable medium
US9146749B1 (en) System and methods for updating digital signage device operating systems and registering signage devices to a global network
CN110661886B (en) Component mounting method and device
US11954069B2 (en) Find operation for union-mounted systems
CN105630889B (en) Universal caching method and device
CN108650320B (en) Method for synchronizing configuration files of isomorphic cascading equipment in cluster environment
CN113783863A (en) Number writing method and system
CN113031970A (en) Automatic installation and deployment method and system
CN105630539A (en) Grayscale upgrading method and device

Legal Events

Date Code Title Description
C06 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220711

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co., Ltd