CN105337780B - A kind of server node configuration method and physical node - Google Patents

A kind of server node configuration method and physical node Download PDF

Info

Publication number
CN105337780B
CN105337780B CN201510862795.1A CN201510862795A CN105337780B CN 105337780 B CN105337780 B CN 105337780B CN 201510862795 A CN201510862795 A CN 201510862795A CN 105337780 B CN105337780 B CN 105337780B
Authority
CN
China
Prior art keywords
node
physical node
physical
server
specific
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
CN201510862795.1A
Other languages
Chinese (zh)
Other versions
CN105337780A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201510862795.1A priority Critical patent/CN105337780B/en
Publication of CN105337780A publication Critical patent/CN105337780A/en
Application granted granted Critical
Publication of CN105337780B publication Critical patent/CN105337780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of server node configuration method of offer of the embodiment of the present invention and physical node, it is related to distributed technical field, it can solve the problem of that Dual Computers Cluster System can not be normally carried out Leader role's election when physical node breaks down one of in Zookeeper Dual Computers Cluster Systems in the prior art.Scheme is:First physical node is based on IP address and configures N number of server node, N is positive integer, when it is specific physical node that the first physical node, which determines itself, create the specified addresses VIP, and it is based on X server node of VIP address configurations, X is positive integer, and specific physical node is the physical node not broken down in Dual Computers Cluster System, so that the sum of the server node configured in specific physical node is more than the half of the default sum of server node in Dual Computers Cluster System.The embodiment of the present invention is used for configuration server node.

Description

