CN113434370A - Server cluster deployment method and device, computing equipment and storage medium - Google Patents

Server cluster deployment method and device, computing equipment and storage medium Download PDF

Info

Publication number
CN113434370A
CN113434370A CN202110971691.XA CN202110971691A CN113434370A CN 113434370 A CN113434370 A CN 113434370A CN 202110971691 A CN202110971691 A CN 202110971691A CN 113434370 A CN113434370 A CN 113434370A
Authority
CN
China
Prior art keywords
server
node
remote
nodes
remote server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110971691.XA
Other languages
Chinese (zh)
Inventor
王磊
孟杰
薛皓琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software 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 Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202110971691.XA priority Critical patent/CN113434370A/en
Publication of CN113434370A publication Critical patent/CN113434370A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Abstract

The invention discloses a server cluster deployment method, which is suitable for being executed in a server, wherein the server is in communication connection with one or more remote servers, the server comprises a server component library, the server component library comprises a plurality of server components, and the method comprises the following steps: configuring node attributes of a server and a remote server connected with the server; acquiring one or more component configuration servers from a server component library according to the node attribute of the server to obtain a server node; according to the node attribute of each remote server connected with the server, acquiring one or more components from a server component library to configure each remote server to obtain one or more remote server nodes; a server cluster is constructed from the server nodes and one or more remote server nodes. The invention also discloses a server cluster deployment device, a computing device and a storage medium.

Description

