CN111835534B - Method for cluster control, network device, master control node device and computer readable storage medium - Google Patents

Method for cluster control, network device, master control node device and computer readable storage medium Download PDF

Info

Publication number
CN111835534B
CN111835534B CN201910303379.6A CN201910303379A CN111835534B CN 111835534 B CN111835534 B CN 111835534B CN 201910303379 A CN201910303379 A CN 201910303379A CN 111835534 B CN111835534 B CN 111835534B
Authority
CN
China
Prior art keywords
main control
control node
node
sub
master
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
CN201910303379.6A
Other languages
Chinese (zh)
Other versions
CN111835534A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910303379.6A priority Critical patent/CN111835534B/en
Publication of CN111835534A publication Critical patent/CN111835534A/en
Application granted granted Critical
Publication of CN111835534B publication Critical patent/CN111835534B/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/30Decision processes by autonomous network management units using voting and bidding

Abstract

The invention discloses a cluster control method and related equipment, wherein the method comprises the following steps: each main control node in at least two sub-clusters formed after the original cluster is split acquires the number of votes cast to the main control node in the sub-cluster to which the main control node belongs, and then sends the acquired number of votes to the network equipment. The network equipment determines an arbitration result according to the number of tickets acquired by each main control node in the at least two sub-clusters and sends the arbitration result to each main control node in the at least two sub-clusters. Each main control node in the at least two sub-clusters determines own role according to the arbitration result, the role comprises a main control node or a slave main control node, and only one main control node in the at least two sub-clusters is provided. The method can ensure that only one main master control node is selected from all the sub-clusters after the original cluster is split, and can avoid network oscillation caused by two or more main master control nodes.

Description