A kind of server node configuration method and physical node
Technical field
The present embodiments relate to distributed technical field more particularly to a kind of server node configuration method and physics sections Point.
Background technology
Distributed coordination service Zookeeper is a kind of high-performance, High Availabitity, and controls energy with stringent sequential access The Distributed Services of power.In actual deployment scene, in order to avoid internet protocol-based (Internet on physical node Protocol, IP) address configuration Zookeeper server nodes, become the single-point of entire distributed Dual Computers Cluster System therefore Hinder or occur performance bottleneck, Zookeeper Dual Computers Cluster Systems, and owning from cluster are usually disposed with trunking mode In Zookeeper server nodes, one server node of election is used for execution as leader Leader role and writes event, and its Its server node is for executing reading event.Wherein, Leader role's election regulation provides:When electing Leader role, one A server node only when receiving more than the number of valid ballots of the half of Servers-all node configuration sum in current cluster, Leader role can be just elected as.
Under dual computer group deployment mode, Zookeeper Dual Computers Cluster Systems include two physical nodes, when one of them When physical node breaks down, the Servers-all node of the IP address configuration based on the physical node cannot be in Leader role It is effectively voted when election;The server node configured on another physical node not broken down can be in Leader role It is effectively voted when election.But the quantity of the server node configured on another physical node due to not breaking down, no Certain half more than the quantity of Servers-all node in Zookeeper Dual Computers Cluster Systems so that selected in Leader role Total number of valid ballots is not necessarily greater to the half of the quantity of Servers-all node in Zookeeper Dual Computers Cluster Systems when act, To be difficult to meet Leader role's election regulation, to be difficult to ensure being normally carried out for Leader role's election, thus influence The normal operations of Zookeeper Dual Computers Cluster Systems.
Invention content
The embodiment of the present invention provides a kind of server node configuration method and physical node, can solve in the prior art when When physical node breaks down one of in Zookeeper Dual Computers Cluster Systems, in Dual Computers Cluster System can not normally into The problem of row Leader role elects.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, providing a kind of server node configuration method, it is applied to Dual Computers Cluster System, including:
First physical node internet protocol-based IP address configures N number of server node, and the N is positive integer;
When it is specific physical node that first physical node, which determines itself, specified virtual IP is created The addresses VIP, and it is based on described X server node of VIP address configurations, the X is positive integer, and the specific physical node is institute The physical node not broken down in Dual Computers Cluster System is stated, so that the server node configured in the specific physical node Sum be more than the Dual Computers Cluster System in server node default sum half;
Wherein, the value that the default sum is the N+X+M, the M are to be matched based on IP address on nonspecific physical node The quantity for the server node set, and M is positive integer.
Second aspect provides a kind of physical node, is applied to Dual Computers Cluster System, including:
Dispensing unit configures N number of server node for internet protocol-based IP address, and the N is positive integer;
Determination unit, for determining that the physical node is specific physical node;
Creating unit, for when the determination unit determines that the physical node is specific physical node, creating specified The addresses virtual IP VIP, the specific physical node is the physics that does not break down in the Dual Computers Cluster System Node;
The dispensing unit is additionally operable to, based on X server node of VIP address configurations that the creating unit creates, institute It is positive integer to state X, so that the sum of the server node configured in the specific physical node is more than the dual computer group system The half of the default sum of server node in system;
The value that the default sum is N+X+M, the M are the server based on IP address configuration on nonspecific physical node The quantity of node, and M is positive integer.
A kind of server node configuration method of offer of the embodiment of the present invention and physical node, are applied to Dual Computers Cluster System, When a physical node in Dual Computers Cluster System breaks down, the physical node to break down is nonspecific physical node, The physical node not broken down is specific physical node, and specific physical node is based on referring to by creating the specified addresses VIP The fixed a certain number of server nodes of VIP address configurations so that the sum of the server node configured in specific physical node More than the half of the default sum of server node in Dual Computers Cluster System, break down to a physical node wherein In the case of, the specific physical node not broken down enables to Dual Computers Cluster System to meet Leader role's election regulation, from And Leader role's election can be normally carried out.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the present invention Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of Zookeeper Dual Computers Cluster Systems structural schematic diagram provided in the prior art;
Fig. 2 is a kind of service node configuration method flow chart provided in an embodiment of the present invention;
Fig. 3 is a kind of Zookeeper Dual Computers Cluster Systems structural schematic diagram provided in an embodiment of the present invention;
Fig. 4 is another kind Zookeeper Dual Computers Cluster System structural schematic diagrams provided in an embodiment of the present invention;
Fig. 5 is a kind of physical node structural schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes.
In order to make it easy to understand, the exemplary part that gives is for reference with the explanation of related notion of the embodiment of the present invention, such as Shown in lower:
Physical node:With only network address physical equipment, such as computer.
IP address:IP agreement is the logical address of each network and the distribution of each computer on internet, with certain A network or some physical node are corresponding.
Virtual ip address:The address (Virtual Internet Protocol, VIP), one does not calculate with specific one Machine or a relevant IP address of network interface card, commonly used in connection redundancy, when a computer or network interface card occur When failure, the addresses VIP can transfer to another optional physical node or network interface card to respond connection.
HA:High availability (High Available) cluster is the effective solution for ensureing business continuance, generally has Two or more nodes, and it is divided into active node and standby node.
100 basic framework schematic diagram of Zookeeper Dual Computers Cluster Systems in the prior art may refer to Fig. 1.Wherein, double Machine group system 100 includes 2 two physical nodes of physical node 1 and physical node, and each physical node is actual physics Equipment (such as computer) is configured with Zookeeper modules on each physical node, for providing distributed coordination service.Often It is each equipped with a certain number of server nodes on a physical node, specifically may refer to the circle in Fig. 1, one of service Device node is the Leader role elected, such as the small circle of L is labeled in Fig. 1, and event is write for executing, other all Server node is subordinate Follower role, such as the small circle of F is labeled in Fig. 1, for executing reading event.When The server node of Follower role receives when writing event, by write event forwarding to Leader role server node into Row processing, and the server node of Follower role executes knot to the server node synchronous event of Leader role in real time Fruit.
In Zookeeper Dual Computers Cluster Systems shown in Fig. 1, when two physical nodes do not break down, this pair Machine group system can be normally carried out Leader role and elect and keep normal operation.
When two physical nodes break down, which can not work normally, and need to repair place It can just be continued to run with after reason.
When breaking down one of in physical node 1 and physical node 2, match on the physical node that does not break down The quantity for the server node set is not necessarily greater to one of the quantity of Servers-all node in Zookeeper Dual Computers Cluster Systems Half, to be difficult to be normally carried out Leader role's election.For the problem, following embodiment of the present invention provides a kind of server section Point configuration method by creating the addresses VIP in the specific physical node in Dual Computers Cluster System, and is based on VIP address configurations A certain number of server nodes, to solve when physical node breaks down one of in Dual Computers Cluster System, two-shipper Group system cannot be normally carried out the problem of Leader elections.
Following embodiment of the present invention provides a kind of server node configuration method, in a distributed manner application program coordination service It is illustrated for Zookeeper Dual Computers Cluster Systems.It is needed to configure in Zookeeper Dual Computers Cluster Systems under normal conditions The sum of server node is to be set according to actual demand, such as the default sum of server node is in Dual Computers Cluster System K, K are positive integer.Referring to Fig. 2, this method may include mainly:
201, the first physical node is based on IP address and configures N number of server node, and N is positive integer.
Here the first physical node refers to any one in two physical nodes of Zookeeper Dual Computers Cluster Systems It is a.First physical node can be the IP address that the first physical node distributes by Zookeeper modules, and based on IP agreement, Configure N number of Zookeeper server nodes.Namely by Zookeeper modules and based on the IP address of the first physical node, N number of Zookeeper server instances are created on the first physical node.
202, when it is specific physical node that the first physical node, which determines itself, the specified addresses VIP are created, and be based on X server node of VIP address configurations, X are positive integer, so that the sum of the server node configured in specific physical node More than the half of the default sum of server node in Dual Computers Cluster System.
Wherein, default sum refers to being arranged according to actual conditions, the service needed to configure in total in Dual Computers Cluster System The quantity of device node.It is specially the value of N+X+M in embodiments of the present invention, M therein is that IP is based on nonspecific physical node The quantity of the server node of address configuration specifically may refer to the structural schematic diagram of Dual Computers Cluster System 300 shown in Fig. 3. Wherein, consistent in the small circle in Fig. 3 represents meaning and Fig. 1.The first physical node can be specifically in the embodiment of the present invention Any one in Fig. 3 in physical node 1 and physical node 2.For example, the first physical node is physical node 1, the second physics section Point is physical node 2.The sum of the server node configured in specific physical node is that IP address is based in specific physical node The quantity X of server node based on VIP address configurations on the quantity N and specific physical node of the server node of configuration With.Wherein, the corresponding IP address of different physical nodes is different.
Specific physical node is the physical node not broken down in Dual Computers Cluster System, when a physical node is sent out When raw failure, which is not or is no longer specific physical node, when a physical node is specific physical node, The physical node does not break down.
When it is specific physical node that the first physical node, which determines itself, the first physical node can be created on the physical interface The specified addresses VIP (such as addresses VIP 1), and a certain number of server nodes of VIP address configurations based on establishment are built, with So that the sum of the server node configured in specific physical node is more than the default total of server node in Dual Computers Cluster System Several half.
To nonspecific when the second physical node (nonspecific physical node) in Dual Computers Cluster System breaks down The server node configured on physical node cannot effectively be voted when Leader role elects.That does not break down is specific The server node configured on physical node can effectively be voted when Leader role elects.Due to as specific physics Node, the first physical node can ensure the total of the server node effectively voted when carrying out Leader role's election Number is more than the half of the default sum of server node in Dual Computers Cluster System, to meet Leader role's election regulation, protects Card Leader role's election is normally carried out.
That is, specific physical node can ensure in nonspecific physics nodes break down, Dual Computers Cluster System Leader role's election can be normally carried out.
Again since the specific physical node in Dual Computers Cluster System is the physical node not broken down, thus work as two-shipper collection When only breaking down there are one physical node in group's system, specific physical node must be that the physics section not broken down Point.Thus, when physical node breaks down one of in Dual Computers Cluster System, the specific physical node that does not break down It can ensure that Dual Computers Cluster System is normally carried out Leader role's election.
Wherein, in step 202, the quantity X of the server node based on VIP address configurations in specific physical node, can With the difference of the quantity more than the server node for being based respectively on IP address configuration in Dual Computers Cluster System on two physical nodes Absolute value.
It is exemplary, if the quantity of the corresponding server node of nonspecific physical node is M, specific object in Dual Computers Cluster System The quantity for managing the server node based on IP address configuration in node is N, the clothes based on VIP address configurations in specific physical node The quantity of business device node is X, then the sum of the server node configured in specific physical node is N+X, including is based on IP address N number of server node of configuration and the X server node based on VIP address configurations.Also, since specific physical node is double The physical node not broken down in machine group system, thus when carrying out Leader role's election, in specific physical node Server node can effectively be voted.In Dual Computers Cluster System, the nonspecific physical node in addition to specific physical node In, the quantity of the server node based on IP address configuration is M, the service configured on two physical nodes in Dual Computers Cluster System The quantity N+X+M of device node is default sum.
When X is positive integer and X>| M-N | when,(N+X+M), that is, it is located in specific physical node and can be The total N+X for the server node that Leader role is effectively voted when electing is more than server section in Dual Computers Cluster System The half of the default sum N+X+M of point.Thus when nonspecific physics nodes break down, Dual Computers Cluster System can still meet Leader role's election regulation, to ensure that Dual Computers Cluster System is normally carried out Leader role's election.
It should be noted that the correspondence of specific physical node and physical node is not to fix in Dual Computers Cluster System Constant, but according to actual conditions dynamic change.
Further, referring to Fig. 4, each object in Zookeeper Dual Computers Cluster Systems 300 provided in an embodiment of the present invention It can also includes high availability HA modules to manage on node.Two physical nodes and its corresponding HA modules in Dual Computers Cluster System, Form HA clusters.HA clusters are the effective solutions for ensureing business continuance, it is general there are two or more than two nodes, And it is divided into active node and standby node, the business that is carrying out usually is known as active node, and as the one of active node A backup is then known as standby node, when active node goes wrong, causes the business (task) being currently running that cannot normally transport When row, standby node will detect at this time, and connect active node immediately to execute business, to realize not interrupting for business Or short interruption.The embodiment of the present invention utilizes the above-mentioned characteristic of HA clusters, is determined by the HA modules in two nodes Specific physical node in Zookeeper Dual Computers Cluster Systems, another physical node in addition to specific physical node are non-spy Determine physical node, and when current specific physical node breaks down, another object not broken down is notified by HA modules Node is managed, so that another physical node not broken down is switched to new specific physical node, and in new specific object The specified addresses VIP and configuration server node are created on reason node.
Specifically, in step 202, the physical node in Dual Computers Cluster System determines whether itself is special by HA modules Determining physical node may include:
When the second physical node in the first physical node and Dual Computers Cluster System does not break down, the first physics section Point determines itself to be specific object according to the negotiation result of the HA modules in the high availability HA modules of itself and the second physical node Manage node.Wherein, the reference conditions when HA modules in two physical nodes are held consultation may include the load of physical node, Critical processes in physical node whether normal operation etc., are not especially limited here.
Alternatively, when the first physical node does not break down, if the high availability HA moulds that the first physical node passes through itself Block is determined as the second physical node of specific physical node with the HA modules on the second physical node in Dual Computers Cluster System It breaks down, then the first physical node determines itself to be new specific physical node.
Illustratively, after two physical nodes in successfully starting up Dual Computers Cluster System, physical node 1 can be based on IP The N number of server node of address configuration, physical node 2 can be based on IP address and configure M server node, and physical node 1 In HA modules and physical node 2 in HA modules can determine through consultation which physical node be specific physical node, example Such as negotiate to determine that physical node 1 is specific physical node, then notifies negotiation result to two respectively by respective HA modules Physical node.When it is specific physical node to determine itself, the physical interface based on physical node 1 creates specified physical node 1 The addresses VIP, and be based on X server node of VIP address configurations.
If hereafter physical node 2 breaks down, specific physical node 1 passes through based on the specified addresses the VIP (addresses VIP 1) X server node is created, the sum of the server node configured in specific physical node 1 can be made to be more than dual computer group The half of the default sum of server node in system thereby may be ensured that Dual Computers Cluster System is normally carried out Leader role's choosing It lifts.
Alternatively, if hereafter physical node 1 breaks down, the server node configured in physical node 1 cannot carry out Leader role is effectively voted when electing.When physical node 1 breaks down, physical node 1 can pass through the HA of itself Fault condition is notified the HA modules of physical node 2 by module.Physical node 2 knows original specific object by the HA modules of itself When reason node 1 breaks down, if physical node 2 does not break down, physical node 2 can determine itself for new specific physics Node, i.e. specific physical node are switched to physical node 2 by physical node 1, and in the physical interface of new specific physical node 2 It is upper to create the specified addresses VIP (being still the addresses VIP 1), and based on specified X server node of VIP address configurations.
It should be noted that the specified addresses VIP created in new specific physical node 2 in original specific physics The specified addresses VIP created in node 1 are the same addresses VIP, specified when creating this in new specific physical node 2 When the addresses VIP, the specified addresses VIP that are created in original specific physical node 1 and based on the specified VIP address configurations Server node failure.
At this point, the quantity of the server node configured in physical node 1 is N, the clothes configured in new specific physical node 2 The quantity of device node of being engaged in is M+X, and the quantity of the server node based on IP address configuration in new specific physical node 2 is M, double The quantity M+X+N of Servers-all node is default sum in machine group system.
When X is positive integer and X>| M-N | when, can equally it make(N+X+M), i.e., new specific physics section Sum M+the X of the server node configured on point 2 is more than the default sum N+X+M of server node in Dual Computers Cluster System Half, so as to ensure that Dual Computers Cluster System is normally carried out Leader role's election.
For example, if the default sum of server node is 10 in Dual Computers Cluster System, the distribution condition of N, X, M can With referring to such as the following table 1.
Wherein, a kind of optional embodiment is that X is equal in Dual Computers Cluster System on one of physical node based on IP The quantity of the server node of address configuration, and X is more than the server node based on IP address configuration on another physical node Quantity half.I.e. as X=M,NamelyAs X=N,NamelyTool Body may refer to such as number 6 in the following table 1 and number 7 corresponding N, X, M.
Table 1
The embodiment of the present invention provides a kind of server node configuration method, is applied to Dual Computers Cluster System, works as dual computer group When a physical node in system breaks down, the physical node to break down is nonspecific physical node, is not broken down Physical node be specific physical node, specific physical node is by creating the specified addresses VIP, and based on specified VIP Location configures a certain number of server nodes so that the sum of the server node configured in specific physical node is more than two-shipper collection The half of the default sum of server node in group's system, in the case that a physical node breaks down wherein, not The specific physical node to break down enables to Dual Computers Cluster System to meet Leader role's election regulation, so as to normal Carry out Leader role's election.
Following embodiment of the present invention provides a kind of physical node 500, can be the physical equipment (example in Dual Computers Cluster System Such as computer), the server node configuration method provided in above method embodiment can be provided.Referring to Fig. 5, the physical node 500 may include:
Dispensing unit 501 can be used for internet protocol-based IP address and configure N number of server node, and N is positive integer.
Determination unit 502, it is specific physical node to be determined for physical node.
Creating unit 503 can be used for, when determination unit 502 determines that physical node 500 is specific physical node, creating The specified addresses virtual IP VIP, specific physical node are the physical node not broken down in Dual Computers Cluster System.
Dispensing unit 501 can be also used for, based on X server node of VIP address configurations that creating unit 503 creates, X For positive integer, so that the sum of the server node configured in specific physical node is more than server section in Dual Computers Cluster System The half of the default sum of point.Wherein, the value that sum is N+X+M is preset, M is to be configured based on IP address on nonspecific physical node Server node quantity, and M be positive integer.
Optionally it is determined that unit 502 can be specifically used for:
When another physical node in physical node 500 and Dual Computers Cluster System does not break down, physical node 500 Determine itself to be specific physics according to the negotiation result of the HA modules in the high availability HA modules of itself and another physical node Node.
Optionally it is determined that unit 502 can also be specifically used for:
When physical node 500 does not break down, if high availability HA modules and two-shipper that physical node 500 passes through itself Another physical node that the HA modules on another physical node in group system are determined as specific physical node breaks down, Then physical node 500 determines itself to be new specific physical node.
Wherein, X can be more than the server for being based respectively on IP address configuration in Dual Computers Cluster System on two physical nodes The absolute value of the difference of the quantity of node.
Optionally, X can be equal to the service based on IP address configuration on one of physical node in Dual Computers Cluster System The quantity of device node, and X is more than the half of the quantity of the server node based on IP address configuration on another physical node.
The embodiment of the present invention provides a kind of physical node, is applied to Dual Computers Cluster System, as one in Dual Computers Cluster System When a physical node breaks down, the physical node to break down is nonspecific physical node, the physical node not broken down For specific physical node, specific physical node is and certain based on specified VIP address configurations by creating the specified addresses VIP The server node of quantity so that the sum of the server node configured in specific physical node, which is more than in Dual Computers Cluster System, to be taken The half of the default sum of business device node does not break down in the case that a physical node breaks down wherein Specific physical node enables to Dual Computers Cluster System to meet Leader role's election regulation, so as to be normally carried out Leader Role elects.
In several embodiments provided herein, it should be understood that disclosed physical node and method, Ke Yitong Other modes are crossed to realize.For example, the apparatus embodiments described above are merely exemplary, for example, the unit is drawn Point, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can To combine or be desirably integrated into another Dual Computers Cluster System, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unit INDIRECT COUPLING or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that the independent physics of each unit includes, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the portion of each embodiment the method for the present invention Step by step.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, abbreviation ROM), the various media that can store program code such as random access memory ram, magnetic disc or CD.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, it will be understood by those of ordinary skill in the art that:It still may be used With technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features; And these modifications or replacements, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of Zookeeper server nodes configuration method is applied to Zookeeper Dual Computers Cluster Systems, which is characterized in that Including:
First physical node internet protocol-based IP address configures N number of server node, and the N is positive integer;
When it is specific physical node that first physical node, which determines itself, with creating specified virtual IP VIP Location, and it is based on described X server node of VIP address configurations, the X is positive integer, and the specific physical node is described double The physical node not broken down in machine group system, so that the server node configured in the specific physical node is total Number is more than the half of the default sum of server node in the Dual Computers Cluster System;
Wherein, the value that the default sum is N+X+M, the M are the service based on IP address configuration on nonspecific physical node The quantity of device node, and M is positive integer.
2. according to the method described in claim 1, it is characterized in that, it itself is specific physics section that first physical node, which determines, It puts and includes:
When the second physical node in first physical node and the Dual Computers Cluster System does not break down, described the One physical node is determined according to the negotiation result of the HA modules in the high availability HA modules of itself and second physical node Itself it is specific physical node.
3. according to the method described in claim 1, it is characterized in that, it itself is specific node packet that first physical node, which determines, It includes:
When first physical node does not break down, if the high availability HA modules that first physical node passes through itself With the HA modules on the second physical node in the Dual Computers Cluster System, it is determined as second object of specific physical node It manages node to break down, then first physical node determines itself to be new specific physical node.
4. according to claim 1-3 any one of them methods, which is characterized in that the X is more than in the Dual Computers Cluster System The absolute value of the difference of the quantity of the server node of IP address configuration is based respectively on two physical nodes.
5. according to the method described in claim 4, it is characterized in that, the X is equal to one of them in the Dual Computers Cluster System The quantity of server node based on IP address configuration on physical node, and the X is more than on another physical node based on IP The half of the quantity of the server node of address configuration.
6. a kind of physical node is applied to Zookeeper Dual Computers Cluster Systems, which is characterized in that including:
Dispensing unit configures N number of server node for internet protocol-based IP address, and the N is positive integer;
Determination unit, for determining that the physical node is specific physical node;
Creating unit, for when the determination unit determines that the physical node is specific physical node, creating specified void The quasi- addresses Internet protocol VIP, the specific physical node are the physical node not broken down in the Dual Computers Cluster System;
The dispensing unit is additionally operable to, and based on X server node of VIP address configurations that the creating unit creates, the X is Positive integer takes so that the sum of the server node configured in the specific physical node is more than in the Dual Computers Cluster System The half of the default sum of business device node;
The value that the default sum is N+X+M, the M are the server node based on IP address configuration on nonspecific physical node Quantity, and M be positive integer.
7. physical node according to claim 6, which is characterized in that the determination unit is specifically used for:
When another physical node in the physical node and the Dual Computers Cluster System does not break down, the physics section Point determines itself to be specific object according to the negotiation result of the HA modules in the high availability HA modules of itself and another physical node Manage node.
8. physical node according to claim 6, which is characterized in that the determination unit is specifically used for:
When the physical node does not break down, if the physical node passes through the high availability HA modules of itself and described pair Another physical node that the HA modules on another physical node in machine group system are determined as specific physical node goes out Show failure, then the physical node determines itself to be new specific physical node.
9. according to claim 6-8 any one of them physical nodes, which is characterized in that the X is more than the dual computer group system The absolute value of the difference of the quantity of the server node of IP address configuration is based respectively in system on two physical nodes.
10. physical node according to claim 9, which is characterized in that the X is equal in the Dual Computers Cluster System wherein The quantity of server node based on IP address configuration on one physical node, and the X is more than base on another physical node In the half of the quantity of the server node of IP address configuration.
CN201510862795.1A 2015-12-01 2015-12-01 A kind of server node configuration method and physical node Active CN105337780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510862795.1A CN105337780B (en) 2015-12-01 2015-12-01 A kind of server node configuration method and physical node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510862795.1A CN105337780B (en) 2015-12-01 2015-12-01 A kind of server node configuration method and physical node