Server cluster deployment method and device, computing equipment and storage medium
Technical Field
The invention relates to the field of cloud computing, in particular to a server cluster deployment method and device, computing equipment and a storage medium.
Background
The field of cloud computing, which refers to a mode of delivery and use of IT infrastructure, i.e., acquiring required resources in an on-demand, easily scalable manner over a network, has rapidly developed in recent years. And broadly refers to the delivery and usage patterns of services, and the required services are obtained in an on-demand and easily extensible manner through the network. Networks providing resources are figuratively liked to "clouds", whose computing power is typically provided by distributed, large-scale clustering and virtualization technologies.
In the prior art, in order to construct a cloud computing platform, container environments need to be built in all computers of the component cloud computing platform, and then an image file for constructing the cloud computing platform is manufactured. And finally, copying the image files in all the computers, and constructing a cloud computing platform according to the image files of all the computers in the container environment. The whole process of constructing the cloud computing platform is low in efficiency, the construction time is greatly consumed, and the linear speed on the platform is influenced.
Therefore, a new server cluster deployment method and apparatus are needed.
Disclosure of Invention
To this end, the present invention provides a server cluster deployment method in an attempt to solve, or at least alleviate, the problems presented above.
According to one aspect of the present invention, there is provided a server cluster deployment method, executed in a server, the server being communicatively connected to one or more remote servers, the server including a server component library, the server component library including a plurality of server components, the method including the steps of: configuring node attributes of a server and a remote server connected with the server; acquiring one or more component configuration servers from a server component library according to the node attribute of the server to obtain a server node; according to the node attribute of each remote server connected with the server, acquiring one or more components from a server component library to configure each remote server to obtain one or more remote server nodes; a server cluster is constructed from the server nodes and one or more remote server nodes.
Optionally, in the method according to the present invention, configuring node attributes of the server and a remote server connected to the server includes the steps of: rendering and displaying a configuration interface; and receiving the selection of the node attributes of the server and the remote server from a configuration interface by a user, and configuring the node attributes of the server and the remote server connected with the server.
Optionally, in the method according to the present invention, the server or the remote server comprises one or more node attributes including a compute node, a management node and a storage node.
Optionally, in the method according to the present invention, the node attribute of at least one node in the server cluster includes a computing node, the node attribute of at least one node includes a management node, and the node attribute of at least one node includes a storage node.
Optionally, in the method according to the present invention, constructing a server cluster from a server node and one or more remote server nodes comprises the steps of: when a server cluster is constructed, if one or more remote server nodes have faults, judging whether node attributes of at least one node in the server nodes and normal remote server nodes comprise computing nodes or not; and if the node attribute of at least one node comprises the computing node, normally forming a server cluster, otherwise, popping up error information lacking the computing node so as to reconfigure the computing node.
Optionally, in the method according to the present invention, further comprising the step of: judging whether the node attribute of at least one node in the server node and the normal remote server node comprises a management node; and if the node attribute of at least one node comprises the management node, normally forming a server cluster, otherwise, popping up error information lacking the management node so as to reconfigure the management node.
Optionally, in the method according to the present invention, further comprising the step of: judging whether node attributes of at least one node in the server node and the normal remote server node comprise storage nodes or not; and if the node attribute of at least one node comprises a storage node, normally forming a server cluster, otherwise, popping up error information lacking the storage node so as to reconfigure the storage node.
Optionally, in the method according to the present invention, the server component library of the server includes a plurality of server version server component sets, each server component set includes one or more server components, and obtaining the server node by obtaining one or more component configuration servers from the server component library according to the node attribute of the server includes: setting a server version of a server; according to the set server version, one or more components are obtained from the server component set corresponding to the server version and serve as a component configuration server required by the node attribute; the steps of obtaining one or more components from a server component library according to the node attribute of each remote server connected with the server and configuring each remote server comprise: and according to the server version of the server, acquiring one or more components from the server component set corresponding to the server version, and configuring the remote server as the components required by the node attribute.
According to another aspect of the present invention, there is provided a server cluster deployment apparatus, the apparatus residing in a server, the server being communicatively connected to one or more remote servers, the apparatus comprising: the storage module is suitable for storing a server component library, and the server component library comprises a plurality of server components; a control module adapted to configure node attributes of the server and the remote server; and the execution module is suitable for acquiring one or more component configuration servers from a server component library of the storage module according to the node attribute of the server to obtain a server node, acquiring one or more components from a server component library of the storage module according to the node attribute of each remote server connected with the server to configure each remote server, acquiring one or more remote server nodes, and constructing a server cluster according to the server node and the one or more remote server nodes.
According to yet another aspect of the present invention, there is provided a computing device comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing a server cluster deployment method in accordance with the present invention.
According to yet another aspect of the present invention, there is provided a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform a server cluster deployment method according to the present invention.
The invention relates to a server cluster deployment method which is suitable for being executed in a server, wherein the server is in communication connection with one or more remote servers, the server comprises a server component library, and the server component library comprises a plurality of server components. The method comprises the steps that node attributes of a server and a remote server are configured, the local server and the remote server are configured in the server, the configuration time of all the servers can be saved, the configuration efficiency is improved, and different servers can bear different types of node tasks in a cloud computing platform by setting the node attributes of different servers. And then acquiring one or more component configuration servers from a server component library according to the node attributes of the servers to obtain server nodes, acquiring one or more component configuration servers from the server component library according to the node attributes of the remote servers connected with the servers to configure each remote server to obtain one or more remote server nodes, and constructing a server cluster according to the server nodes and the one or more remote server nodes, so that required server components are pulled out according to different node attributes of different servers, the server cluster is quickly constructed, the platform construction efficiency is improved, and the online time of the platform is shortened.
Furthermore, the node attribute of at least one node in the built server cluster comprises a computing node, the node attribute of at least one node comprises a management node, and the node attribute of at least one node comprises a storage node, so that a server in the server cluster is ensured to bear all types of service node tasks all the time. Summarizing the process of constructing the server cluster, if one or more remote server nodes have faults, judging whether the node attribute of at least one node comprises a computing node, the node attribute of at least one node comprises a management node and the node attribute of at least one node comprises a storage node in the server nodes and normal remote server nodes. If all the conditions are met, the server cluster is normally constructed, and if only one condition is not met, the corresponding node needs to be reconfigured, so that the constructed server cluster comprises a complete service type, online operation can be formed, problems are found during construction, errors are timely reported, the error condition is conveniently processed, and the normal construction of the server cluster is ensured.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of a server and remote server communication connection according to an example embodiment of the present invention;
FIG. 2 illustrates a block diagram of a computing device 200, according to an exemplary embodiment of the invention;
FIG. 3 shows a flowchart of a server cluster deployment method 300 according to an example embodiment of the present invention; and
fig. 4 shows a schematic diagram of a server cluster deployment apparatus 400 according to an exemplary 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. Like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of a server and remote server communication connection according to an example embodiment of the present invention. As shown in FIG. 1, a server 140 is communicatively coupled to remote servers 110-130. The connection between the server 140 and the remote servers 110 to 130 in fig. 1 is only exemplary, and the connection between the server 140 and the remote servers 110 to 130 is not limited in the present invention, for example, the server 140 and the remote servers 110 to 130 can be connected through a switch. The number of remote servers to which the server 140 is connected in fig. 1 is merely exemplary, and the present invention is not limited to the number of remote servers to which the server 140 is connected.
The server 140 is identical in structure to the remote servers 110 to 130, and the server cluster deployment method of the present invention can be executed on any server, and when the server cluster deployment method is executed on any remote server, the remote server becomes a local server, and the server 140 becomes a remote server connected to the local server.
Furthermore, the present invention does not limit the server architecture of the server 140 and the remote servers 110 to 130, and the server 140 and the remote servers 110 to 130 may be implemented as an aarch64 platform architecture or an X86 platform architecture.
The server 140 and the remote servers 110-130 in FIG. 1 may each be implemented as a computing device. FIG. 2 illustrates a block diagram of a computing device 200, according to an exemplary embodiment of the invention. As shown in FIG. 2, in a basic configuration 202, a computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between the processor 204 and the system memory 206.
Depending on the desired configuration, the processor 204 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a digital information processor (DSP), or any combination thereof. The processor 204 may include one or more levels of cache, such as a level one cache 210 and a level two cache 212, a processor core 214, and registers 216. Example processor cores 214 may include Arithmetic Logic Units (ALUs), Floating Point Units (FPUs), digital signal processing cores (DSP cores), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, system memory 206 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 206 may include an operating system 220, one or more programs 222, and program data 228. In some embodiments, the program 222 may be arranged to execute the instructions 223 of the method 300 according to the invention on an operating system by one or more processors 204 using the program data 228.
Computing device 200 may also include a storage interface bus 234. The storage interface bus 234 enables communication from the storage devices 232 (e.g., removable storage 236 and non-removable storage 238) to the basic configuration 202 via the bus/interface controller 230. Operating system 220, programs 222, and at least a portion of data 224 can be stored on removable storage 236 and/or non-removable storage 238, and loaded into system memory 206 via storage interface bus 234 and executed by one or more processors 204 when computing device 200 is powered on or programs 222 are to be executed.
Computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus/interface controller 230. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 252. Example peripheral interfaces 244 can include a serial interface controller 254 and a parallel interface controller 256, which can be configured to facilitate communications with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 258. An example communication device 246 may include a network controller 260, which may be arranged to communicate with one or more other computing devices 262 over a network communication link via one or more communication ports 264.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
In computing device 200 according to the present invention, program 222 comprises a plurality of program instructions that direct processor 204 to perform method 300 and that may direct portions of steps in server cluster deployment method 300 to be performed in computing device 200 according to the present invention, such that portions of computing device 200 effect deployment of a server cluster by performing server cluster deployment method 300 according to the present invention.
Computing device 200 may be implemented as a server, e.g., file server 240, database 250, a server, an application server, etc., which may be a device such as a Personal Digital Assistant (PDA), a wireless web-browsing device, an application-specific device, or a hybrid device that include any of the above functions. May be implemented as a personal computer including both desktop and notebook computer configurations, and in some embodiments computing device 200 is configured to perform server cluster deployment method 300.
Fig. 3 shows a flowchart of a server cluster deployment method 300 according to an exemplary embodiment of the present invention. The instruction execution method 300 in the present invention is suitable for being executed in a server, and is further suitable for being executed in the server 140 shown in fig. 1, wherein the server 140 includes a server component library, and the server component library includes a plurality of server version server component sets. As the server cluster environment is continuously updated, the server components included in the server cluster environment are continuously enriched and updated. Therefore, the server 140 is pre-constructed with a server component library, which includes different versions of server component sets, each including one or more server components, and the types and versions of the included server components may be different from each other.
As shown in FIG. 3, the server cluster deployment method 300 begins with step S310, configuring node attributes of the servers and remote servers connected to the servers. When the node attributes of the server and the remote server are configured, the operating system is installed in the server, and the server can display the configuration interface by installing the operating system in the server, so that the configuration process can be conveniently operated according to the configuration interface. The present invention does not limit the type of operating system installed in the server. According to one embodiment of the invention, a linux operating system, including but not limited to Centos7, RedHat7, Syxin operating system 1000c, etc., may be installed in the server.
The configuration interface is then rendered and displayed according to the operating system. The configuration interface is an interface for facilitating a user to configure the node attributes of the server and the remote server. According to an embodiment of the present invention, the configuration interface may be rendered and presented through entering the configuration port through the browser by running the browser on the operating system and setting the configuration port, or the device may be directly run in the operating system to render and present the configuration interface by pre-constructing the server cluster deployment device, and the implementation manner of the configuration interface is not limited in the present invention.
After the configuration interface is presented to the user, the user may configure the node attributes of the server and the remote server in the configuration interface. And receiving the selection of the node attributes of the server and the remote server from the configuration interface by the user, and configuring the node attributes of the server and the remote server.
When the node attributes of the server and the remote server are configured, the IP address and the host name of the server and the IP address and the host name of the remote server connected with the server are set, and the node attributes are set according to the IP address and the host name of each server.
The server cluster is constructed by the server and the remote server, and can be used for building a cloud computing platform. According to one embodiment of the invention, a server cluster constructed by using a server and a remote server can be used for building an OpenStack cloud computing management platform project.
OpenStack is an open source code project that is authorized with an Apache license (a free software license issued by the Apache software foundation). Openstack is accomplished by a combination of a number of major components. Mainly helping Service providers and enterprises to realize cloud Infrastructure services (Infrastructure as a Service) similar to Amazon ec2 and S3 internally. Openstack includes a collection of Openstack computation (code number Nova), Openstack object store (code number Swift), Openstack local store (code number Cinder), Openstack web service (code number Neuton), Openstack authentication service (code number Keystone), Openstack mirror service (code number Glance). OpenStack also provides an operating platform, or toolkit, for orchestrating the cloud.
Therefore, the server cluster constructed in the invention needs servers with various node attributes. The server or the remote server can have various node attributes, the node attributes comprise a computing node, a management node and a storage node, the types and the number of the node attributes are not limited, and developers can configure more different types of node attributes according to actual needs so as to meet the needs of constructing a server cluster.
When the node attributes of the server and the remote server are configured, the configurable node attributes of each server are provided for a user to select, and the user can select one node attribute configuration server. When the user does not perform manual configuration, the configuration can also be automatically performed by the server.
In configuring the node attributes of the server and the remote server, the configuration principle needs to be followed. The configuration principle comprises the following steps: the node attribute of at least one node in the server cluster comprises a computing node, the node attribute of at least one node comprises a management node, and the node attribute of at least one node comprises a storage node. Each server may have multiple node attributes, and assume multiple node tasks, among the servers and the connected remote servers.
According to one embodiment of the invention, when only a server is used to configure a server cluster without other remote servers connected thereto, the server has a variety of node attributes including compute nodes, management nodes, and storage nodes.
According to another embodiment of the present invention, when there is only one server and one remote server connected thereto, at least one server needs to include two or more node attributes to meet the requirements of the actual configuration server cluster.
Subsequently, step S320 is executed to obtain one or more component configuration servers from the server component library according to the node attribute of the server, so as to obtain the server node. When configuring a server node, a server version of the server needs to be set. As the server cluster environment is continuously updated, the server components included in the server cluster environment are continuously enriched and updated. Thus, the server component library in the server 140 includes different versions of server component sets, and the kind and version of the server component of each server component set may be different. Taking OpenStack as an example, on average, a release version is generated every 6 months or so, and each OpenStack release contains 40 or more components. The OpenStack version includes: austin, Bexar, Cattus, Diablo, Essex, Folsom, Grizzly, Havana, and Queens, among others.
After the server version of the server is specified, one or more components are obtained from the server component set corresponding to the server version according to the set server version and serve as the component configuration server required by the node attribute.
According to one embodiment of the invention, the server version set by the server is Havana, and the Havana server component set of the server component library comprises: the system comprises a Nova component responsible for computing services, a Glance component responsible for mirroring services, a Swift component responsible for object storage services, a Horizon component responsible for GUI services, a Keystone component responsible for identity services, a Neutron component responsible for network services, a Cinder component responsible for block storage services, a Heat component responsible for orchestration services, and a Ceilometer component responsible for metering monitoring.
If the node attribute set by the server is a computing node, pulling a Nova component configuration server in charge of computing service; if the node attribute set by the server is a storage node, pulling a Swift component responsible for the object storage service, a circle component responsible for the block storage service and a Glance component configuration server responsible for the mirror image service; and if the node attribute set by the server is the management node, pulling a Horizon component responsible for GUI service and a Keystone component configuration server responsible for identity service.
According to one embodiment of the invention, when the server version of the server in the server cluster is upgraded, the node attribute of each server node is kept consistent before and after the upgrade, and cannot be changed.
Subsequently, step S330 is executed to obtain one or more components from the server component library according to the node attribute of each remote server connected to the server to configure each remote server, so as to obtain one or more remote server nodes. When each remote server is configured, one or more components are obtained from the server component set corresponding to the server version according to the server version of the server, and the components are used as components required by the node attribute to configure the remote server. When the remote server is configured, the server version of the remote server is the same as the server version of the server, so that the server versions of all the servers in the server cluster are kept consistent.
According to one embodiment of the invention, when the server version of the server is Havana, the server versions of all remote servers connected to the server are configured to be Havana. When the remote server is configured, if the node attribute set by the remote server is a computing node, pulling a Nova component configuration server in charge of computing service; if the node attribute set by the remote server is a storage node, pulling a Swift component responsible for the object storage service, a circle component responsible for the block storage service and a Glance component configuration server responsible for the mirror image service; and if the node attribute set by the remote server is a management node, pulling a Horizon component responsible for GUI service and a Keystone component configuration server responsible for identity service.
According to one embodiment of the invention, when the remote server is configured, an operating system can be installed in the remote server, and the server component library is copied from the server to the remote server according to the IP addresses of the server and the remote server through an scp command or an ssh command. And then pulling the corresponding component according to the copied server component library at the remote server to configure the remote server. Or the operating system is not installed in the remote server, the server component library is directly copied from the server to the remote server in a pxe mode in the BIOS configuration, and the related components are started to configure the remote server.
Subsequently, step S340 is executed to construct a server cluster according to the server nodes and the one or more remote server nodes. When a server cluster is constructed according to a server node and one or more remote server nodes, at present, environmental deployment is prone to errors, deployment time is long, once errors occur in the middle of deployment, the deployment is required to be repeated, and more time is required to be consumed. Therefore, in the invention, if one or more remote server nodes have faults, fault information is provided, maintenance personnel can conveniently and quickly locate the problems, and the fault information is processed in time, so that a server cluster is normally built.
When a server cluster is constructed, if one or more remote server nodes have faults, whether node attributes of at least one node in the server nodes and normal remote server nodes comprise computing nodes is judged, if the node attributes of at least one node comprise the computing nodes, the server cluster is normally constructed, and otherwise, error information lacking the computing nodes is popped up so as to reconfigure the computing nodes. When the computing node is reconfigured, one or more servers are selected from the rest normal remote servers and servers to add the node attribute of the computing node, and the corresponding server component is pulled to be configured according to the node attribute of the computing node.
And judging whether the node attribute of at least one node in the server node and the normal remote server node comprises a management node, if the node attribute of at least one node comprises the management node, normally forming a server cluster, and if not, popping up error information lacking the management node so as to reconfigure the management node. When the management node is reconfigured, one or more servers are selected from the rest normal remote servers and servers to add the node attribute of the management node, and the corresponding server component is pulled to be configured according to the node attribute of the management node.
And judging whether the node attribute of at least one node in the server node and the normal remote server node comprises a storage node, if the node attribute of at least one node comprises the storage node, normally forming a server cluster, and if not, popping up error information lacking the storage node so as to reconfigure the storage node. When the storage nodes are reconfigured, one or more servers are selected from the rest normal remote servers and servers to add the node attributes of the storage nodes, and corresponding server components are pulled to be configured according to the node attributes of the storage nodes.
Through the judgment steps and the processing of the corresponding error information, the server cluster can be ensured to include all the server nodes of the required types when the server cluster is constructed, and the normal construction and operation of the server cluster are ensured.
When the server cluster is constructed, the progress of constructing the server cluster, error information and the like are also displayed, and the error information and the operation record of the user are stored for later retrieval and use. The user operation record is a record of node attributes of the configuration server and the remote server.
According to one embodiment of the invention, when a server cluster is constructed and a new server node needs to be added to the server cluster, the node attribute of the new server node is selected, and then the new server node is configured according to the node attribute. And finally, adding the new server node into the server cluster. Further, if a plurality of server clusters are constructed, a server cluster to which a new server node is added may be selected, and a new server node is added to the selected server cluster. And the server version of the new server node needs to be the same as the server version of the server in the server cluster to be added, and other versions cannot be selected by self, so that the server versions of all the servers in the server cluster are ensured to be the same.
Fig. 4 shows a schematic diagram of a server cluster deployment apparatus 400 according to an exemplary embodiment of the present invention. The device resides in a server that is communicatively coupled to one or more remote servers. As shown in fig. 4, the apparatus 400 includes: a storage module 410, a control module 420, an execution module 430, and a monitoring module 440.
The storage module stores a server component library, and the component library comprises a plurality of server components; the server component library includes a set of server components of a plurality of server versions. The storage module also stores mirror images of various operating systems.
The control module configures node attributes for the server and the remote server. When the node attribute of the server is configured, firstly, the operating system is installed on the server, and the server can display the configuration interface by installing the operating system on the server, so that the configuration process can be conveniently operated according to the configuration interface.
The configuration interface is then rendered and displayed according to the operating system. The configuration interface is an interface for facilitating a user to configure the node attributes of the server and the remote server. According to an embodiment of the present invention, the configuration interface may be rendered and presented through a browser entering the configuration port by running the browser on the operating system and setting the configuration port, or rendered and presented through a server cluster deployment device constructed in advance by directly running the device in the operating system according to a control module in the device, and the implementation manner of the configuration interface is not limited by the present invention.
After the configuration interface is presented to the user, the user may configure the node attributes of the server and the remote server in the configuration interface. And receiving the selection of the node attributes of the server and the remote server from the configuration interface by the user, and configuring the node attributes of the server and the remote server. When the node attributes of the server and the remote server are configured, the IP address and the host name of the server and the IP address and the host name of the remote server connected with the server are set, and the node attributes are set according to the IP address and the host name of each server.
After the control module completes the configuration of the node attributes of the server and the remote server, the control module sends the information of the node attributes of the server and the remote server to the execution module, and instructs the execution module to configure the server and the remote server according to the node attributes.
The execution module acquires one or more component configuration servers from a server component library of the storage module according to the node attributes of the servers to obtain server nodes, acquires one or more components from the server component library of the storage module according to the node attributes of each remote server connected with the servers to configure each remote server to obtain one or more remote server nodes, and finally the control module constructs a server cluster according to the server nodes and the one or more remote server nodes.
The execution module can install an operating system in the remote server, and construct the server cluster configuration device into the remote server according to the IP addresses of the server and the remote server through an scp command or an ssh command. And then, the remote server configures the device according to the constructed server cluster so as to pull the corresponding component from the server component library in the remote server to configure the remote server. Or an operating system is not installed in the remote server, and the control module directly constructs the server cluster configuration device into the remote server in a pxe mode in the BIOS configuration so as to start the related components from the server component library in the remote server to configure the remote server.
The execution module feeds the progress of the configuration server cluster back to the monitoring module, the monitoring module judges whether the node attribute of at least one node in the server nodes and normal remote server nodes comprises a computing node or not according to the progress of the configuration server cluster when the server cluster is constructed, if the node attribute of at least one node comprises the computing node, the server cluster is normally formed, otherwise, error information lacking the computing node is popped out, and the computing node is reconfigured conveniently.
The monitoring module also judges whether the node attribute of at least one node in the server nodes and the normal remote server nodes comprises the management node, if the node attribute of at least one node comprises the management node, the server cluster is normally formed, otherwise, error information lacking the management node is popped out, and the management node is conveniently reconfigured.
The monitoring module also needs to judge whether the node attribute of at least one node in the server node and the normal remote server node comprises a storage node, if the node attribute of at least one node comprises the storage node, the server cluster is normally formed, otherwise, error information lacking the storage node is popped up, so that the storage node is reconfigured.
The monitoring module feeds back different types of error information to the control module to alarm, and the control module processes the error information. The control module reconfigures the management node according to the error information of the lack of management node. When the management node is reconfigured, one or more servers are selected from the rest normal remote servers and servers to add the node attribute of the management node, and the execution module is instructed to pull the corresponding server component for configuration according to the node attribute of the management node.
The control module reconfigures the storage nodes according to the error information of the lack of the storage nodes. When the storage nodes are reconfigured, one or more servers are selected from the rest normal remote servers and servers to add the node attributes of the storage nodes, and the execution module is instructed to pull the corresponding server components to configure according to the node attributes of the storage nodes.
The control module reconfigures the management node according to the error information of the lack of management node. When the management node is reconfigured, one or more servers are selected from the rest normal remote servers and servers to add the node attribute of the management node, and the execution module is instructed to pull the corresponding server component for configuration according to the node attribute of the management node.
The monitoring module also stores different types of error information into the storage module, and the control module stores operation records of the user into the storage module so as to retrieve and use the information from the storage module. The operation record of the user is the record of the node attributes of the configuration server and the remote server.
The invention relates to a server cluster deployment method which is suitable for being executed in a server, wherein the server is in communication connection with one or more remote servers, the server comprises a server component library, and the server component library comprises a plurality of server components. The method comprises the steps that node attributes of a server and a remote server are configured, the local server and the remote server are configured in the server, the configuration time of all the servers can be saved, the configuration efficiency is improved, and different servers can bear different types of node tasks in a cloud computing platform by setting the node attributes of different servers. And then acquiring one or more component configuration servers from a server component library according to the node attributes of the servers to obtain server nodes, acquiring one or more component configuration servers from the server component library according to the node attributes of the remote servers connected with the servers to configure each remote server to obtain one or more remote server nodes, and constructing a server cluster according to the server nodes and the one or more remote server nodes, so that required server components are pulled out according to different node attributes of different servers, the server cluster is quickly constructed, the platform construction efficiency is improved, and the online time of the platform is shortened.
Furthermore, the node attribute of at least one node in the built server cluster comprises a computing node, the node attribute of at least one node comprises a management node, and the node attribute of at least one node comprises a storage node, so that a server in the server cluster is ensured to bear all types of service node tasks all the time. Summarizing the process of constructing the server cluster, if one or more remote server nodes have faults, judging whether the node attribute of at least one node comprises a computing node, the node attribute of at least one node comprises a management node and the node attribute of at least one node comprises a storage node in the server nodes and normal remote server nodes. If all the conditions are met, the server cluster is normally constructed, and if only one condition is not met, the corresponding node needs to be reconfigured, so that the constructed server cluster comprises a complete service type, online operation can be formed, problems are found during construction, errors are timely reported, the error condition is conveniently processed, and the normal construction of the server cluster is ensured.
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.
Those skilled in the art will appreciate that the modules or units or groups of devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
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. Modules or units or groups in embodiments may be combined into one module or unit or group and may furthermore be divided into sub-modules or sub-units or sub-groups. 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.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the method for determining the apparatus shutdown state of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer-readable media includes both computer storage media and communication media. Computer storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (10)

