CN114465914B - Server cluster construction method, computing device and storage medium - Google Patents

Server cluster construction method, computing device and storage medium Download PDF

Info

Publication number
CN114465914B
CN114465914B CN202210376916.1A CN202210376916A CN114465914B CN 114465914 B CN114465914 B CN 114465914B CN 202210376916 A CN202210376916 A CN 202210376916A CN 114465914 B CN114465914 B CN 114465914B
Authority
CN
China
Prior art keywords
container
application
operating system
module
service
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
CN202210376916.1A
Other languages
Chinese (zh)
Other versions
CN114465914A (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.)
Bank Of Hangzhou
Original Assignee
Bank Of Hangzhou
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 Bank Of Hangzhou filed Critical Bank Of Hangzhou
Priority to CN202210376916.1A priority Critical patent/CN114465914B/en
Publication of CN114465914A publication Critical patent/CN114465914A/en
Application granted granted Critical
Publication of CN114465914B publication Critical patent/CN114465914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the field of cloud computing, and discloses a server cluster construction method, computing equipment and a storage medium, and the method comprises the following steps: installing a second operating system in the client, wherein a first container application runs in the first operating system; building a second container application according to the second operating system and the first container application; constructing a second container module according to a second container application, wherein a first resource application and a first network application run in the first operating system; constructing a second resource application according to the first resource application and a second operating system; constructing a second network application according to the first network application and a second operating system; constructing one or more service modules in a container module according to the second resource application and the second network application; and registering the client in the server according to the second container module and the service module, and taking the client as a service node in the server cluster. The invention can deploy the service nodes in different operating systems so as to construct the server cluster.

Description