Publications (2)

Publication Number Publication Date
CN105337780A CN105337780A (en) 2016-02-17
CN105337780B true CN105337780B (en) 2018-09-18

Family

ID=55288093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510862795.1A Active CN105337780B (en) 2015-12-01 2015-12-01 A kind of server node configuration method and physical node

Country Status (1)

Country Link
CN (1) CN105337780B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385437A (en) * 2016-08-31 2017-02-08 广州唯品会信息科技有限公司 Cluster selecting method and device
CN107070729A (en) * 2017-06-13 2017-08-18 深圳市伊特利网络科技有限公司 Main equipment elects method and system in network linking
CN109802986B (en) * 2017-11-17 2021-10-15 华为技术有限公司 Equipment management method, system, device and server
CN108023953B (en) * 2017-12-04 2021-07-09 北京星选科技有限公司 High-availability implementation method and device for FTP service

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402395A (en) * 2010-09-16 2012-04-04 上海中标软件有限公司 Quorum disk-based non-interrupted operation method for high availability system
CN102868754A (en) * 2012-09-26 2013-01-09 北京联创信安科技有限公司 High-availability method, node device and system for achieving cluster storage
CN103425645A (en) * 2012-05-14 2013-12-04 阿里巴巴集团控股有限公司 Monitoring system and monitoring method for single point of failure of database cluster
CN103457775A (en) * 2013-09-05 2013-12-18 中国科学院软件研究所 High-availability virtual machine pooling management system based on roles
CN103491168A (en) * 2013-09-24 2014-01-01 浪潮电子信息产业股份有限公司 Cluster election design method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9184987B2 (en) * 2011-02-23 2015-11-10 Tyco Fire & Security Gmbh System and method for automatic configuration of master/slave devices on a network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402395A (en) * 2010-09-16 2012-04-04 上海中标软件有限公司 Quorum disk-based non-interrupted operation method for high availability system
CN103425645A (en) * 2012-05-14 2013-12-04 阿里巴巴集团控股有限公司 Monitoring system and monitoring method for single point of failure of database cluster
CN102868754A (en) * 2012-09-26 2013-01-09 北京联创信安科技有限公司 High-availability method, node device and system for achieving cluster storage
CN103457775A (en) * 2013-09-05 2013-12-18 中国科学院软件研究所 High-availability virtual machine pooling management system based on roles
CN103491168A (en) * 2013-09-24 2014-01-01 浪潮电子信息产业股份有限公司 Cluster election design method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于zookeeper的虚拟机动态变更机制的设计与实现;易柏胜;《中国优秀硕士学位论文全文数据库》;20131215;全文 *