1. A server cluster deployment method, adapted to be executed in a server communicatively connected to one or more remote servers, the server including therein a server component library including a plurality of server components, the method comprising the steps of:
configuring node attributes of the server and a remote server connected with the server;
acquiring one or more component configuration servers from the server component library according to the node attribute of the server to obtain a server node;
according to the node attribute of each remote server connected with the server, acquiring one or more components from the server component library to configure each remote server to obtain one or more remote server nodes;
and constructing a server cluster according to the server nodes and the one or more remote server nodes.
2. The method of claim 1, wherein configuring the node attributes of the server and a remote server connected to the server comprises the steps of:
rendering and displaying a configuration interface;
and receiving the selection of the user on the node attributes of the server and the remote server in the configuration interface, and configuring the node attributes of the server and the remote server connected with the server.
3. The method of claim 2, wherein the server or remote server comprises one or more node attributes including a compute node, a management node, and a storage node.
4. The method of claim 3, wherein the node attribute of at least one node in the server cluster comprises a compute node, the node attribute of at least one node comprises a management node, and the node attribute of at least one node comprises a storage node.
5. The method of claim 4, wherein said building a server cluster from said server nodes and said one or more remote server nodes comprises the steps of:
when a server cluster is constructed, if one or more remote server nodes have faults, judging whether node attributes of at least one node in the server nodes and normal remote server nodes comprise computing nodes or not;
and if the node attribute of at least one node comprises the computing node, normally forming a server cluster, otherwise, popping up error information lacking the computing node so as to reconfigure the computing node.
6. The method of claim 5, further comprising the steps of:
judging whether the node attribute of at least one node in the server node and the normal remote server node comprises a management node;
and if the node attribute of at least one node comprises the management node, normally forming a server cluster, otherwise, popping up error information lacking the management node so as to reconfigure the management node.
7. The method of claim 6, further comprising the steps of:
judging whether the node attribute of at least one node in the server node and the normal remote server node comprises a storage node;
and if the node attribute of at least one node comprises a storage node, normally forming a server cluster, otherwise, popping up error information lacking the storage node so as to reconfigure the storage node.
8. A server cluster deployment apparatus, the apparatus residing in a server, the server communicatively connected to one or more remote servers, the apparatus comprising:
a storage module adapted to store a server component library, the server component library comprising a plurality of server components;
a control module adapted to configure node attributes of the server and a remote server connected to the server;
the execution module is suitable for acquiring one or more component configuration servers from the server component library of the storage module according to the node attributes of the servers to obtain server nodes, acquiring one or more components from the server component library of the storage module according to the node attributes of each remote server connected with the servers to configure each remote server to obtain one or more remote server nodes, and constructing a server cluster according to the server nodes and the one or more remote server nodes.
9. A computing device, comprising:
one or more processors;
a memory; and
one or more apparatuses comprising instructions for performing the method of any of claims 1-7.
10. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of any of claims 1-7.
CN202110971691.XA 2021-08-24 2021-08-24 Server cluster deployment method and device, computing equipment and storage medium Pending CN113434370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110971691.XA CN113434370A (en) 2021-08-24 2021-08-24 Server cluster deployment method and device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110971691.XA CN113434370A (en) 2021-08-24 2021-08-24 Server cluster deployment method and device, computing equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113434370A true CN113434370A (en) 2021-09-24