Server cluster construction method, computing device and storage medium
Technical Field
The invention relates to the field of cloud computing, in particular to a server cluster construction method, 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. The service resources provided by cloud computing are divided into three categories according to the types: Infrastructure-as-a-Service (IaaS), Platform-as-a-Service (Paas), and Software-as-a-Service (SaaS).
After Docker is exploded, the third generation PaaS constructs a plurality of PaaS, such as Kubernets, by using the characteristics of Docker. However, after a container cluster management system is built in a physical machine at present, the physical machine in the cluster runs a unified operating system, the borne node service cannot be adapted to other operating systems, and the adaptability of the container management system is low. The above situation is not favorable for rapidly expanding the container management system in other physical machines installed with different operating systems, and when the operating system of the current physical machine fails, the standby operating system cannot be rapidly used to continue providing the container management service.
For this reason, a new server cluster construction method is required.
Disclosure of Invention
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. The service resources provided by cloud computing are divided into three categories according to the types: Infrastructure-as-a-Service (IaaS), Platform-as-a-Service (Paas), and Software-as-a-Service (SaaS).
After Docker is exploded, the third generation PaaS constructs a plurality of PaaS, such as Kubernets, by using the characteristics of Docker. However, after a container cluster management system is built in a physical machine at present, the physical machine in the cluster runs a unified operating system, the borne node service cannot be adapted to other operating systems, and the adaptability of the container management system is low. The above situation is not favorable for rapidly expanding the container management system in other physical machines installed with different operating systems, and when the operating system of the current physical machine fails, the standby operating system cannot be rapidly used to continue providing the container management service.
For this reason, a new server cluster construction method is required.
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 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 client and 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 flow diagram of a server cluster building method 300 according to an exemplary embodiment of the 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 client and server communication connection according to an exemplary embodiment of the present invention. As shown in FIG. 1, server 120 is communicatively coupled to clients 111-113. The connection manner between the server 120 and the plurality of clients shown in fig. 1 is only exemplary, and the number of clients connected to the server 120 and the connection manner are not limited in the present invention.
The server 120 and the clients 111-113 can be collectively built into a server cluster. According to an embodiment of the present invention, the server 120 and the clients 111-113 may be collectively configured as a container cluster management system Kubernets. Kubernets is built on a Docker technology, provides a set of functions such as resource scheduling, deployment and operation, service discovery, capacity expansion and capacity reduction for containerized applications, and can be essentially regarded as a Micro-PaaS platform based on a container technology, namely a representative project of third-generation PaaS.
Kubernetes belongs to a Master-slave distributed architecture, and nodes are divided into Master nodes (masters) and slave nodes (nodes) in roles. The server 120 shown in FIG. 1 serves as a master node, and the clients 111-113 serve as slave nodes. The server 120 is a control node of the container cluster management system, and schedules and manages the entire system. The clients 111-113 operate and manage the containers. Node is an operation unit of Kubernetes, is used for allocating containers to perform binding, generally refers to a physical device, and needs network connection and uniform management to form a cluster.
Server 120 and clients 111-113 in FIG. 1 may be implemented as computing device 200 shown in FIG. 2. 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 200 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 program instructions of server cluster building method 300 that may direct processor 204 to perform some of the steps of server cluster building method 300 that are run in computing device 200 of the present invention such that the various portions of computing device 200 implement building a server cluster by performing server cluster building method 300 of the present invention.
Computing device 200 may be implemented as a server, e.g., a file server, a database, a server, an application server, etc., which may be, for example, 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 building method 300.
In the prior art, when the clients 111 to 113 establish the server cluster, the clients 111 to 113 run a unified operating system, the borne node service cannot adapt to other operating systems, and the adaptability of the container management system is low. In order to quickly expand a container management system in other physical machines with different operating systems, and to continue providing a container management service by using a standby operating system when a current operating system fails, it is necessary to improve the adaptability of the container management system to various operating systems.
Fig. 3 shows a flow diagram of a server cluster building method 300 according to an exemplary embodiment of the invention. The method 300 is described below by taking the client 111 and the server 120 as examples. A first operating system runs in the client 111. As shown in fig. 3, the server cluster building method 300 begins with step S310, installing a second operating system in the client 111, where a first container application runs in a first operating system.
The invention does not limit the types of the first operating system and the second operating system, and can realize the adaptation of various different operating systems. According to an embodiment of the present invention, the first operating system may be implemented as a centros system, the second operating system may be implemented as a kylin system, and the corresponding processor architecture adapted for the first operating system is x86 architecture and the processor architecture adapted for the second operating system is arm architecture.
The method for installing the second operating system in the client 111 is not limited, and the installation package of the second operating system can be loaded through the external insertion storage device to install the second operating system; the server 120 may also issue a second os installation package, and the client 111 installs the second os according to the os installation package issued by the server 120.
The first container application is run in the first operating system, and is suitable for constructing a first container module in the client 111, so that the environment construction of the service module running is realized. The first container application manages container images of the container modules, and the container modules are constructed by managing the container images. According to one embodiment of the present invention, the container application (including the first container application and the second container application) may be implemented as a Harbor. Harbor is an enterprise-level Docker Registry management project opened by VMware corporation, and comprises functions of permission management (RBAC), LDAP, log audit, management interface, self-registration, mirror image copy, Chinese support and the like. The present invention is not limited to the kind of application of the first container. The container modules (including the first container module and the second container module) may be implemented as a Docker container, and the present invention is not limited to the type of container module. The service module can be realized as a pod, and the invention does not limit the type of the service module.
When the first container application constructs the first container module, the first container application is constructed according to the running environment of the first operating system, so that the first container application cannot normally run in the second operating system, and the first container application needs to be adapted. Subsequently, step S320 is executed to build a second container application according to the second operating system and the first container application. When the second container application is constructed, firstly, a processor architecture adapted to the second operating system is determined, then, an operation instruction set corresponding to the processor architecture is determined according to the processor architecture, the second container application is constructed according to the operation instruction set and the first container application, specifically, the application files of the first container application are compiled again according to the operation instruction set to obtain application files of the second container application, and the second container application is obtained by installing the application files according to the second container application.
According to an embodiment of the present invention, if the first operating system is a centros system and the second operating system is a kylin system, the adapted processor architecture is determined to be an ARM architecture for the kylin system according to the second operating system, and the corresponding operating instruction set is determined to be an ARM instruction set according to the ARM architecture. And finally, compiling the application file of the first container application again according to the ARM instruction set to obtain the application file of the second container application, and installing the application file of the second container application to obtain the second container application.
Subsequently, step S330 is executed to construct a second container module according to a second container application, where the first resource application and the first network application are also run in the first operating system. When the second container module is constructed, the operating environment is first configured according to the processor architecture. The container module may include a plurality of container components for performing various functions, and the invention is not limited to the type of the container components, including List, Map, Set, and Collection. And finally, compiling the plurality of first container components according to the running environment to obtain a second container module comprising a plurality of second container components.
According to one embodiment of the invention, if the processor architecture is an ARM processor architecture, the running environment is set to be a go environment. And then loading a plurality of first container components included in the first container module into a folder of a go environment, compiling the first container components according to the go environment to obtain a plurality of corresponding second container components, and constructing a second container module according to the plurality of second container components. According to one embodiment of the invention, the second container module may be constructed by:
FROM alpine:latest
RUN apk add --no-cache bash curl
RUN apk add --no-cache tzdata \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
COPY lib/kubectl /usr/bin/kubectl
COPY lib/kubefedctl /usr/bin/kubefedctl
COPY bin/kubefed-rest /kubefed-rest
COPY bin/kubefed-rest /usr/bin/kubefed-rest
RUN chmod +x /kubefed-rest && \
chmod +x /usr/bin/kubefed-rest && \
chmod +x /usr/bin/kubectl && \
chmod +x /usr/bin/kubefed-rest
RUN mkdir /context
WORKDIR /
the resource applications (including the first resource application and the second resource application) are adapted to allocate operating resources for the service module operating in the container module, the operating resources including memory space of an internal memory and an external memory of the computing device. According to an embodiment of the present invention, the resource application may be implemented as CSIplugin for loading the storage volume, and the present invention does not limit the kind of the resource application.
The network applications (including the first network application and the second network application) are adapted to build a communication interface for running the service module in the container module. Since the service module operates in the container module, the network agent of the host cannot be directly used to acquire the network resource, and thus the network service needs to be used through the communication interface. According to an embodiment of the present invention, the network application may be implemented as a hash for constructing a communication interface and distributing network resources.
Subsequently, step S340 is executed to build a second resource application according to the first resource application and the second operating system. When the second resource application is constructed, a driver is set according to the file system of the second operating system, so that the storage volume is loaded under the corresponding file system of the second operating system according to the driver, and then the second resource application is constructed according to the driver and the operating instruction set.
According to an embodiment of the present invention, when the second operating system is a kylin system, a driver is set according to the NeoKylin file system, so that a storage volume is loaded under the NeoKylin file system according to the driver. Subsequently, a second resource application is constructed from the driver and the ARM instruction set.
Subsequently, step S350 is executed to construct a second network application according to the first network application and the second operating system. And when the second network application is constructed, setting second network parameters according to the second operating system, modifying the first network parameters of the first resource application according to the second network parameters to obtain the modified first network application, and finally constructing the second network application according to the modified first network application and the operating instruction set. And when the second network parameters are set according to the second operating system, setting the second network parameters according to a network server of the second operating system so that the service module uses the network service of the second operating system.
According to an embodiment of the present invention, when the second operating system is a kylin system, the stick on src parameter needs to be set to 0, so that the second network application can normally run in the second operating system.
Subsequently, step S360 is executed to construct one or more service modules in the container module according to the second resource application and the second network application. When the service module is constructed, the operation resources required by the service module are distributed according to the second resource application, the communication interface of the service module is set according to the second network application, and finally one or more service modules are constructed in the container module according to the communication structure and the distributed operation resources.
The constructed service module runs in the container module by using the running resources distributed by the second resource application, obtains running data and provides services according to the communication interface, and the communication interface returns related data.
Subsequently, step S370 is executed to register the client 111 in the server 120 according to the second container module and the service module, and the client 111 is taken as a service node in the server cluster. When registering the client 111, slave node information of the client 111 is set according to the second container module and the service module. The slave node information includes a port number of the communication interface of the second container module, the number of the set service modules, and the like. The slave node information is then sent to the server 120 so that the server 120 adds the client 111 in the node list. After receiving the slave node information, the server 120 stores the slave node information so as to perform load balancing according to the slave node information, and distributes a service task to the client 111. A node list is built in the server 120, including all connected slave nodes. The server 120 adds a new data line in the node list according to the node information, stores the slave node information of the client 111, and completes registration of the client 111.
The server 120 also manages a plurality of clients through the node list, modifies the host names of the respective nodes, and divides the master control node, the system node, and the working node according to the host names and the IP.
According to the steps, node services can be adapted in different operating systems, so that service nodes are deployed in different operating systems, a server cluster is built, and adaptation of various operating systems and migration of service management can be performed on the existing service nodes. The problem that the service cannot run normally due to the fact that running environments are inconsistent because of the change of an operating system is avoided.
According to an embodiment of the present invention, when the service module cannot normally operate in the second container module and generates the error information, the fault type is determined according to the error information. And then modifying the container parameters of the second container module according to the fault type to obtain a modified second container module, and operating the service module according to the modified second container module.
When the service module runs error reporting and the generation module waits (Pod Pending) error information, the service module is not scheduled to provide service normally at this time. The container module comprises a scheduler, and the scheduler is checked whether the container module is normal or not, and if the container module is not normal, parameters of the scheduler are modified to enable the scheduler to work. And then the service module is operated again according to the modified scheduler.
When the service module runs and reports an error and generates error information of failed startup (Pod disclosure off), the service module is flashed off. At the moment, various starting parameters of the container module are checked according to the error report, and the wrong starting parameters are modified. And after modification, operating the service module again according to the modified starting parameters.
When the service module runs and reports an error and generates error information of mirror image pull failure (Pod image pull back), the service module fails to start at the moment. The container module is provided with a mirror image warehouse and determines whether the warehouse address of the mirror image warehouse is normal or not; if not, after the warehouse address is modified, the service module is operated again according to the modified container module.
The server cluster construction method is executed in a client, the client is in communication connection with a server, a first operating system runs in the client, a second operating system is installed in the client, and then adaptation of the second operating system is carried out. And the first operating system runs the first container application, and then the second container application is constructed according to the second operating system and the first container application, so that a second container module is constructed according to the second container application, and the running environment of the service module is created. The first operating system runs a first resource application and a first network application, then a second resource application is built according to the first resource application and the second operating system, a second network application is built according to the first network application and the second operating system, so that one or more service modules are built in a container module according to the second resource application and the second network application, server nodes are deployed at a client under the second operating system, finally the client is registered in a server according to the second container module and the service modules, and the client is used as one service node in a server cluster. According to the mode, the service nodes can be deployed in different operating systems, so that a server cluster is constructed, and adaptation of various operating systems and migration of service management can be performed on the existing service nodes.
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 additionally be 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 means for performing 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 building method, adapted to be executed in a client, the client being in communication connection with a server, the client having a first operating system running therein, the method comprising the steps of:
installing a second operating system in the client, wherein a first container application runs in the first operating system;
constructing a second container application according to the second operating system and the first container application;
constructing a second container module according to the second container application, wherein a first resource application and a first network application are also run in the first operating system;
constructing a second resource application according to the first resource application and a second operating system;
constructing a second network application according to the first network application and a second operating system;
constructing one or more service modules in the container module according to the second resource application and a second network application;
and according to the second container module and the service module, registering a client in the server, and using the client as a service node in the server cluster.
2. The method of claim 1, wherein said building a second container application from said second operating system and first container application comprises the steps of:
determining a processor architecture adapted by the second operating system;
determining an operation instruction set corresponding to the processor architecture according to the processor architecture;
and constructing a second container application according to the operation instruction set and the first container application.
3. The method of claim 2, wherein a first container module is built in the first operating system, said building a second container module from the second container application comprising the steps of:
configuring a running environment according to the processor architecture;
loading a plurality of first container components included by the first container module to the runtime environment;
compiling the plurality of first container components according to the operating environment to obtain a second container module comprising a plurality of second container components.
4. The method of claim 2 or 3, wherein said building a second resource application from said first resource application and a second operating system comprises the steps of:
setting a driver according to the second operating system;
and constructing a second resource application according to the driver and the operating instruction set.
5. The method of claim 4, wherein said building a second web application from said first web application and a second operating system comprises the steps of;
setting a second network parameter according to the second operating system;
modifying the first network parameters of the first network application according to the second network parameters to obtain a modified first network application;
and constructing a second network application according to the modified first network application and the operation instruction set.
6. The method of claim 5, wherein said building one or more service modules in said container module from said second resource application and a second network application comprises the steps of:
distributing the running resources required by the service module according to the second resource application;
setting a communication interface of the service module according to the second network application;
one or more service modules are built in the container module according to the communication interface and the allocated operating resources.
7. The method of claim 6, wherein said registering a client in the server according to the second container module and the service module comprises the steps of:
setting slave node information of the client according to the second container module and the service module;
and sending the slave node information to a server so that the server adds the client in a node list.
8. The method of claim 7, wherein the method further comprises the steps of:
if the service module cannot normally operate in the second container module, determining a fault type according to the error information when generating the error information;
modifying the container parameters of the second container module according to the fault type to obtain a modified second container module;
and operating the service module according to the modified second container module.
9. A computing device, comprising:
one or more processors;
a memory; and
one or more apparatuses comprising instructions for performing any of the methods of claims 1-8.
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 any of the methods of claims 1-8.
CN202210376916.1A 2022-04-12 2022-04-12 Server cluster construction method, computing device and storage medium Active CN114465914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210376916.1A CN114465914B (en) 2022-04-12 2022-04-12 Server cluster construction method, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210376916.1A CN114465914B (en) 2022-04-12 2022-04-12 Server cluster construction method, computing device and storage medium