Also Published As

Publication number Publication date
CN105337780A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN105337780B (en) A kind of server node configuration method and physical node
CN102404390B (en) Intelligent dynamic load balancing method for high-speed real-time database
Houidi et al. Adaptive virtual network provisioning
CN106331098B (en) Server cluster system
CN106059791B (en) Link switching method of service in storage system and storage device
GB2407887A (en) Automatically modifying fail-over configuration of back-up devices
CN102437933A (en) Fault tolerance system and method of server
CN101110776B (en) Backup method, backup device and backup system for data business
US9473360B2 (en) System and method for primary switch election in peer groups
CN102761528A (en) System and method for data management
CN103067277A (en) Method of building control channel, forwarding point (FP) and controller
CN104518995B (en) Interchanger virtualization system based on distributed structure/architecture
CN103023973A (en) Cluster server designing method based on CPCI (Compact Peripheral Component Interconnect) structure
CN107465721B (en) Global load balancing method and system based on double-active architecture and scheduling server
CN104753987B (en) A kind of distributed conversation management method and system
CN106713378B (en) Method and system for providing service by multiple application servers
CN105100185A (en) System and method for adaptively integrating a database state notification service with a distributed transactional middleware machine
WO1997049034A1 (en) Job taking-over system
CN107682411A (en) A kind of extensive SDN controllers cluster and network system
CN106874142B (en) Real-time data fault-tolerant processing method and system
CN106850269A (en) A kind of management system of cloud platform
JP2009075710A (en) Redundant system
US20060233164A1 (en) Method to separate fibre channel switch core functions and fabric management in a storage area network
CN103888510B (en) A kind of business high availability method of cloud computation data center
JP2006189964A (en) Message distribution method, standby system node device, and program

Legal Events

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