Family

ID=77797769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110971691.XA Pending CN113434370A (en) 2021-08-24 2021-08-24 Server cluster deployment method and device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113434370A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030051021A1 (en) * 2001-09-05 2003-03-13 Hirschfeld Robert A. Virtualized logical server cloud
CN103167041A (en) * 2013-03-28 2013-06-19 广州中国科学院软件应用技术研究所 System and method for supporting cloud environment application cluster automation deployment
US20150052517A1 (en) * 2013-08-13 2015-02-19 Vmware, Inc. Method and system for migration of virtual machines and virtual applications between cloud-computing facilities
US20160232018A1 (en) * 2015-02-06 2016-08-11 International Business Machines Corporation Multi-target deployment of virtual systems
CN106878334A (en) * 2015-05-13 2017-06-20 西安三星电子研究有限公司 The automatically dispose system and method for cloud
CN108076159A (en) * 2018-01-26 2018-05-25 成都精灵云科技有限公司 A kind of cloud platform based on Docker builds device
CN108737468A (en) * 2017-04-19 2018-11-02 中兴通讯股份有限公司 Cloud platform service cluster, construction method and device
CN109522029A (en) * 2018-11-22 2019-03-26 山东浪潮云信息技术有限公司 A kind of method and device for disposing cloud platform technology component
CN109687987A (en) * 2017-10-19 2019-04-26 北京金山云网络技术有限公司 A kind of cloud platform dispositions method, device, electronic equipment and readable storage medium storing program for executing
CN112242920A (en) * 2019-07-19 2021-01-19 杭州海康威视数字技术股份有限公司 Cloud platform deployment method, device and node

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030051021A1 (en) * 2001-09-05 2003-03-13 Hirschfeld Robert A. Virtualized logical server cloud
CN103167041A (en) * 2013-03-28 2013-06-19 广州中国科学院软件应用技术研究所 System and method for supporting cloud environment application cluster automation deployment
US20150052517A1 (en) * 2013-08-13 2015-02-19 Vmware, Inc. Method and system for migration of virtual machines and virtual applications between cloud-computing facilities
US20160232018A1 (en) * 2015-02-06 2016-08-11 International Business Machines Corporation Multi-target deployment of virtual systems
CN106878334A (en) * 2015-05-13 2017-06-20 西安三星电子研究有限公司 The automatically dispose system and method for cloud
CN108737468A (en) * 2017-04-19 2018-11-02 中兴通讯股份有限公司 Cloud platform service cluster, construction method and device
CN109687987A (en) * 2017-10-19 2019-04-26 北京金山云网络技术有限公司 A kind of cloud platform dispositions method, device, electronic equipment and readable storage medium storing program for executing
CN108076159A (en) * 2018-01-26 2018-05-25 成都精灵云科技有限公司 A kind of cloud platform based on Docker builds device
CN109522029A (en) * 2018-11-22 2019-03-26 山东浪潮云信息技术有限公司 A kind of method and device for disposing cloud platform technology component
CN112242920A (en) * 2019-07-19 2021-01-19 杭州海康威视数字技术股份有限公司 Cloud platform deployment method, device and node