Publications (2)

Publication Number Publication Date
CN114465914A CN114465914A (en) 2022-05-10
CN114465914B true CN114465914B (en) 2022-07-08

Family

ID=81417957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210376916.1A Active CN114465914B (en) 2022-04-12 2022-04-12 Server cluster construction method, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN114465914B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8316110B1 (en) * 2003-12-18 2012-11-20 Symantec Operating Corporation System and method for clustering standalone server applications and extending cluster functionality
CN112948063A (en) * 2021-05-17 2021-06-11 北京汇钧科技有限公司 Cloud platform creation method and device, cloud platform and cloud platform implementation system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500659A (en) * 2016-03-30 2022-05-13 阿普福米克斯有限公司 Method and host device for near real-time cloud infrastructure policy implementation and management
WO2020246960A1 (en) * 2019-06-04 2020-12-10 Siemens Aktiengesellschaft Supervisory device with deployed independent application containers for automation control programs
CN113342475B (en) * 2021-07-05 2024-03-01 统信软件技术有限公司 Server cluster construction method, computing device and storage medium
CN114527883A (en) * 2021-12-21 2022-05-24 统信软件技术有限公司 Shortcut key implementation method, computing device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8316110B1 (en) * 2003-12-18 2012-11-20 Symantec Operating Corporation System and method for clustering standalone server applications and extending cluster functionality
CN112948063A (en) * 2021-05-17 2021-06-11 北京汇钧科技有限公司 Cloud platform creation method and device, cloud platform and cloud platform implementation system

