CN109947599A - Method and device is managed in more cluster management methods and device, cluster - Google Patents

Method and device is managed in more cluster management methods and device, cluster Download PDF

Info

Publication number
CN109947599A
CN109947599A CN201910229484.XA CN201910229484A CN109947599A CN 109947599 A CN109947599 A CN 109947599A CN 201910229484 A CN201910229484 A CN 201910229484A CN 109947599 A CN109947599 A CN 109947599A
Authority
CN
China
Prior art keywords
cluster
mirror image
mirror
order
administration order
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.)
Granted
Application number
CN201910229484.XA
Other languages
Chinese (zh)
Other versions
CN109947599B (en
Inventor
张佳滨
江露
罗亮亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910229484.XA priority Critical patent/CN109947599B/en
Publication of CN109947599A publication Critical patent/CN109947599A/en
Application granted granted Critical
Publication of CN109947599B publication Critical patent/CN109947599B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Present disclose provides a kind of more cluster management methods, each cluster all has mirroring service component and the mirror database for memory image, at least one cluster is main cluster and other clusters are the standby cluster of the main cluster, this method comprises: receiving mirror image administration order;The mirroring service component of mirror image administration order to standby cluster corresponding with the mirror image administration order is sent, which is executed based on the mirror database of standby cluster with the mirroring service component of incense cluster.Correspondingly, the disclosure additionally provides management method in a kind of cluster, which has mirroring service component and the mirror database for memory image, which is standby cluster corresponding with main cluster, this method comprises: reception mirror image administration order;Mirror database based on this cluster executes the mirror image administration order.The disclosure additionally provides a kind of more cluster management devices, managing device, server and computer-readable medium in cluster.

Description

Method and device is managed in more cluster management methods and device, cluster
Technical field
This disclosure relates to technical field of the computer network, and in particular, to more cluster management methods and device, cluster inner tube Manage method and device, server and computer-readable medium.
Background technique
Mirror image (Mirroring) is a seed type of redundancy, and there are one on another disk for the data on a disk A identical copy is mirror image.Existing cloud platform mirror image management and storage multi-pass cross the mirror image management positioned at main equipment room Realized with storage system, and be deployed in standby host room mirror image management and storage system it is idle, lead to the mirror image management in standby host room It is wasted with storage resource and the mirror image management of main equipment room and storage system pressure is excessive.Meanwhile the Netowrk tape in standby machine room Width is smaller and mirror image volume is larger, and transmitting mirror image by low bandwidth special line high-frequency between active and standby computer room can be between active and standby computer room Special line bandwidth cause stress, and then influence the communication of other services between active and standby computer room.
It should be noted that the above description of the technical background be intended merely to it is convenient to technical solution of the present invention carry out it is clear, Complete explanation, and facilitate the understanding of those skilled in the art and illustrate.Cannot merely because these schemes of the invention Background technology part is expounded and thinks that above-mentioned technical proposal is known to those skilled in the art.
Summary of the invention
The embodiment of the present disclosure propose in more cluster management methods and device, cluster manage method and device, server and Computer-readable medium.
In a first aspect, the embodiment of the present disclosure provides a kind of more cluster management methods, each cluster all has mirror image Serviced component and mirror database for memory image, at least one described cluster is main cluster and other clusters are the master The standby cluster of cluster, which comprises
Receive mirror image administration order;
The mirroring service component of the mirror image administration order to standby cluster corresponding with the mirror image administration order is sent, with The mirror image administration order is executed based on the mirror database of the standby cluster for the mirroring service component of the standby cluster.
In some embodiments, after the step of receiving mirror image administration order further include:
The mirroring service component of the mirror image administration order to main cluster corresponding with the mirror image administration order is sent, with The mirror image administration order is executed based on the mirror database of the main cluster for the mirroring service component of the main cluster.
In some embodiments, the mirror image administration order includes public mirror image upload command, empty machine creation order and void At least one of the corresponding customized mirror image creation order of machine, snapshot creation order corresponding with empty machine.
In some embodiments, further includes:
Receive echo cloning order;
The mirroring service component of the echo cloning order to main cluster is sent, for the mirroring service group of the main cluster Part clones source mirror image into the mirror database of standby cluster;
Receive the echo cloning result of the mirroring service component feedback of the main cluster.
Second aspect, the embodiment of the present disclosure provide management method in a kind of cluster, and the cluster has mirroring service group Part and mirror database for memory image, the cluster are standby cluster corresponding with main cluster, which comprises
Receive mirror image administration order;
Mirror database based on this cluster executes the mirror image administration order.
In some embodiments, the mirror image administration order is public mirror image upload command;
Mirror database based on this cluster executes the step of mirror image administration order and includes:
The public mirror image is uploaded to the mirror database of this cluster and stores the mirror image of the public mirror image to this cluster In database, the public mirror image has the Cluster tab of this cluster.
In some embodiments, the mirror image administration order is empty machine creation order;
Mirror database based on this cluster executes the step of mirror image administration order and includes:
Obtain the public mirror image or customized mirror image being stored in the mirror database of this cluster;
Empty machine is created according to the public mirror image or customized mirror image.
In some embodiments, the mirror image administration order be customized mirror image creation order corresponding with empty machine or with void The corresponding snapshot creation order of machine;
Mirror database based on this cluster executes the step of mirror image administration order and includes:
Upload the customized mirror image corresponding with empty machine or snapshot to the mirror database of this cluster and store it is described and The corresponding customized mirror image of empty machine or snapshot into the mirror database of this cluster, the customized mirror image corresponding with empty machine or Snapshot has the Cluster tab of this cluster.
The third aspect, the embodiment of the present disclosure provide a kind of more cluster management devices, and each cluster all has mirror image Serviced component and mirror database for memory image, at least one described cluster is main cluster and other clusters are the master The standby cluster of cluster, more cluster management devices include:
First receiving module, for receiving mirror image administration order;
Sending module, for sending the mirror of the mirror image administration order to standby cluster corresponding with the mirror image administration order As serviced component, so that the mirroring service component of the standby cluster executes the mirror image based on the mirror database of the standby cluster Administration order.
In some embodiments, the sending module be also used to send the mirror image administration order to the mirror image management Order the mirroring service component of corresponding main cluster, for the main cluster mirroring service component based on the mirror of the main cluster As database executes the mirror image administration order.
In some embodiments, the mirror image administration order includes public mirror image upload command, empty machine creation order and void At least one of snapshot creation order corresponding with empty machine is ordered in the corresponding customized mirror image creation of machine.
It in some embodiments, further include the second receiving module;
First receiving module is also used to receive echo cloning order;
The sending module is also used to send the mirroring service component of the echo cloning order to main cluster, for described The mirroring service component of main cluster clones source mirror image into the mirror database of standby cluster;
Second receiving module, the echo cloning result that the mirroring service component for receiving the main cluster is fed back.
Fourth aspect, the embodiment of the present disclosure provide managing device in a kind of cluster, and the cluster has mirroring service group Part and mirror database for memory image, the cluster are standby cluster corresponding with main cluster, and management fills in the cluster It sets and includes:
Receiving module, for receiving mirror image administration order;
Execution module executes the mirror image administration order for the mirror database based on this cluster.
In some embodiments, the mirror image administration order is public mirror image upload command;
The execution module includes:
Submodule is uploaded, for uploading the mirror database of the public mirror image to this cluster;
Sub-module stored, for storing the public mirror image into the mirror database of this cluster, the public mirror image tool There is the Cluster tab of this cluster.
In some embodiments, the mirror image administration order is empty machine creation order;
The execution module includes:
Acquisition submodule, for obtaining the public mirror image or customized mirror image that are stored in the mirror database of this cluster;
Submodule is created, for creating empty machine according to the public mirror image or customized mirror image.
In some embodiments, the mirror image administration order be customized mirror image creation order corresponding with empty machine or with void The corresponding snapshot creation order of machine;
The execution module includes:
Submodule is uploaded, for uploading the mirror image data of the customized mirror image corresponding with empty machine or snapshot to this cluster Library;
Sub-module stored, for storing the mirror image data of the customized mirror image corresponding with empty machine or snapshot to this cluster In library, the Cluster tab of the customized mirror image corresponding with empty machine or snapshot with this cluster.
5th aspect, the embodiment of the present disclosure provide a kind of server, comprising:
One or more processors;
Storage device is stored thereon with one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of places It manages device and realizes management method in more cluster management methods as described above or cluster as described above.
6th aspect, the embodiment of the present disclosure provide a kind of computer-readable medium, are stored thereon with computer program, In, described program is performed management method in realization more cluster management methods as described above or cluster as described above.
The disclosure provide more cluster management methods, receive mirror image administration order, send mirror image administration order to and mirror image The mirroring service component of the corresponding standby cluster of administration order, the mirror image number with the mirroring service component of incense cluster based on standby cluster Mirror image administration order is executed according to library.When being connected to mirror image administration order, whether main cluster or standby cluster, in the collection of itself The mirror image administration order is executed in group, therefore the memory space of standby cluster does not leave unused, the memory space pressure of main cluster is delayed Solution, transmits mirror image without high-frequency between main cluster and standby cluster, and the special line bandwidth between main cluster and standby cluster is eased.Into one Step ground, main cluster are set in main equipment room, and standby cluster is set in standby host room, are transmitted mirror image without high-frequency between active and standby computer room, are kept away The influence to other communication for services between active and standby computer room is exempted from.
Detailed description of the invention
Attached drawing is used to provide to further understand embodiment of the disclosure, and constitutes part of specification, with this Disclosed embodiment is used to explain the disclosure together, does not constitute the limitation to the disclosure.By reference to attached drawing to detailed example Embodiment is described, and the above and other feature and advantage will become apparent those skilled in the art, in attached drawing In:
Fig. 1 is a kind of flow diagram for more cluster management methods that the embodiment of the present disclosure provides;
Fig. 2 is the flow diagram for the more cluster management methods of another kind that the embodiment of the present disclosure provides;
Fig. 3 is the flow diagram for another more cluster management method that the embodiment of the present disclosure provides;
Fig. 4 is a kind of structural schematic diagram for more cluster management devices that the embodiment of the present disclosure provides;
Fig. 5 is the structural schematic diagram for the more cluster management devices of another kind that the embodiment of the present disclosure provides;
The flow diagram of management method in the cluster that Fig. 6 provides for the embodiment of the present disclosure;
The structural schematic diagram of managing device in a kind of cluster that Fig. 7 provides for the embodiment of the present disclosure;
Fig. 8 is a kind of optional structure diagram of execution module;
Fig. 9 is another optional structure diagram of execution module;
Figure 10 is another optional structure diagram of execution module.
Specific embodiment
To make those skilled in the art more fully understand the technical solution of the disclosure, the disclosure is mentioned with reference to the accompanying drawing Method and device, server and computer-readable medium is managed in the more cluster management methods and device, cluster supplied to carry out in detail Description.
Example embodiment will hereinafter be described more fully hereinafter with reference to the accompanying drawings, but the example embodiment can be with difference Form embodies and should not be construed as being limited to embodiment set forth herein.Conversely, the purpose for providing these embodiments is It is thoroughly and complete to make the disclosure, and those skilled in the art will be made to fully understand the scope of the present disclosure.
Term as used herein is only used for description specific embodiment, and is not intended to limit the disclosure.As used herein , "one" is also intended to "the" including plural form singular, unless in addition context is expressly noted that.It will also be appreciated that Be, when in this specification use term " includes " and/or " by ... be made " when, specify there are the feature, entirety, step, Operation, element and/or component, but do not preclude the presence or addition of other one or more features, entirety, step, operation, element, Component and/or its group.
Unless otherwise defined, the otherwise meaning of all terms (including technical and scientific term) used herein and this field The normally understood meaning of those of ordinary skill is identical.It will also be understood that such as those those of limit term in common dictionary and answer When being interpreted as having and its consistent meaning of meaning under the background of the relevant technologies and the disclosure, and will be not interpreted as having There are idealization or excessively formal meaning, unless clear herein so limit.
Fig. 1 is a kind of flow diagram for more cluster management methods that the embodiment of the present disclosure provides, as shown in Figure 1, the party Method can be executed by more cluster management devices, which can be realized by way of software and/or hardware, which can be with It integrates in the server.Each cluster all has mirroring service component and the mirror database for memory image, and cluster is clothes Business device cluster, multiple server centereds are got up and carry out same service together.At least one cluster be main cluster and other Cluster is the standby cluster of main cluster, and main cluster is the cluster in main equipment room, and standby cluster is the cluster in standby host room.It is main Computer room is the area of space for storing main cluster, and standby host room is the area of space for storing standby cluster.This method is specifically wrapped It includes:
Step S1, mirror image administration order is received.
More cluster management devices receive mirror image administration order.Mirror image administration order is held for controlling main cluster or standby cluster The order of itself mirror image management of row, the implementation procedure of mirror image administration order refer at least to the upload of mirror image or the downloading of mirror image, this The mirror image at place refers to public mirror image or customized mirror image.Optionally, mirror image administration order includes public mirror image upload command, empty machine wound It builds order and at least one of the corresponding customized mirror image creation order of empty machine, snapshot creation corresponding with empty machine is ordered.It is empty Machine is virtual server, and physical server can be divided into multiple virtual servers.
Step S2, the mirroring service component of mirror image administration order to standby cluster corresponding with mirror image administration order is sent, with The mirroring service component of incense cluster executes the mirror image administration order based on the mirror database of standby cluster.
Mirroring service component can be OpenStack mirroring service component Glance.Mirror database can affix one's name to for branch Storage medium SWIFT (OpenStack, cloud stored items).
Fig. 2 is the flow diagram for the more cluster management methods of another kind that the embodiment of the present disclosure provides, as shown in Fig. 2, After step S1 further include:
Step S3, the mirroring service component of mirror image administration order to main cluster corresponding with mirror image administration order is sent, with Mirror image administration order is executed based on the mirror database of main cluster for the mirroring service component of main cluster.
The embodiment of the present disclosure, when receiving mirror image administration order, whether main cluster or standby cluster, itself The mirror image administration order is executed in cluster, therefore the memory space of standby cluster does not leave unused, the memory space pressure of main cluster obtains Alleviate, transmit mirror image without high-frequency between main cluster and standby cluster, the special line bandwidth between main cluster and standby cluster is eased.
Specifically, being provided with mirroring service component DNS (Domain Name System, domain in main cluster and standby cluster Name system), when mirror image administration order is public mirror image upload command, public mirror image is sent by mirroring service component DNS and is uploaded Mirroring service component of the order to main cluster corresponding with public mirror image upload command or the mirroring service component for cluster, for Main cluster and standby cluster execute the mirror in each leisure own cluster after receiving mirror image administration order corresponding with own cluster As administration order.
Improved Nova module (virtual server deployment and business computing module), mirror image management are provided in cluster Order creates for empty machine creation order customized mirror image creation order corresponding with empty machine, snapshot corresponding with empty machine orders It is a kind of when, Nova module sends the mirror image administration order to main cluster corresponding with mirror image administration order/standby cluster mirror image Serviced component.
Wherein, step S2 and step S3 is to send mirror image administration order to standby cluster and send mirror image administration order extremely respectively The process of main cluster, main cluster receive and have no inevitable sequence between mirror image administration order and standby cluster reception mirror image administration order, Therefore send mirror image administration order to standby cluster and the execution sequence for sending mirror image administration order to main cluster and change, step S3 can It is executed before step S2 or step S2 and step S3 is performed simultaneously.
Fig. 3 is the flow diagram for another more cluster management method that the embodiment of the present disclosure provides, as shown in figure 3, should More cluster management methods further include:
Step S4, echo cloning order is received.
Step S5, the mirroring service component of echo cloning order to main cluster is sent, for the mirroring service group of main cluster Part clones source mirror image into the mirror database of standby cluster.
The source mirror image cloned are as follows: the public mirror image of customized mirror image and customized image dependency.
Specifically, the mirroring service component of main cluster is verified the availability (whether being cloned) of source mirror image Afterwards, the source mirror image is cloned into the mirror database of standby cluster.Source mirror image is located in the mirror database of main cluster.
Step S6, the echo cloning result of the mirroring service component feedback of main cluster is received.
Echo cloning result includes echo cloning successful result and echo cloning failure result.The mirroring service group of main cluster Part utilizes the echo cloning of " event " mode asynchronous detection source mirror image as a result, when detecting that source mirror image is cloned within a preset period of time When failure, source mirror image executes rollback process.Such design can real-time detection go out the echo cloning result of source mirror image.
Wherein, the mirror database for cloning source mirror image to standby cluster in main cluster is the order for cloning mirror image, is used for The source echo cloning in main cluster will be located at into standby cluster, therefore it is different two class orders with mirror image administration order, therefore, The execution sequence of step S4 and step S1 changes, and step S4 can be executed before step S1.
More cluster management methods that the disclosure provides can be transmitted and order with mirror image management when receiving mirror image administration order The mirroring service component of corresponding standby cluster or the mirroring service component of main cluster are enabled, whether main cluster or standby cluster, The mirror image administration order is executed in the cluster of itself, therefore the memory space of standby cluster does not leave unused, the memory space of main cluster Pressure is eased, and transmits mirror image without high-frequency between main cluster and standby cluster, and the special line bandwidth between main cluster and standby cluster obtains To alleviation.Further, main cluster is set in main equipment room, and standby cluster is set in standby host room, and high-frequency is not necessarily between active and standby computer room Mirror image is transmitted, the influence to other communication for services between active and standby computer room is avoided.
Echo cloning order can be transmitted when receiving echo cloning order in more cluster management methods that the disclosure provides To the mirroring service component of main cluster, so that the mirroring service component of main cluster clones the mirror database of source mirror image to standby cluster In, and then realize more cluster disaster tolerances.Further, main cluster is set in main equipment room, and standby cluster is set in standby host room, can be realized Multimachine room disaster tolerance.And the mirroring service component of main cluster can feed back echo cloning as a result, improving echo cloning efficiency.
It should be noted that although describing the operation of method of disclosure in the accompanying drawings with particular order, this is not required that Or hint must execute these operations in this particular order, or have to carry out operation shown in whole and be just able to achieve the phase The result of prestige.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or will One step is decomposed into execution of multiple steps.
It should be noted that in the disclosure, technological means involved in the various embodiments described above is in the feelings that do not disagree Condition can be combined with each other.
Fig. 4 is a kind of structural schematic diagram for more cluster management devices that the embodiment of the present disclosure provides, as shown in figure 4, this is more Cluster management device can be used for realizing that more cluster management methods provided by the various embodiments described above, the device include: the first reception Module 11 and sending module 12.
First receiving module 11 is for receiving mirror image administration order.Sending module 12 for send mirror image administration order to The mirroring service component of the corresponding standby cluster of mirror image administration order, the mirror with the mirroring service component of incense cluster based on standby cluster As database executes mirror image administration order.
Further, sending module 12 is also used to send mirror image administration order to main cluster corresponding with mirror image administration order Mirroring service component, for main cluster mirroring service component based on main cluster mirror database execute mirror image management life It enables.
Further, mirror image administration order include public mirror image upload command, empty machine creation order, it is corresponding with empty machine certainly Define at least one of mirror image creation order, snapshot creation order corresponding with empty machine.
Fig. 5 is the structural schematic diagram for the more cluster management devices of another kind that the embodiment of the present disclosure provides, as shown in figure 5, should Device further include: the second receiving module 13.
First receiving module 11 is also used to receive echo cloning order.Sending module 12 is also used to send echo cloning order To the mirroring service component of main cluster, so that the mirroring service component of main cluster clones the mirror database of source mirror image to standby cluster In.Second receiving module 13 is used to receive the echo cloning result of the mirroring service component feedback of main cluster.
In addition, the description of realization details and technical effect for above-mentioned each module and submodule, may refer to aforementioned side The explanation of method embodiment, details are not described herein again.
The embodiment of the present disclosure additionally provides a kind of server, which includes: one or more processors and storage Device;Wherein, one or more programs are stored on storage device, when said one or multiple programs are by said one or multiple When processor executes, so that said one or multiple processors realize more cluster management methods as provided by previous embodiment.
The embodiment of the present disclosure additionally provides a computer readable storage medium, is stored thereon with computer program, wherein should Computer program, which is performed, realizes more cluster management methods as provided by previous embodiment.
The flow diagram of management method in the cluster that Fig. 6 provides for the embodiment of the present disclosure, as shown in fig. 6, this method can To be executed by managing device in cluster, which can be realized by way of software and/or hardware, which can integrate In the server, the device or server are set in standby cluster.The cluster has mirroring service component and for memory image Mirror database is standby cluster corresponding with main cluster.This method comprises:
Step 101 receives mirror image administration order.
The mirror image management that mirror image administration order can send for the more cluster management devices provided by the embodiment of the present disclosure is ordered It enables.Specifically, mirror image administration order can pass through Command Line Interface (English: command-line interface, abbreviation: CLI) It issues.
Step 102, the mirror database based on this cluster execute mirror image administration order.
When mirror image administration order is public mirror image upload command, step 102 are as follows: upload the mirror of public mirror image to this cluster As database and public mirror image is stored into the mirror database of this cluster, and public mirror image has the Cluster tab of this cluster.
When mirror image administration order is empty machine creation order, step 102 includes: to obtain the mirror image data for being stored in this cluster Public mirror image or customized mirror image in library.Empty machine is created according to public mirror image or customized mirror image.
When mirror image administration order is that and the corresponding customized mirror image creation order of empty machine or snapshot corresponding with empty machine creates When order, step 102 includes: the mirror database and storage of upload customized mirror image corresponding with empty machine or snapshot to this cluster Customized mirror image corresponding with empty machine or snapshot are into the mirror database of this cluster, customized mirror image corresponding with empty machine or fast According to the Cluster tab with this cluster.
Management method in the cluster that the disclosure provides, standby cluster can independently receive mirror image administration order and based on this clusters Mirror database execute mirror image administration order, without executing mirror image management by main cluster, avoid the mirror image pipe for cluster Reason and storage resource are wasted, and alleviate the mirror image management and storage pressure of main cluster.
The structural schematic diagram of managing device in a kind of cluster that Fig. 7 provides for the embodiment of the present disclosure, as shown in fig. 7, the collection Managing device can be used for realizing management method in cluster provided by above-described embodiment in group, which includes: receiving module 21 With execution module 22.
Receiving module 21 is for receiving mirror image administration order.Execution module 22 is held for the mirror database based on this cluster Row mirror image administration order.
Mirror image administration order is public mirror image upload command, and Fig. 8 is a kind of optional structure diagram of execution module, is such as schemed Shown in 8, execution module 22 includes: to upload submodule 221 and sub-module stored 222.Submodule 221 is uploaded for uploading public mirror As the mirror database to this cluster.Sub-module stored 222 is public for storing public mirror image into the mirror database of this cluster Mirror image has the Cluster tab of this cluster altogether.
Mirror image administration order is empty machine creation order, and Fig. 9 is another optional structure diagram of execution module, such as Fig. 9 Shown, execution module 22 includes: acquisition submodule 223 and creation submodule 224.Acquisition submodule 223 is stored in for obtaining Public mirror image or customized mirror image in the mirror database of this cluster.Submodule 224 is created for according to public mirror image or certainly It defines mirror image and creates empty machine.
Mirror image administration order is that and the corresponding customized mirror image creation order of empty machine or snapshot corresponding with empty machine creation is ordered It enables, Figure 10 is another optional structure diagram of execution module, and as shown in Figure 10, execution module 22 includes: upload submodule 225 and sub-module stored 226.Submodule 225 is uploaded for uploading customized mirror image corresponding with empty machine or snapshot to this cluster Mirror database.Sub-module stored 226 is used to store the mirror image of customized mirror image corresponding with empty machine or snapshot to this cluster In database, the Cluster tab of customized mirror image corresponding with empty machine or snapshot with this cluster.
It is worth noting that main cluster described in the disclosure and standby cluster are opposite concept, in actual use scene In, main cluster and standby cluster may be exchanged with actual use situation, such as: after preset time period, by one of them Standby cluster is set to new main cluster, old main cluster and other for cluster as standby cluster corresponding with the new main cluster.
In addition, the description of realization details and technical effect for above-mentioned each module and submodule, may refer to aforementioned side The explanation of method embodiment, details are not described herein again.
The embodiment of the present disclosure additionally provides a kind of server, which includes: one or more processors and storage Device;Wherein, one or more programs are stored on storage device, when said one or multiple programs are by said one or multiple When processor executes, so that said one or multiple processors realize management method in the cluster as provided by previous embodiment.
The embodiment of the present disclosure additionally provides a computer readable storage medium, is stored thereon with computer program, wherein should Computer program, which is performed, realizes management method in the cluster as provided by previous embodiment.
It will appreciated by the skilled person that in whole or certain steps, device in method disclosed hereinabove Functional module/unit may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, with Division between the functional module/unit referred in upper description not necessarily corresponds to the division of physical assemblies;For example, a physics Component can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain physical sets Part or all physical assemblies may be implemented as by processor, as central processing unit, digital signal processor or microprocessor are held Capable software is perhaps implemented as hardware or is implemented as integrated circuit, such as specific integrated circuit.Such software can be with Distribution on a computer-readable medium, computer-readable medium may include computer storage medium (or non-transitory medium) and Communication media (or fugitive medium).As known to a person of ordinary skill in the art, term computer storage medium is included in use In any method or technique of storage information (such as computer readable instructions, data structure, program module or other data) The volatile and non-volatile of implementation, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, Tape, disk storage or other magnetic memory apparatus or it can be used for storing desired information and can be accessed by a computer Any other medium.In addition, known to a person of ordinary skill in the art be, communication media generally comprises computer-readable finger It enables, other data in the modulated data signal of data structure, program module or such as carrier wave or other transmission mechanisms etc, It and may include any information delivery media.
Example embodiment has been disclosed herein, although and use concrete term, they are only used for simultaneously only should It is interpreted general remark meaning, and is not used in the purpose of limitation.In some instances, aobvious to those skilled in the art and Be clear to, unless otherwise expressly stated, the feature that description is combined with specific embodiment that otherwise can be used alone, characteristic and/ Or element, or the feature, characteristic and/or element of description can be combined with other embodiments and be applied in combination.Therefore, art technology Personnel will be understood that, in the case where not departing from the scope of the present disclosure illustrated by the attached claims, can carry out various forms With the change in details.

Claims (18)

1. a kind of more cluster management methods, each cluster all has mirroring service component and the mirror image number for memory image According to library, at least one described cluster is main cluster and other clusters are the standby cluster of the main cluster, which comprises
Receive mirror image administration order;
The mirroring service component of the mirror image administration order to standby cluster corresponding with the mirror image administration order is sent, for institute The mirroring service component for stating standby cluster executes the mirror image administration order based on the mirror database of the standby cluster.
2. more cluster management methods according to claim 1, wherein also wrapped after the step of receiving mirror image administration order It includes:
The mirroring service component of the mirror image administration order to main cluster corresponding with the mirror image administration order is sent, for institute The mirroring service component for stating main cluster executes the mirror image administration order based on the mirror database of the main cluster.
3. more cluster management methods according to claim 1 or 2, wherein the mirror image administration order includes public mirror image Upload command, empty machine creation order customized mirror image creation order corresponding with empty machine, snapshot corresponding with empty machine create order At least one of.
4. more cluster management methods according to claim 1, wherein further include:
Receive echo cloning order;
The mirroring service component of the echo cloning order to main cluster is sent, for the mirroring service component gram of the main cluster Grand source mirror image is into the mirror database of standby cluster;
Receive the echo cloning result of the mirroring service component feedback of the main cluster.
5. management method in a kind of cluster, the cluster has mirroring service component and the mirror database for memory image, The cluster is standby cluster corresponding with main cluster, which comprises
Receive mirror image administration order;
Mirror database based on this cluster executes the mirror image administration order.
6. management method in cluster according to claim 5, wherein the mirror image administration order is that public mirror image uploads life It enables;
Mirror database based on this cluster executes the step of mirror image administration order and includes:
The public mirror image is uploaded to the mirror database of this cluster and stores the mirror image data of the public mirror image to this cluster In library, the public mirror image has the Cluster tab of this cluster.
7. management method in cluster according to claim 5, wherein the mirror image administration order is empty machine creation order;
Mirror database based on this cluster executes the step of mirror image administration order and includes:
Obtain the public mirror image or customized mirror image being stored in the mirror database of this cluster;
Empty machine is created according to the public mirror image or customized mirror image.
8. management method in cluster according to claim 7, wherein the mirror image administration order be it is corresponding with empty machine from Define mirror image creation order or snapshot corresponding with empty machine creation order;
Mirror database based on this cluster executes the step of mirror image administration order and includes:
The customized mirror image corresponding with empty machine or snapshot are uploaded to the mirror database of this cluster and is stored described with void machine Corresponding customized mirror image or snapshot are into the mirror database of this cluster, the customized mirror image corresponding with empty machine or snapshot Cluster tab with this cluster.
9. a kind of more cluster management devices, each cluster all has mirroring service component and the mirror image number for memory image According to library, at least one described cluster is main cluster and other clusters are the standby cluster of the main cluster, more cluster management dresses It sets and includes:
First receiving module, for receiving mirror image administration order;
Sending module, the mirror image for sending the mirror image administration order to standby cluster corresponding with the mirror image administration order take Business component, so that the mirroring service component of the standby cluster executes the mirror image management based on the mirror database of the standby cluster Order.
10. more cluster management devices according to claim 9, wherein the sending module is also used to send the mirror image The mirroring service component of administration order extremely main cluster corresponding with the mirror image administration order, so that the mirror image of the main cluster takes Business component executes the mirror image administration order based on the mirror database of the main cluster.
11. more cluster management devices according to claim 9 or 10, wherein the mirror image administration order includes public mirror As upload command, empty machine creation order customized mirror image creation order corresponding with empty machine, snapshot corresponding with empty machine create life At least one of enable.
12. more cluster management devices according to claim 9, wherein further include the second receiving module;
First receiving module is also used to receive echo cloning order;
The sending module is also used to send the mirroring service component of the echo cloning order to main cluster, for the main collection The mirroring service component of group clones source mirror image into the mirror database of standby cluster;
Second receiving module, the echo cloning result that the mirroring service component for receiving the main cluster is fed back.
13. managing device in a kind of cluster, the cluster has mirroring service component and the mirror database for memory image, The cluster is standby cluster corresponding with main cluster, and managing device includes: in the cluster
Receiving module, for receiving mirror image administration order;
Execution module executes the mirror image administration order for the mirror database based on this cluster.
14. managing device in cluster according to claim 13, wherein the mirror image administration order is the upload of public mirror image Order;
The execution module includes:
Submodule is uploaded, for uploading the mirror database of the public mirror image to this cluster;
Sub-module stored, for storing the public mirror image into the mirror database of this cluster, the public mirror image has this The Cluster tab of cluster.
15. managing device in cluster according to claim 13, wherein the mirror image administration order is empty machine creation life It enables;
The execution module includes:
Acquisition submodule, for obtaining the public mirror image or customized mirror image that are stored in the mirror database of this cluster;
Submodule is created, for creating empty machine according to the public mirror image or customized mirror image.
16. managing device in cluster according to claim 15, wherein the mirror image administration order is corresponding with empty machine Customized mirror image creation order or snapshot corresponding with empty machine creation order;
The execution module includes:
Submodule is uploaded, for uploading the mirror database of the customized mirror image corresponding with empty machine or snapshot to this cluster;
Sub-module stored, for storing the mirror database of the customized mirror image corresponding with empty machine or snapshot to this cluster In, the Cluster tab of the customized mirror image corresponding with empty machine or snapshot with this cluster.
17. a kind of server, comprising:
One or more processors;
Storage device is stored thereon with one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors It realizes in more cluster management methods as described in any in claim 1-4 or the cluster as described in any in claim 5-8 Management method.
18. a kind of computer-readable medium, is stored thereon with computer program, wherein described program is performed realization as weighed Benefit requires management method in any more cluster management methods in 1-4 or the cluster as described in any in claim 5-8.
CN201910229484.XA 2019-03-25 2019-03-25 Multi-cluster management method and device and intra-cluster management method and device Active CN109947599B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910229484.XA CN109947599B (en) 2019-03-25 2019-03-25 Multi-cluster management method and device and intra-cluster management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910229484.XA CN109947599B (en) 2019-03-25 2019-03-25 Multi-cluster management method and device and intra-cluster management method and device

Publications (2)

Publication Number Publication Date
CN109947599A true CN109947599A (en) 2019-06-28
CN109947599B CN109947599B (en) 2022-12-02

Family

ID=67011471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910229484.XA Active CN109947599B (en) 2019-03-25 2019-03-25 Multi-cluster management method and device and intra-cluster management method and device

Country Status (1)

Country Link
CN (1) CN109947599B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003728A (en) * 2020-07-24 2020-11-27 苏州浪潮智能科技有限公司 Kubernetes cluster-based application master and standby implementation method and device
CN113282566A (en) * 2020-02-19 2021-08-20 中国移动通信集团上海有限公司 Database generation method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629941A (en) * 2012-03-20 2012-08-08 武汉邮电科学研究院 Caching method of a virtual machine mirror image in cloud computing system
CN104424283A (en) * 2013-08-30 2015-03-18 阿里巴巴集团控股有限公司 Data migration system and data migration method
CN104793981A (en) * 2014-01-20 2015-07-22 联想(北京)有限公司 Online snapshot managing method and device for virtual machine cluster
US20170060710A1 (en) * 2015-08-28 2017-03-02 Netapp Inc. Trust relationship migration for data mirroring
WO2017045424A1 (en) * 2015-09-18 2017-03-23 乐视控股(北京)有限公司 Application program deployment system and deployment method
CN206546569U (en) * 2017-02-24 2017-10-10 深圳市中博睿存信息技术有限公司 A kind of block device mirror back-up device
CN107783816A (en) * 2016-08-31 2018-03-09 阿里巴巴集团控股有限公司 The method and device that creation method and device, the big data cluster of virtual machine create
CN109344006A (en) * 2018-09-26 2019-02-15 郑州云海信息技术有限公司 A kind of mirror image management method and mirror image management module

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629941A (en) * 2012-03-20 2012-08-08 武汉邮电科学研究院 Caching method of a virtual machine mirror image in cloud computing system
CN104424283A (en) * 2013-08-30 2015-03-18 阿里巴巴集团控股有限公司 Data migration system and data migration method
CN104793981A (en) * 2014-01-20 2015-07-22 联想(北京)有限公司 Online snapshot managing method and device for virtual machine cluster
US20170060710A1 (en) * 2015-08-28 2017-03-02 Netapp Inc. Trust relationship migration for data mirroring
WO2017045424A1 (en) * 2015-09-18 2017-03-23 乐视控股(北京)有限公司 Application program deployment system and deployment method
CN107783816A (en) * 2016-08-31 2018-03-09 阿里巴巴集团控股有限公司 The method and device that creation method and device, the big data cluster of virtual machine create
CN206546569U (en) * 2017-02-24 2017-10-10 深圳市中博睿存信息技术有限公司 A kind of block device mirror back-up device
CN109344006A (en) * 2018-09-26 2019-02-15 郑州云海信息技术有限公司 A kind of mirror image management method and mirror image management module

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282566A (en) * 2020-02-19 2021-08-20 中国移动通信集团上海有限公司 Database generation method, device, equipment and storage medium
CN113282566B (en) * 2020-02-19 2023-07-04 中国移动通信集团上海有限公司 Database generation method, device, equipment and storage medium
CN112003728A (en) * 2020-07-24 2020-11-27 苏州浪潮智能科技有限公司 Kubernetes cluster-based application master and standby implementation method and device
CN112003728B (en) * 2020-07-24 2022-07-19 苏州浪潮智能科技有限公司 Kubernetes cluster-based application master and standby implementation method and device

Also Published As

Publication number Publication date
CN109947599B (en) 2022-12-02

Similar Documents

Publication Publication Date Title
US7937716B2 (en) Managing collections of appliances
CN110138588A (en) Configuration file automatic management method and system, configuration management platform and client
CN105635216B (en) Upgrade method, equipment and the distributed system of Distributed Application
US20220239739A1 (en) Cloud service processing method and device, cloud server, cloud service system and storage medium
CN107229520A (en) Data center operating system
US20090063650A1 (en) Managing Collections of Appliances
CN109947599A (en) Method and device is managed in more cluster management methods and device, cluster
US10474696B2 (en) Replication groups for content libraries
CN110198346A (en) Method for reading data, device, electronic equipment and readable storage medium storing program for executing
CN108574666A (en) A kind of data stream scheduling method, device and system
US20210182253A1 (en) System and method for policy based migration using mtree replication with data protection applications
CN110096237A (en) Replica processes method and node, storage system, server, readable medium
US20210149709A1 (en) Method and apparatus for processing transaction
CN110233791B (en) Data deduplication method and device
US10409920B1 (en) Data services for tiered memory
CN105897826A (en) Cloud platform service creating method and system
US10776134B2 (en) Management of application properties
CN112910697A (en) Fault processing method and device
CN109921940A (en) System and method based on the offline layout processing of SDWAN Scene realization network service
WO2016001772A1 (en) Synchronizing operations between regions when a network connection fails
CN104734923B (en) The execution control method and system of application task, message server
CN110896407B (en) NFVO component configuration management, request forwarding method and request processing device
CN108833613A (en) A kind of realization method and system of dynamic host configuration protocol
CN116614323B (en) Cloud storage enterprise network management method and system based on Rclone
CN112055057B (en) Method, system and equipment for dynamic expansion of Web system

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20190628

Assignee: Beijing Intellectual Property Management Co.,Ltd.

Assignor: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Contract record no.: X2023110000096

Denomination of invention: Multi cluster management methods and devices, as well as intra cluster management methods and devices

Granted publication date: 20221202

License type: Common License

Record date: 20230821

EE01 Entry into force of recordation of patent licensing contract