Method for cluster control, network device, master control node device and computer readable storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a method and related device for cluster control.
Background
In a network cluster system, there is generally only one master control node, and there may be any number of slave master control nodes. When network communication is abnormal, cluster splitting can be caused, and an original cluster can be split into two or more clusters according to different faults.
When cluster splitting occurs, the system mistakenly assumes that the original main control node is dead, a main control node reselection mechanism is triggered in the split cluster, and the system reselects the main control node and the slave main control nodes from the original main control nodes in two or more clusters after the splitting.
In the prior art, arbitration is performed by a high reliability (HA) module of a cluster, the HA module is located inside each cluster, and the HA module in each cluster cannot sense arbitration conditions in other clusters except for the HA module itself. Therefore, this way of arbitration by the HA module may cause two or more clusters after the cluster split to elect a new master node, so that two or more master nodes exist in all new clusters after the split. The two or more main control nodes can issue the same IP address and network data information in the cluster to the outside, and can issue control instructions to the service nodes at the same time, which causes system data disorder and network oscillation.
Disclosure of Invention
In view of the above, a first aspect of the present application provides a method for cluster control, where the method may include: the method comprises the steps that a network device receives the number of votes acquired by each main control node in at least two sub-clusters formed after an original cluster is split, the number of votes acquired by the main control node is the number of votes cast by a voting node to the main control node, and the voting node comprises a main control node or a service node; the network equipment determines an arbitration result according to the ticket number acquired by each main control node, wherein the arbitration result is used for indicating the role of the main control node, the role of the main control node comprises a main control node or a slave main control node, and only one main control node is arranged in the at least two sub-clusters; and the network equipment sends an arbitration result to each main control node in the at least two sub-clusters. In the cluster control method provided in the first aspect of the present application, the network device may determine the arbitration result according to the number of tickets acquired by each master control node in the at least two sub-clusters, and may ensure that only one master control node is present in all sub-clusters formed after the original cluster is split, thereby avoiding network oscillation.
Optionally, with reference to the first aspect, in a first possible implementation manner of the first aspect, before the network device receives the number of tickets acquired by each master control node in at least two sub-clusters formed after the original cluster is split, the cluster control method may further include: and the network equipment receives the number of the voting nodes from the main control node of the original cluster. In a first possible implementation manner of the first aspect, the network device may receive the number of the voting nodes from the main control node of the original cluster, so that it is ensured that the network device already obtains the number of the voting nodes before receiving the number of votes obtained by each main control node, and the integrity of the scheme is enhanced.
Optionally, with reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the determining, by the network device, an arbitration result according to the number of tickets acquired by each master node in at least two sub-clusters may include: if the network device determines that the number of the voting nodes is equal to the sum of the numbers of the votes acquired by all the main control nodes in the at least two sub-clusters, the network device determines that one main control node with the highest number of the votes in the at least two sub-clusters is the main control node, and the other main control nodes except the main control node are the slave main control nodes. In a second possible implementation manner of the first aspect, the network device determines, when the number of the voting nodes is equal to the sum of the numbers of votes obtained by all the main control nodes, that a main control node with the highest number of votes is a main control node, and thus only one main control node is determined on the premise that all the voting nodes vote, thereby avoiding network oscillation.
Optionally, with reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the determining, by the network device, that one of the master control nodes with the highest ticket number in the at least two sub-clusters is the master control node may include: if the network device determines a plurality of master control nodes with the highest ticket number and the same ticket number, the network device determines one of the master control nodes with the highest ticket number and the same ticket number as a master control node, and the other master control nodes except the master control node are slave master control nodes. In a third possible implementation manner of the first aspect, no matter how many master control nodes with the highest ticket number and the same ticket number exist in the at least two sub-clusters, the network device only selects one master control node as the master control node.
Optionally, with reference to the first possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, if the network device determines that the number of the voting nodes is not equal to the sum of the numbers of tickets acquired by all the main control nodes in the at least two sub-clusters, the network device sends a prompt message to a network administrator, where the prompt message is used to indicate that there is no main control node in at least one of the at least two sub-clusters. In a fourth possible implementation manner of the first aspect, when the network device determines that the number of the voting nodes is not equal to the sum of the number of the tickets acquired by all the main control nodes, the network device may determine that at least one cluster has no main control node, so that a prompt message may be generated to a network administrator to notify that at least one cluster has no main control node, so that a sub-cluster without a main control node may be discovered in time.
Optionally, with reference to any one possible implementation manner of the first aspect to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, before the network device receives the number of tickets acquired by each master control node in at least two sub-clusters formed after the original cluster is split, the method may further include: the network equipment receives an identifier of a slave main control node in an original cluster from a main control node of the original cluster; and the network equipment establishes connection with corresponding main control nodes in at least two sub-clusters according to the identifiers of the auxiliary main control nodes of the original cluster. In a fifth possible implementation manner of the first aspect, the network device may receive, according to the master control node of the original cluster, the identifier of the slave master control node in the original cluster, so that the network device may establish connection with the master control node corresponding to at least two sub-clusters formed after the original cluster is split. And providing conditions for each main control node in the at least two subsequent sub-clusters to send the ticket number acquired by the main control node to the network equipment.
Optionally, with reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the arbitration result includes: and the identifier of each main control node in the at least two sub-clusters corresponds to the role of the main control node. In a sixth possible implementation manner of the first aspect, the arbitration result may be a correspondence between an identifier of each main control node and a role of the main control node, so that each main control node can query the role of the main control node according to the identifier of the main control node, and accuracy of the scheme is enhanced.
Optionally, with reference to the sixth possible implementation manner of the first aspect, in a seventh possible implementation manner of the first aspect, before the network device receives the number of tickets acquired by each master node in at least two sub-clusters formed after the original cluster is split, the cluster control method may further include: and the network equipment receives an alarm sent by a main master control node of the original cluster, wherein the alarm is used for indicating a cluster splitting event. In a sixth possible implementation manner of the first aspect, the network device may receive an alarm from a main control node serving as a main control node, and the network device may determine the cluster splitting event through the alarm.
A second aspect of the present application provides a method for cluster control, where the method may include: each main control node in at least two sub-clusters formed after the splitting of the original cluster acquires the number of votes cast to the main control node or the service node by the voting node in the sub-cluster to which the main control node or the service node belongs; each main control node in at least two sub-clusters sends the ticket number acquired by the main control node to the network equipment; each main control node in the at least two sub-clusters receives an arbitration result from the network equipment; each main control node in the at least two sub-clusters determines own role according to the arbitration result, the role comprises a main control node or a slave main control node, and only one main control node is arranged in the at least two sub-clusters. In the cluster control method provided in the second aspect of the present application, the master node may receive the arbitration result from the network device, and the master node may determine its own role according to the arbitration result. Through the arbitration result of the network equipment, only one main master control node in at least two sub-clusters after the original cluster is split can be ensured.
Optionally, with reference to the second aspect, in a first possible implementation manner of the second aspect, before each of the main control nodes in the at least two sub-clusters sends the ticket number acquired by itself to the network device, the cluster control method may further include: a master control node of an original cluster sends an identifier of a slave control node in the original cluster to network equipment; and the master control node corresponding to the slave master control node of the original cluster in the at least two sub-clusters establishes connection with the network equipment according to the identifier. In a first possible implementation manner of the second aspect, the master control node of the original cluster may send an identifier of the slave control node in the original cluster to the network device. The network device can accurately establish connection with the master control node corresponding to the slave master control node of the original cluster in the at least two sub-clusters according to the identifier, and the accuracy of the scheme is improved.
Optionally, with reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the arbitration result may include a correspondence between an identifier of each of the at least two sub-clusters and a role of the master node; each main control node in at least two sub-clusters determines own role according to the arbitration result, and the role comprises the following steps: and each main control node in the at least two sub-clusters determines the role corresponding to the identifier of the main control node according to the arbitration result. In a second possible implementation manner of the second aspect, the master control node may determine its own role according to the correspondence between the identifier of the master control node and the role of the master control node and the identifier of the master control node, and the master control node may determine its own role by this manner, so that the accuracy may be improved.
Optionally, with reference to any one of the second possible implementation manners of the second aspect to the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, before each of the main control nodes in the at least two sub-clusters sends the ticket number acquired by itself to the network device, the cluster control method may further include: and the master control node of the original cluster sends an alarm to the network equipment, wherein the alarm is used for indicating a cluster splitting event. In a third possible implementation manner of the second aspect, the master control node of the original cluster sends an alarm for indicating a cluster splitting event to the network device, and the network device can sense the cluster splitting event through the alarm, so that the timeliness of the scheme can be improved.
Optionally, with reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, before each of the main control nodes in the at least two sub-clusters sends the ticket number acquired by itself to the network device, the cluster control method may further include: and the main master control node of the original cluster sends the number of the voting nodes to the network equipment. In a fourth possible implementation manner of the second aspect, the number of the voting nodes is sent to the network device by the main master control node of the original cluster, so that the network device can be ensured to acquire the number of the voting nodes before receiving the number of votes acquired by each master control node in at least two sub-clusters.
A third aspect of the embodiments of the present application provides a network device for cluster control, where the network device includes: the receiving unit is used for receiving the number of votes acquired by each main control node in at least two sub-clusters formed after the splitting of the original cluster, the number of votes acquired by the main control node is the number of votes cast by the voting node to the main control node, and the voting node comprises the main control node and/or a service node; the determining unit is used for determining an arbitration result according to the ticket number acquired by each main control node in at least two sub-clusters, the arbitration result is used for indicating the role of the main control node, the role of the main control node comprises a main control node or a slave main control node, and only one main control node is arranged in at least two sub-clusters; and the sending unit is used for sending an arbitration result to each main control node in the at least two sub-clusters. The determining unit of the network device provided in the third aspect of the present application may determine the arbitration result according to the number of tickets acquired by each master control node in at least two sub-clusters, and may ensure that only one master control node is present in all the clusters after splitting, thereby avoiding network oscillation.
Optionally, with reference to the third aspect, in a first possible implementation manner of the third aspect, the network device further includes: and the receiving unit is also used for receiving the number of the voting nodes from the main control node of the original cluster.
Optionally, with reference to the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the network device includes: and the determining unit is further configured to determine that, in the at least two sub-clusters, one main control node with the highest number of votes is the main control node, and the other main control nodes except the main control node are the slave main control nodes, when the determining unit determines that the number of voting nodes is equal to the sum of the numbers of votes acquired by all the main control nodes in the at least two sub-clusters.
Optionally, with reference to the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the network device includes: the determining unit is further configured to determine, when the determining unit determines that the plurality of master control nodes have the highest ticket number and the same ticket number, one of the master control nodes having the highest ticket number and the same ticket number is a master control node, and the other master control nodes except the master control node are slave master control nodes.
Optionally, with reference to the first possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the network device includes: and the sending unit is further used for sending prompt information when the number of the voting nodes is not equal to the sum of the votes acquired by all the main control nodes in the at least two sub-clusters, wherein the prompt information is used for indicating that at least one of the at least two sub-clusters does not have a main control node.
Optionally, with reference to any one possible implementation manner of the fourth possible implementation manner of the third aspect to the third aspect, in a fifth possible implementation manner of the third aspect, the network device includes: the receiving unit is also used for receiving the identifier of the slave main control node in the original cluster from the main control node of the original cluster; and the connection unit is used for establishing connection with the corresponding main control nodes in the at least two sub-clusters according to the identifiers of the auxiliary main control nodes of the original cluster.
Optionally, with reference to the fifth possible implementation manner of the third aspect, in a sixth possible implementation manner of the third aspect, the network device includes: and the receiving unit is also used for receiving an alarm sent by the main master control node of the original cluster, wherein the alarm is used for indicating a cluster splitting event.
A fourth aspect of the present application provides a master node apparatus for cluster control, where the master node apparatus may include: the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the number of votes cast to the voting node in the sub-cluster, and the voting node comprises a main control node and/or a service node; a sending unit, configured to send the ticket number obtained by the sending unit to the network device; a receiving unit configured to receive an arbitration result from the network device; and the determining unit is used for determining the role of the determining unit according to the arbitration result, wherein the role comprises a main control node or a slave main control node, and only one main control node is arranged in at least two sub-clusters. In the master control node apparatus provided in the fourth aspect of the embodiment of the present application, the determining unit may determine its own role according to an arbitration result of the network device, and may ensure that only one master control node is present in at least two sub-clusters formed after splitting the original cluster, thereby avoiding network oscillation.
Optionally, with reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the main control node apparatus further includes: the sending unit is further used for sending the identifier of the slave main control node in the original cluster to the network equipment; and the connection unit is used for establishing connection with the network equipment according to the identifier.
Optionally, with reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the master node apparatus includes: and the determining unit is used for determining the role corresponding to the identifier of the determining unit according to the arbitration result.
Optionally, with reference to any one possible implementation manner of the fourth aspect to the second possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, the main control node device serving as the main control node includes: and the sending unit is also used for sending an alarm to the network equipment, wherein the alarm is used for indicating the cluster splitting event.
Optionally, with reference to the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the main control node device serving as the main control node further includes: and the sending unit is also used for sending the number of the voting nodes to the network equipment.
A fifth aspect of the present embodiment provides a network device for cluster control, where the network device may include: a memory for storing a computer program; a processor, configured to execute the computer program stored in the memory, so as to enable the apparatus to perform the method for cluster control provided in the first aspect and any one of the possible implementation manners of the first aspect of the embodiment of the present application.
A sixth aspect of the present application provides a master control node apparatus for cluster control, where the master control node apparatus may include: a memory for storing a computer program; a processor configured to execute the computer program stored in the memory, so as to enable the apparatus to perform the method for cluster control provided in the second aspect of the embodiments and any one of the possible implementations of the second aspect of the present application.
A seventh aspect of embodiments of the present application provides a computer-readable storage medium, which includes a computer program and when the computer program runs on a computer, the computer is caused to execute the method for cluster control provided in the first aspect of embodiments and any one of the possible implementation manners of the first aspect of the present application.
An eighth aspect of the present application provides a computer-readable storage medium, which includes a computer program and a storage medium, where the computer program is configured to, when executed on a computer, cause the computer to perform the method for cluster control provided in the second aspect of the present application and any one of the possible implementations of the second aspect.
The embodiment of the invention provides a cluster control method and related equipment, wherein the method comprises the following steps: each main control node in at least two sub-clusters formed after the original cluster is split acquires the number of votes cast to the main control node in the sub-cluster to which the main control node belongs, and then sends the acquired number of votes to the network equipment. The network equipment determines an arbitration result according to the number of tickets acquired by each main control node in the at least two sub-clusters and sends the arbitration result to each main control node in the at least two sub-clusters. Each main control node in the at least two sub-clusters determines own role according to the arbitration result, the role comprises a main control node or a slave main control node, and only one main control node in the at least two sub-clusters is provided. The method can ensure that only one main master control node is selected from all the sub-clusters after the original cluster is split, and can avoid network oscillation caused by two or more main master control nodes.
Drawings
FIG. 1 is a schematic diagram of cluster splitting in an embodiment of the present application;
fig. 2 is a schematic diagram of an embodiment of a method for cluster control according to an embodiment of the present application;
fig. 3 is a schematic diagram of another embodiment of a method for cluster control according to an embodiment of the present application;
fig. 4 is a schematic diagram of an embodiment of a network device according to an embodiment of the present application;
fig. 5 is a schematic diagram of an embodiment of a master node apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of an embodiment of a network device according to an embodiment of the present application;
fig. 7 is a schematic diagram of an embodiment of a master node apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" appearing in the present application may be an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this application generally indicates that the former and latter related objects are in an "or" relationship.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Moreover, the terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus.
For ease of understanding, the cluster before splitting may be referred to as an original cluster, and the original cluster after splitting may form at least two sub-clusters. After the original cluster is split, the master control node of the original cluster enters the at least two sub-clusters. The master node may include a master node and a slave master node. One master node may exist in one cluster, and a slave master node may exist or may not exist in the cluster. The master control node in a cluster is created by election. When the cluster is split, re-election is initiated. When re-election, the voting nodes can vote for connectable master nodes, each voting node can select only one master node to vote, and the voting nodes can comprise the master nodes and the service nodes. After the election is finished, the master control node may determine its own role, which may be a master control node or a slave master node.
When network communication fails, the system triggers a master control node reselection mechanism for the fact that a master control node in an original cluster is dead, and carries out arbitration through respective HA modules in at least two sub-clusters formed after the original cluster is split. Each sub-cluster after splitting elects a respective new master node through a respective internal HA module. In this way, two or more sub-clusters after the cluster split may have a new master node elected, so that there are two or more master nodes in all sub-clusters after the split. The two or more main master control nodes can issue the same IP address to the outside and simultaneously issue a control instruction to the service node, which causes system data disorder and network oscillation.
As shown in fig. 1, the original cluster a includes a main control node 1, a main control node 2, a service node 1 and a service node 2. There is only one master node between master node 1 and master node 2. When cluster splitting occurs, the original cluster a may be split into two or more sub-clusters, which are, for example, but not limited to, split into two sub-clusters, i.e., sub-cluster B and sub-cluster C. The master control node 1, the master control node 2, the service node 1, and the service node 2 in the original cluster a may be dispersed into two or more split sub-clusters, where the master control node 1 and the service node 1 enter the sub-cluster B, and the master control node 2 and the service node 2 enter the sub-cluster C, for example, but not limited thereto. And carrying out arbitration by respective HA modules in the split sub-cluster B and the split sub-cluster C to initiate election. Since the HA module of sub-cluster B cannot perceive the election of sub-cluster C, the HA module of sub-cluster C cannot perceive the election of sub-cluster B. Therefore, it may be the case that the HA module of the sub-cluster B elects the master node 1 as the main master node, and the HA module of the sub-cluster C elects the master node 2 as the main master node. Thus, two main master control nodes appear in the sub-cluster B and the sub-cluster C generated after the cluster A is split, the two main master control nodes can issue the same IP address and network data information in the cluster to the outside, and simultaneously issue a control instruction to a service node, so that system data disorder is caused, and network oscillation is caused.
In view of the foregoing problem, an embodiment of the present application provides a method for cluster control, and as shown in fig. 2, the method may include:
201. and the master control node sends the ticket number acquired by the master control node to the network equipment.
After the original cluster is split into at least two sub-clusters, each main control node in the at least two sub-clusters sends a prompt message to connectable voting nodes except the main control node. After receiving the prompt message sent by the master control node, the voting node selects one master control node from the connectable master control nodes to vote, and usually, the master control node is connectable to any service node in a cluster. The master control node is also a voting node, and after the master control node sends the prompt message to the connectable voting node, the master control node can also vote to the connectable master control node or the master control node. And if the main control node receives the votes of the N voting nodes, the number of the votes acquired by the main control node is N. For example, when a certain master control node receives votes from 3 voting nodes, the number of votes acquired by the master control node is 3.
After each main control node in the at least two sub-clusters obtains the number of votes cast by the voting nodes, the obtained number of votes is sent to the network equipment. The network device can be a server or a virtual machine, and network management software can be installed on the network device.
202. And the network equipment determines an arbitration result according to the ticket number acquired by the main control node.
The network equipment determines an arbitration result according to the ticket number acquired from each main control node, wherein the arbitration result is used for indicating the role of the main control node, and only one main control node is arranged in all the main control nodes in at least two sub-clusters formed by splitting the original cluster.
203. The network device sends the arbitration result to the master control node.
The network device sends the arbitration result obtained in step 202 to each master control node in at least two sub-clusters formed by splitting the original cluster, where the arbitration result is used to indicate the role of the master control node.
204. And the main control node determines the own role according to the arbitration result.
After each main control node in the at least two sub-clusters receives the arbitration result from the network equipment, the role of the main control node is determined according to the arbitration result.
In the method provided by the embodiment of the present application, the network device may arbitrate according to votes obtained by all master control nodes in at least two sub-clusters formed after the original cluster is split, and may ensure that only one master control node is selected from the at least two sub-clusters, thereby avoiding network oscillation caused by two or more master control nodes occurring in all sub-clusters formed after the original cluster is split.
Before each main control node in at least two sub-clusters formed after the splitting of the original cluster sends the votes acquired by the main control node to the network equipment, each main control node needs to establish connection with the network equipment, and the main control node of the original cluster needs to report the identifiers of the auxiliary main control nodes, the splitting events of the cluster and the number of the voting nodes in the original cluster to the network equipment. Therefore, the second embodiment provides a method for cluster control, and as shown in fig. 3, the second embodiment provides a method for cluster control, where the method may include:
301. and the master control node of the original cluster sends the identifier of the slave master control node, the alarm indicating the cluster splitting event and the number of the voting nodes to the network equipment.
Before the original cluster is split, the IP address of the network equipment is configured on the main control node in the original cluster, and the main control node can establish connection with the network equipment according to the IP address of the main control node and the IP address of the network equipment.
After the original cluster is split, the master control node of the original cluster sends an alarm to the network device, wherein the alarm is used for indicating a cluster splitting event. Meanwhile, the slave main control node of the original cluster can sense that the connection with the master main control node is interrupted, and the slave main control node keeps the state and the role of the slave main control node unchanged.
The main control node of the original cluster sends the alarm to the network equipment, and simultaneously sends the number of the voting nodes and the identifier of the auxiliary control node to the network equipment. The identifier of the slave master node is used for the master node corresponding to the slave master node of the original cluster and the at least two sub-clusters to establish connection with the network device. The identifier of the slave master node is preset and can be an IP address, and each slave master node is bound with a unique IP address.
The master node of the original cluster executes the following message to implement step 301 above:
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
the # annotation is the notification message header as above, the invention has no new change, and the invention continues to use the current message frame
<eventTime>2018-12-21T00:01:00Z</eventTime>
Note that the report time of the notification message is the report time of the notification message, the present invention has no new change, and the present invention continues to use the current message frame
<groupsplit xmlns="http://example.com/event/1.0">
Note that Note As above, the newly added transaction groupsplit of the present invention
<event-class>fault</event-class>
Note that the level of the newly added transaction of the present invention is as above
<event-type>groupsplit</event-type>
Note that the newly added transaction type of the present invention is as described above
<subIPGroup>
<subIP>xx</subIP>
<subIP>xx</subIP>
<subIP>xx</subIP>
<subIP>xx</subIP>
</subIPGroup>
Note that the new information represents the subIP addresses corresponding to the election nodes one by one
<votenodenumber>xx</votenodenumber>
Note # As above, the newly added information of the present invention represents the election scale of the old cluster
</groupsplit>
</notification>
302. And the network equipment establishes connection with the corresponding master control node according to the identifier of the slave master control node.
After receiving the identifier of the slave master control node from the master control node of the original cluster, the network device may establish a connection with the master control node corresponding to the slave master control node in the original cluster in the at least two sub-clusters through the identifier.
The network device may be a server or a virtual machine equipped with network management software, and the connection established between the network device and each master control node may be based on a network configuration PROTOCOL (NETCONF), or may be based on a network PROTOCOL such as a RESTCONF PROTOCOL (RESTCONF PROTOCOL) or a Simple Network Management PROTOCOL (SNMP), and is not limited to which network PROTOCOL is adopted here.
After the network device establishes connection with each main control node in at least two sub-clusters formed after the original cluster is split, a session can be established on each main control node according to the IP address of each main control node, and the main control node can send the obtained ticket number to the network device through the session.
303. And the master control node sends the ticket number acquired by the master control node to the network equipment.
In at least two sub-clusters after the splitting of the original cluster, each master node sends out a prompt message to connectable voting nodes except for the master node. After receiving the prompt message sent by the master node, the voting node selects one of the connectable master nodes to vote, and the master node is usually connectable to any service node in a cluster. The master control node is also a voting node, and after the master control node sends the prompt message to the connectable voting node, the master control node can also vote to the connectable master control node or the master control node. And if the main control node receives the votes of the N voting nodes, the number of the votes acquired by the main control node is N. For example, when a certain master control node receives votes from 3 voting nodes, the number of votes acquired by the master control node is 3.
After each main control node in the at least two sub-clusters obtains the number of votes cast by the voting nodes, the obtained number of votes is sent to the network equipment. The network device can be a server or a virtual machine, and the network device can be provided with network management software.
In at least two sub-clusters formed after the original cluster is split, each master control node executes the following messages to realize the step 303:
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
the # annotation is the notification message header as above, the invention has no new change, and the invention continues to use the current message frame
<eventTime>2018-12-21T00:01:00Z</eventTime>
Note that the report time of the notification message is the report time of the notification message, the present invention has no new change, and the present invention continues to use the current message frame
<election xmlns="http://example.com/event/1.0">
Note that Note As above, the newly added transaction election of the present invention
<event-class>fault</event-class>
Note that Note # As above is the newly added transaction level event-class of the present invention
<electnode>
<IP>xx</IP>
<votenumber>xx</votenumber>
</electnode>
Note that the added part represents the IP address and the number of voting nodes of the new cluster after splitting
</election>
</notification>
304. And the network equipment determines an arbitration result according to the ticket number acquired by the main control node.
The network equipment determines an arbitration result according to the ticket number acquired from each main control node, wherein the arbitration result is used for indicating the role of the main control node, and only one main control node is arranged in all the main control nodes in at least two sub-clusters formed by splitting the original cluster.
After the network equipment receives the ticket number acquired by each main control node, the ticket numbers acquired by all the main control nodes are added to obtain the sum of the ticket numbers acquired by all the main control nodes. The network device then compares the sum of the number of votes obtained by all master nodes with the number of voting nodes received from the master node of the original cluster in step 301.
If the sum of the number of the votes acquired by all the main control nodes is equal to the number of the voting nodes, the network device determines one main control node with the highest number of the votes from all the main control nodes as a main control node, and the other main control nodes as auxiliary main control nodes. If a plurality of main control nodes with the highest ticket number and the same ticket number exist in all the main control nodes, the network equipment determines one main control node as the main control node from the main control nodes with the highest ticket number and the same ticket number. For example, when there are multiple master control nodes with the highest votes and the same votes, the network device may compare the numerical values of the IP addresses corresponding to the multiple master control nodes, select the master control node with the largest numerical value as the master control node, and use the other master control nodes as the slave master control nodes. When there are a plurality of master control nodes with the highest ticket number and the same ticket number, another method may also be used to select one of the plurality of master control nodes as the master control node, which is not limited herein.
If the sum of the number of the votes acquired by all the main control nodes is not equal to the number of the voting nodes, it indicates that the service nodes in all the voting nodes have no vote. Since part of the service nodes may be divided into a cluster without a master node after the cluster split. Therefore, the service node cannot vote, and the cluster where the service node is located has no main control node. In this case, the network device sends a prompt message to the network administrator, where the prompt message is used to indicate that there is no master node in at least one cluster.
305. The network device sends the arbitration result to the master control node.
The network device sends an arbitration result to each master node, where the arbitration result may be a corresponding relationship list between the identifier of the master node and the role of the master node. In the relationship list, each entry contains a correspondence between an identifier of a master node and a role of the master node.
The network device implements the above step 305 by executing the following messages:
<rpc message-id="101"xmlns=“xxx">
# New definition of an RPC operation
<pushvoteresult>
# enables the role of election node, if master, role value is main, if slave, role value is slave
<electnode>
<IP>xx</IP>
IP address of # Enable election node
<votenumber>xx</votenumber>
# Enable post-splitting Cluster membership
<role>main/slave</role>
</electnode>
</pushvoteresult>
</rpc>
306. And the main control node determines the own role according to the arbitration result.
The main control node determines its own role according to the arbitration result received from the network device, the arbitration result may be a corresponding relationship list of the identifier of the main control node and the main control node, each main control node may find an entry in the corresponding relationship list according to its own identifier, and according to the entry, the main control node may determine its own role.
In the method provided in embodiment two, the network device may acquire the number of voting nodes so as to compare the number of votes acquired by all the master nodes subsequently. When the number of the voting nodes is different from the number of the main control nodes, the network device can determine that at least one cluster does not have a main control node, and can timely notify a network administrator of the message without the main control node. This approach may ensure timeliness of the scheme, and when a sub-cluster without a master node is present, the network administrator may address the problem as soon as possible.
The foregoing embodiment provides two different implementation manners of a method for cluster control, and a third embodiment provides a network device 40, as shown in fig. 4, where the network device 40 is configured to execute steps executed by network devices in the first embodiment and the second embodiment, and the execution steps and corresponding beneficial effects are specifically understood with reference to the first embodiment and the second embodiment, which are not described herein again, and the network device 40 may include:
the receiving unit 401 is configured to receive a ticket number acquired by each master control node in at least two sub-clusters formed after the original cluster is split. The specific implementation of this function can refer to step 201 of the first embodiment shown in fig. 2 and step 303 of the second embodiment shown in fig. 3.
The receiving unit 401 may be further configured to receive a message sent by the master control node of the original cluster, for example, receive the number of voting nodes, an identifier of the slave control node of the original cluster, and an alarm message. The specific implementation of this function can refer to step 301 of the second embodiment shown in fig. 3.
A connection unit 402, configured to establish a connection with a corresponding master control node in at least two sub-clusters according to an identifier of a slave master control node of an original cluster. The specific implementation of this function can refer to step 302 in the second embodiment shown in fig. 3.
The determining unit 403 is configured to determine an arbitration result according to the number of tickets obtained by each master node in the at least two sub-clusters. The specific implementation of this function can refer to step 202 of the first embodiment shown in fig. 2 and step 304 of the second embodiment shown in fig. 3.
A sending unit 404, configured to send an arbitration result to each master node in at least two sub-clusters. The specific implementation of this function may refer to step 203 of the first embodiment shown in fig. 2 and step 305 of the second embodiment shown in fig. 3.
The sending unit 404 may be further configured to send a prompt message when the determining unit determines that the number of the voting nodes is not equal to the sum of the votes obtained by all the main control nodes in the at least one main control node, where the prompt message is used to indicate that there is no main control node in the at least one cluster. The specific implementation of this function can refer to step 304 of the second embodiment shown in fig. 3.
In a fourth embodiment, a master node apparatus 50 is provided, as shown in fig. 5, where the master node apparatus 50 may interact with the network device 40 provided in the third embodiment. The main control node device 50 may carry a main control node, configured to execute the steps executed by the main control node in the first embodiment and the second embodiment, and the executed steps and corresponding beneficial effects are specifically understood with reference to the first embodiment and the second embodiment, which are not described herein again, and the main control node device may include:
the obtaining unit 501 is configured to obtain the number of votes cast to the voting node in the sub-cluster to which the voting node belongs. The specific implementation of this function can refer to step 303 of embodiment two shown in fig. 3.
A sending unit 502, configured to send the ticket number acquired by the network device to the network device. The specific implementation of this function may refer to step 201 of the first embodiment shown in fig. 2 and step 303 of the second embodiment shown in fig. 3.
The sending unit 502 of the master control node in the original cluster may also be used to send a message to the network device. The number of the voting nodes, the identifiers of the slave main control nodes of the original cluster and the alarm message. The specific implementation of this function can refer to step 301 of embodiment two shown in fig. 3.
A connection unit 503, configured to establish a connection with a network device according to the identifier of the slave main control node in the original cluster. The specific implementation of this function can refer to step 302 in the second embodiment shown in fig. 3.
A receiving unit 504, configured to receive an arbitration result from a network device. The specific implementation of this function can refer to step 203 in the first embodiment shown in fig. 2 and step 305 in the second embodiment shown in fig. 3.
And a determining unit 505, configured to determine its role according to the arbitration result. The specific implementation of this function may refer to step 204 of the first embodiment shown in fig. 2 and step 306 of the second embodiment shown in fig. 3.
Referring to fig. 6, a fifth embodiment of the present application provides a network device 60 for cluster control. The network device 60 comprises a processor 601, a memory 602 and a transceiver 603, wherein the processor 601 and the memory 602 are connected to the transceiver 603.
The network device 60 is a device with a hardware structure, and can be used to implement the functional modules in the network device shown in fig. 4. For example, one skilled in the art can appreciate that the determining unit 403 in the network device 40 shown in fig. 4 can be implemented by the processor 601 calling code in the memory 602. The receiving unit 401 and the transmitting unit 404 in the network device 40 shown in fig. 4 may be implemented by the transceiver 603.
Alternatively, the processor 601 may be one or more central processing units (central processing unit,
a CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs in accordance with the teachings of the present application.
The processor 601 is configured to execute the instructions in the memory 602. In a specific embodiment, the processor 601 is configured to determine an arbitration result according to the number of tickets acquired by the master node and establish a connection with the corresponding master node according to the identifier of the master node, which may specifically refer to the detailed description in step 202 of the first embodiment shown in fig. 2 or steps 302 and 304 of the second embodiment shown in fig. 3.
The processor 601, the memory 602, and the transceiver 603 are connected by a bus 604, and the bus 604 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.
In a specific embodiment, the transceiver 603 is configured to receive the ticket number and the information sent by the master node, and specifically, refer to the detailed description of the step 201 in the first embodiment shown in fig. 2 and the steps 301 and 303 in the second embodiment shown in fig. 3.
The transceiver 603 is further configured to send an arbitration result to the master node, which may specifically refer to the detailed description of the step 203 in the first embodiment shown in fig. 2 and the step 305 in the second embodiment shown in fig. 3.
Referring to fig. 7, a sixth embodiment of the present application provides a master node apparatus 70 for cluster control. The master node apparatus 70 includes a processor 701, a memory 702, and a transceiver 703, and the processor 701 and the memory 702 are connected to the transceiver 703.
The main control node device 70 is a device with a hardware structure, and can be used to implement the functional modules in the main control node device shown in fig. 5. For example, one skilled in the art may appreciate that the determination unit 505 in the master node apparatus 50 shown in fig. 5 may be implemented by the processor 701 calling code in the memory 702. The transmitting unit 502 and the receiving unit 504 in the master node apparatus 50 shown in fig. 5 may be implemented by the transceiver 703.
Alternatively, the processor 701 may be one or more central processing units (central processing unit,
a CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs in accordance with the teachings of the present application.
The processor 701 is configured to execute instructions in the memory 702. In a specific embodiment, the processor 701 is configured to determine its role according to an arbitration result, and specifically refer to detailed descriptions in step 204 of the first embodiment shown in fig. 2 or step 306 of the second embodiment shown in fig. 3.
The processor 701, the memory 702, and the transceiver 703 are connected by a bus 704, and the bus 704 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, for example. The bus may be divided into an address bus, a data bus, a control bus, etc.
In a specific embodiment, the transceiver 703 is configured to send the ticket number and the information acquired by the transceiver to the network device, and may specifically refer to the detailed description of the step 201 in the first embodiment shown in fig. 2 and the steps 301 and 303 in the second embodiment shown in fig. 3.
The transceiver 703 is further configured to receive an arbitration result from a network device, which may specifically refer to the detailed description of the step 203 in the first embodiment shown in fig. 2 and the step 305 in the third embodiment shown in fig. 3.
The method for cluster control and the related devices provided by the embodiments of the present invention are described in detail above, and the principle and the implementation of the present invention are explained in detail herein by applying specific examples, and the description of the embodiments above is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention. Although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (29)

1. A method of cluster control, the method comprising:
the method comprises the steps that a network device receives the number of votes acquired by each main control node in at least two sub-clusters formed after an original cluster is split, the number of votes acquired by the main control nodes is the number of votes cast by voting nodes to the main control nodes, and the voting nodes comprise the main control nodes and/or service nodes;
the network equipment determines an arbitration result according to the ticket number acquired by each main control node in the at least two sub-clusters, wherein the arbitration result is used for indicating the role of the main control node, the role of the main control node comprises a main control node or a slave main control node, and only one main control node is arranged in the at least two sub-clusters;
and the network equipment sends the arbitration result to each main control node in the at least two sub-clusters.
2. The method according to claim 1, wherein before the network device receives the votes obtained by each master node in at least two sub-clusters formed after the splitting of the original cluster, the method further comprises:
and the network equipment receives the number of the voting nodes from the main control node of the original cluster.
3. The method of claim 2, wherein the determining, by the network device, the arbitration result according to the number of tickets obtained by each master node in the at least two sub-clusters comprises:
if the network device determines that the number of the voting nodes is equal to the sum of the numbers of the votes acquired by all the main control nodes in the at least two sub-clusters, the network device determines that one main control node with the highest number of the votes in the at least two sub-clusters is the main control node, and the other main control nodes except the main control node are the slave main control nodes.
4. The method of claim 3, wherein the network device determining that the master node with the highest ticket count in the at least two sub-clusters is the master node comprises:
if the network equipment determines that the plurality of main control nodes with the highest ticket number and the same ticket number are the main control nodes, the network equipment determines that one of the main control nodes with the highest ticket number and the same ticket number is the main control node, and other main control nodes except the main control node are the auxiliary control nodes.
5. The method of claim 2, further comprising:
if the network device determines that the sum of the number of the voting nodes and the number of the votes acquired by all the main control nodes in the at least two sub-clusters is not equal, the network device sends a prompt message, wherein the prompt message is used for indicating that at least one of the at least two sub-clusters does not have a main control node.
6. The method according to any one of claims 1 to 5, wherein before the network device receives the number of tickets acquired by each master node in at least two sub-clusters formed after the original cluster is split, the method further comprises:
the network equipment receives an identifier of a slave main control node in the original cluster from a main control node of the original cluster;
and the network equipment establishes connection with the corresponding main control nodes in the at least two sub-clusters according to the identifiers of the auxiliary main control nodes of the original cluster.
7. The method of claim 6, wherein the arbitration result comprises:
and the identifier of each main control node in the at least two sub-clusters corresponds to the role of the main control node.
8. The method according to claim 7, wherein before the network device receives the votes obtained by each master node in at least two sub-clusters formed after the splitting of the original cluster, the method further comprises:
and the network equipment receives an alarm sent by the main master control node of the original cluster, wherein the alarm is used for indicating a cluster splitting event.
9. A method of cluster control, the method comprising:
each main control node in at least two sub-clusters formed after the splitting of an original cluster acquires the number of votes cast to the main control node and/or the service node by the voting node in the sub-cluster to which the main control node and/or the service node belong;
each main control node in the at least two sub-clusters sends the ticket number acquired by the main control node to the network equipment;
each master node in the at least two sub-clusters receives an arbitration result from the network device;
each main control node in the at least two sub-clusters determines own role according to the arbitration result, the role comprises a main control node or a slave main control node, and only one main control node in the at least two sub-clusters is provided.
10. The method of claim 9, wherein before each master node in the at least two sub-clusters sends the ticket number obtained by itself to the network device, the method further comprises:
the master control node of the original cluster sends an identifier of a slave control node in the original cluster to the network equipment;
and the master control node corresponding to the slave master control node of the original cluster in the at least two sub-clusters establishes connection with the network equipment according to the identifier.
11. The method of claim 10, wherein the arbitration result comprises:
a correspondence between an identifier of each master node in the at least two sub-clusters and a role of the master node;
each main control node in the at least two sub-clusters determines the role thereof according to the arbitration result, and the role comprises the following steps:
and each main control node in the at least two sub-clusters determines the role corresponding to the identifier of the main control node according to the arbitration result.
12. The method according to any of claims 9 to 11, wherein before each master node in the at least two sub-clusters sends the votes obtained by itself to the network device, the method further comprises:
and the master control node of the original cluster sends an alarm to the network equipment, wherein the alarm is used for indicating a cluster splitting event.
13. The method of claim 12, wherein before each master node in the at least two sub-clusters sends the votes obtained by the master node to the network device, the method further comprises:
and the main master control node of the original cluster sends the number of the voting nodes to the network equipment.
14. A network device for cluster control, the network device comprising:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving the number of votes acquired by each main control node in at least two sub-clusters formed after the splitting of an original cluster, the number of votes acquired by the main control node is the number of votes cast to the main control node by a voting node, and the voting node comprises the main control node and/or a service node;
a determining unit, configured to determine an arbitration result according to a ticket number obtained by each of the master control nodes in the at least two sub-clusters, where the arbitration result is used to indicate a role of the master control node, the role of the master control node includes a master control node or a slave master control node, and only one master control node in the at least two sub-clusters is present;
and the sending unit is used for sending the arbitration result to each main control node in the at least two sub-clusters.
15. The network device of claim 14, wherein the network device further comprises:
the receiving unit is further configured to receive the number of the voting nodes from the main control node of the original cluster.
16. The network device of claim 15, wherein the network device comprises:
the determining unit is further configured to determine, when the determining unit determines that the number of the voting nodes is equal to the sum of the numbers of tickets acquired by all the main control nodes in the at least two sub-clusters, that one main control node in the at least two sub-clusters, which has the highest number of tickets, is the main control node, and that other main control nodes except the main control node are the slave main control nodes.
17. The network device of claim 16, wherein the network device comprises:
the determining unit is further configured to determine, when the determining unit determines that the plurality of master control nodes with the highest votes and the same votes are the master control node, one of the master control nodes with the highest votes and the same votes as the master control node, and the other master control nodes except the master control node as the slave master control nodes.
18. The network device of claim 15, wherein the network device comprises:
the sending unit is further configured to send a prompt message when the number of the voting nodes is not equal to the sum of the numbers of the votes obtained by all the main control nodes in the at least two sub-clusters, where the prompt message is used to indicate that there is no main control node in at least one of the at least two sub-clusters.
19. Network device according to any of claims 14 to 18, characterized in that it comprises:
the receiving unit is further configured to receive, from the master control node of the original cluster, an identifier of a slave control node in the original cluster;
and the connection unit is used for establishing connection with the corresponding main control nodes in the at least two sub-clusters according to the identifiers of the auxiliary main control nodes of the original cluster.
20. The network device of claim 19, wherein the network device comprises:
the receiving unit is further configured to receive an alarm sent by the master control node of the original cluster, where the alarm is used to indicate a cluster splitting event.
21. A master node apparatus for cluster control, the master node apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the number of votes cast to the voting node in the sub-cluster to which the main control node device belongs in at least two sub-clusters formed after the splitting of the original cluster, and the voting node comprises a main control node and/or a service node;
a sending unit, configured to send the ticket number obtained by the sending unit to the network device;
a receiving unit configured to receive an arbitration result from the network device;
and the determining unit is used for determining own roles according to the arbitration result, wherein the roles comprise a main master control node or a slave master control node, and only one main master control node is arranged in the at least two sub-clusters.
22. The master node apparatus of claim 21, wherein the master node apparatus further comprises:
the sending unit is further configured to send an identifier of a slave main control node in the original cluster to the network device;
a connection unit, configured to establish a connection with the network device according to the identifier.
23. The master node apparatus of claim 22, wherein the master node apparatus comprises:
and the determining unit is used for determining the role corresponding to the identifier of the determining unit according to the arbitration result.
24. The apparatus of any one of claims 21 to 23, wherein the apparatus of the master node as the master node comprises:
the sending unit is further configured to send an alarm to the network device, where the alarm is used to indicate a cluster splitting event.
25. The master node apparatus of claim 24, wherein the master node apparatus acting as a master node further comprises:
the sending unit is further configured to send the number of the voting nodes to the network device.
26. A network device for cluster control, the network device comprising:
a memory for storing a computer program;
a processor for executing a computer program stored in the memory to cause the network device to perform the method of cluster control of any of claims 1 to 8.
27. A master node apparatus for cluster control, the master node apparatus comprising:
a memory for storing a computer program;
a processor for executing a computer program stored in the memory to cause the master node apparatus to perform the method of cluster control of any of claims 9 to 13.
28. A computer-readable storage medium comprising a computer program which, when run on a computer, causes the computer to perform a method of cluster control as claimed in any one of claims 1 to 8.
29. A computer-readable access medium comprising a computer program which, when run on a computer, causes the computer to perform the method of cluster control of any of claims 9 to 13.
CN201910303379.6A 2019-04-15 2019-04-15 Method for cluster control, network device, master control node device and computer readable storage medium Active CN111835534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910303379.6A CN111835534B (en) 2019-04-15 2019-04-15 Method for cluster control, network device, master control node device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910303379.6A CN111835534B (en) 2019-04-15 2019-04-15 Method for cluster control, network device, master control node device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111835534A CN111835534A (en) 2020-10-27
CN111835534B true CN111835534B (en) 2022-05-06

Family

ID=72914647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910303379.6A Active CN111835534B (en) 2019-04-15 2019-04-15 Method for cluster control, network device, master control node device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111835534B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038359A (en) * 2013-03-06 2014-09-10 中兴通讯股份有限公司 Virtual exchange stack system managing method and virtual exchange stack system managing device
CN104378232A (en) * 2014-11-10 2015-02-25 东软集团股份有限公司 Schizencephaly finding and recovering method and device under main joint and auxiliary joint cluster networking mode
CN104394017A (en) * 2014-11-26 2015-03-04 迈普通信技术股份有限公司 Stacking system electing method and main device
JP2018056633A (en) * 2016-09-26 2018-04-05 日本電気株式会社 Cluster system, server, operation method for server, and program
CN108111337A (en) * 2017-12-06 2018-06-01 北京天融信网络安全技术有限公司 Distributed system arbitrates the method and apparatus of host node

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7496782B1 (en) * 2004-06-01 2009-02-24 Network Appliance, Inc. System and method for splitting a cluster for disaster recovery
US8024432B1 (en) * 2008-06-27 2011-09-20 Symantec Corporation Method and apparatus for partitioning a computer cluster through coordination point devices
KR101075462B1 (en) * 2009-10-29 2011-10-24 국방과학연구소 Method to elect master nodes from nodes of a subnet
WO2012083693A1 (en) * 2011-07-26 2012-06-28 华为技术有限公司 Voting arbitration method and apparatus for cluster computer system
US9146705B2 (en) * 2012-04-09 2015-09-29 Microsoft Technology, LLC Split brain protection in computer clusters
CN104917792B (en) * 2014-03-12 2018-10-30 上海宝信软件股份有限公司 The cluster management method and system of democratic autonomy
CN105450717A (en) * 2014-09-29 2016-03-30 中兴通讯股份有限公司 Method and device for processing brain split in cluster
WO2016106682A1 (en) * 2014-12-31 2016-07-07 华为技术有限公司 Post-cluster brain split quorum processing method and quorum storage device and system
US10027560B2 (en) * 2015-11-12 2018-07-17 Hulu, LLC Leader election in distributed computer system
CN110233905B (en) * 2017-04-20 2020-12-25 腾讯科技(深圳)有限公司 Node device operation method, node device, and storage medium
CN106936646B (en) * 2017-04-24 2019-12-06 新华三技术有限公司 method and device for determining main master control board
CN107579860A (en) * 2017-09-29 2018-01-12 新华三技术有限公司 Node electoral machinery and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038359A (en) * 2013-03-06 2014-09-10 中兴通讯股份有限公司 Virtual exchange stack system managing method and virtual exchange stack system managing device
CN104378232A (en) * 2014-11-10 2015-02-25 东软集团股份有限公司 Schizencephaly finding and recovering method and device under main joint and auxiliary joint cluster networking mode
CN104394017A (en) * 2014-11-26 2015-03-04 迈普通信技术股份有限公司 Stacking system electing method and main device
JP2018056633A (en) * 2016-09-26 2018-04-05 日本電気株式会社 Cluster system, server, operation method for server, and program
CN108111337A (en) * 2017-12-06 2018-06-01 北京天融信网络安全技术有限公司 Distributed system arbitrates the method and apparatus of host node

Also Published As

Publication number Publication date
CN111835534A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
EP2681870B1 (en) Technique for determining correlated events in a communication system
CN109344014B (en) Main/standby switching method and device and communication equipment
CN110830324B (en) Method and device for detecting network connectivity of data center and electronic equipment
CN109960634B (en) Application program monitoring method, device and system
EP3358786B1 (en) Information processing method in m2m and apparatus
WO2021233224A1 (en) Fault processing method, apparatus, and system
CN112087468A (en) Message processing method, related equipment and readable storage medium
CN111565133B (en) Private line switching method and device, electronic equipment and computer readable storage medium
CN109495530A (en) A kind of real time traffic data transmission method, transmitting device and Transmission system
CN114158038B (en) Communication method, device and storage medium
CN110674096B (en) Node troubleshooting method, device and equipment and computer readable storage medium
CN101977142A (en) Simple network management method and device based on multiple routing protocol instances
CN110809262A (en) Internet of things equipment operation and maintenance management method based on COAP protocol
CN111835534B (en) Method for cluster control, network device, master control node device and computer readable storage medium
CN111064729B (en) Message processing method and device, storage medium and electronic device
CN111901395A (en) Multi-cluster switching method and device
CN113596105B (en) Content acquisition method, edge node and computer readable storage medium
CN113766363B (en) Fault monitoring method and device and computing equipment
CN109150666B (en) Method for preventing website downtime
CN111866122A (en) Micro-service processing method and device and client terminal
CN111262864B (en) Method, device and system for sending live broadcast state data and storage medium
CN111865639B (en) Method and device for collecting information of snmp service equipment and electronic equipment
CN105515807B (en) Up cfm message processing method and system and network data exchange equipment
CN213403038U (en) Data transfer unit DTU device
CN113271327B (en) Networking method of central monitoring system and medical equipment

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