Also Published As

Publication number Publication date
CN114465914A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CN109062655B (en) Containerized cloud platform and server
US11294699B2 (en) Dynamically scaled hyperconverged system establishing minimum supported interoperable communication protocol between clusters in a cluster group
CN109196474B (en) Distributed operation control in a computing system
US11886929B2 (en) Deploying cloud-native services across control planes
US10303450B2 (en) Systems and methods for a policy-driven orchestration of deployment of distributed applications
CN113342475B (en) Server cluster construction method, computing device and storage medium
Qi et al. Hand: Highly available dynamic deployment infrastructure for globus toolkit 4
WO2019154202A1 (en) Security protection method and apparatus
US11550633B2 (en) Intra-footprint computing cluster bring-up
CN113157290B (en) Multi-system installation method, computing equipment and storage medium
CN111104201A (en) System migration method and device, electronic equipment and storage medium
CN117120984A (en) Multi-base layer fault-tolerant continuous delivery of built data centers on cloud computing platforms
Hardikar et al. Containerization: cloud computing based inspiration Technology for Adoption through Docker and Kubernetes
US20160266921A1 (en) Virtual appliance management in a virtualized computing environment
CN116783581A (en) Deploying software release on a data center configured in a cloud platform
CN116028163A (en) Method, device and storage medium for scheduling dynamic link library of container group
Miceli et al. Programming abstractions for data intensive computing on clouds and grids
CN113407257A (en) Mysql cluster deployment method and device, electronic equipment and storage medium
EP3786797A1 (en) Cloud resource marketplace
CN114465914B (en) Server cluster construction method, computing device and storage medium
US20100299478A1 (en) Application and system settings configuration filtering during physical to virtual hard disk conversion
CN114827177B (en) Deployment method and device of distributed file system and electronic equipment
US20230403324A1 (en) Data sharing system, data sharing method and non-transitory computer-readable recording medium for data sharing program
CN109271179A (en) Virtual machine application management method, device, equipment and readable storage medium storing program for executing
US20240143544A1 (en) Synchronizing host movement to hci satellite nodes

Legal Events

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