Similar Documents

Publication Publication Date Title
US9893940B1 (en) Topologically aware network device configuration
US8799893B2 (en) Method, system and computer program product for solution replication
US9244676B2 (en) Virtual machine based controller and upgrade mechanism
US8327350B2 (en) Virtual resource templates
US7890951B2 (en) Model-based provisioning of test environments
WO2019090993A1 (en) Deployment method and apparatus for monitoring system, computer device and storage medium
US7886292B2 (en) Methodology of individualized software deployment for hardware-independent personal computer mass development
JP5657475B2 (en) Operation management apparatus and method
US10353872B2 (en) Method and apparatus for conversion of virtual machine formats utilizing deduplication metadata
CN104113574B (en) Safe transfer method and system of wide area network trusted virtual machine
US20180260241A1 (en) Method and system of migrating applications to a cloud-computing environment
US10353798B1 (en) Rapid development environment
GB2517044A (en) Virtual infrastructure recovery configurator
US10235194B1 (en) Compatibility-based configuration of hardware with virtualization software
CN113157290B (en) Multi-system installation method, computing equipment and storage medium
CN105095103A (en) Storage device management method and device used for cloud environment
US20230118065A1 (en) Application and infrastructure template management to easily create secure applications for enterprises
CN113342475A (en) Server cluster construction method, computing device and storage medium
US7668938B1 (en) Method and system for dynamically purposing a computing device
CN109799998A (en) OpenStack cluster configuration and batch dispositions method and system
US10768961B2 (en) Virtual machine seed image replication through parallel deployment
CN113434370A (en) Server cluster deployment method and device, computing equipment and storage medium
TWI759096B (en) Building and deployment system and method of shared software solution and computer readable medium
CN113535650A (en) File naming method and computing device
CN114465914B (en) Server cluster construction method, computing device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination