CN105450686A - Method and device for establishing server cluster - Google Patents

Method and device for establishing server cluster Download PDF

Info

Publication number
CN105450686A
CN105450686A CN201410410339.9A CN201410410339A CN105450686A CN 105450686 A CN105450686 A CN 105450686A CN 201410410339 A CN201410410339 A CN 201410410339A CN 105450686 A CN105450686 A CN 105450686A
Authority
CN
China
Prior art keywords
cluster
server node
server
group
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410410339.9A
Other languages
Chinese (zh)
Other versions
CN105450686B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201410410339.9A priority Critical patent/CN105450686B/en
Publication of CN105450686A publication Critical patent/CN105450686A/en
Application granted granted Critical
Publication of CN105450686B publication Critical patent/CN105450686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention belongs to server cluster field and provides a method and device for establishing a server cluster. The method comprises steps of: establishing a channel in a channel layer and sending an joining event for joining an assigned cluster by using the channel; generating a searching event for searching the members of the assigned cluster when the joining event is monitored; broadcasting the searching event to multiple server nodes; analyzing a feedback event so long as the feedback event is monitored and analyzing a physical address and a member label assigned by the feedback event, wherein the feedback events are fed by the server nodes back to a local server node; detecting the member label and if a leader identifier is detected in the member label, applying to the server node containing the leader identifier for joining the assigned cluster according to the physical address; enabling the server node containing the leader identifier to add the local server node into the physical address.

Description

A kind of construction method of server cluster and device
Technical field
The invention belongs to server cluster field, particularly relate to a kind of construction method and device of server cluster.
Background technology
Server cluster, refers to and puts together together by multiple server node, provides same service.Server cluster can utilize multiple server node to carry out parallel computation, obtains very high computational speed; Also can backup with one or more server node, Deterministic service device cluster does not go offline, safety, stable, reliably provide service.
Prior art builds server cluster, usually based on User Datagram Protoco (UDP) (UserDatagramProtocol, UDP) or transmission control protocol (TransmissionControlProtocol, the TCP) realization of ICP/IP protocol.Example is embodied as with Transmission Control Protocol, when new server node request adds certain server cluster, adopt Transmission Control Protocol to send to other server node with a cluster request adding this server cluster with mode of unicast, packet accurately can arrive the other side, but it is some more to expend flow.And udp protocol realizes, adopt ip multicast technology (IPMulticast) to add the request of this server cluster to other server node broadcast with a cluster, flow can be saved, be suitable for setting up server cluster in local area network (LAN).
Summary of the invention
The object of the present invention is to provide a kind of construction method and device of server cluster, to provide a kind of mode adding server cluster.
First aspect, the invention provides a kind of construction method of server cluster, and the construction method of described server cluster comprises:
Set up a passage at channel layer, by described passage send add cluster-specific add incoming event;
When adding incoming event described in listening to, generate the searched events of searching the group member of described cluster-specific;
Described searched events is broadcasted to multiple server node;
Resolve described feedback event when often listening to a feedback event, and parse physical address and group member's label that described feedback event specifies, described feedback event by described server node to book server node feeding back;
Detect described group member's label, if detect that group leader identifies from described group member's label, then add described cluster-specific according to physical address to the server node application with described group leader mark.
Second aspect, the invention provides a kind of construction apparatus of server cluster, and the construction apparatus of described server cluster comprises:
Channel unit, is located at channel layer, for setting up a passage, by described passage send add cluster-specific add incoming event;
Generation unit, for when adding incoming event described in listening to, generates the searched events of searching the group member of described cluster-specific;
Radio unit, for broadcasting described searched events to multiple server node;
Resolution unit, for resolving described feedback event when often listening to a feedback event, and parses the physical address and group member's label that described feedback event specifies, described feedback event by described server node to book server node feeding back;
Detecting unit, is located at group service layer, for detecting described group member's label;
Application unit, if detect that group leader identifies for described detecting unit from described group member's label, then adds described cluster-specific according to physical address to the server node application with described group leader mark.
Beneficial effect of the present invention: set up a passage when hope adds cluster-specific, by this passage send add described cluster-specific add incoming event, and then group service layer generates searched events when adding incoming event described in listening to, and broadcasts described searched events; Then according to the feedback event analysis group member's label wherein received, searching and whether there is group leader's mark, as existed, adding described cluster-specific to the server node application with described group leader mark.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the workflow diagram of the construction method of the server cluster that the embodiment of the present invention provides;
Fig. 2 is a kind of optimized work flow figure of the construction method of the server cluster that the embodiment of the present invention provides;
Fig. 3 is another optimized work flow figure of the construction method of the server cluster that the embodiment of the present invention provides;
Fig. 4 is the composition structure of the construction apparatus of the server cluster that the embodiment of the present invention provides;
Fig. 5 is the one optimization composition structure of the construction apparatus of the server cluster that the embodiment of the present invention provides;
Fig. 6 is another optimization composition structure of the construction apparatus of the server cluster that the embodiment of the present invention provides;
Fig. 7 is another optimization composition structure of the construction apparatus of the server cluster that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.In order to technical solutions according to the invention are described, be described below by specific embodiment.
In embodiments of the present invention, each server node can distinguish the group member of multiple server cluster.It should be noted that, for each server cluster, a group leader can be determined from all group members this server cluster.For certain server node in server cluster, if this server node is group leader, group leader's mark is then set in group member's label of this server node, if this server node is not group leader, then rank and file's mark is set in group member's label of this server node.
Fig. 1 shows the workflow of the construction method of the server cluster that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
The construction method of the described server cluster that the embodiment of the present invention provides, as shown in Figure 1, the construction method of described server cluster comprises steps A 1, steps A 2, steps A 3, steps A 4 and steps A 5.
Steps A 1, sets up a passage at channel layer, by described passage send add cluster-specific add incoming event.
It should be noted that, for the server cluster that book server node is accessible, the embodiment of the present invention in advance from one or more server clusters that accessible server cluster is selected, using the server cluster selected as described cluster-specific.
In embodiments of the present invention, in book server node, set the title of one or more cluster-specific in advance; If need book server node to add certain cluster-specific, then need correspondence establishment passage.If wish book server node to add multiple cluster-specific, then need to set up a passage respectively for each cluster-specific.
And then by a passage, can send add a cluster-specific add incoming event.
In embodiments of the present invention, each passage is based upon channel layer (i.e. channel layer).After treating to play a passage for the task creation adding a cluster-specific, trigger one by this passage and add incoming event, and this is added incoming event and be issued to group service layer (i.e. GMS layer); Add incoming event and trigger by this and add the request of cluster-specific.
In embodiments of the present invention, the group service layer of book server node (can comprise the server cluster accessed to each server cluster that book server node is accessible, with the server cluster do not accessed temporarily) add up, add up the title of each server cluster.
In addition, group service layer also can carry out information about firms statistics to each server cluster that book server node has accessed, comprise: this server zone concentrates the title (the HOST title as server node) of each server node, this server zone concentrates the physical address of each server node, and this server zone concentrates group member's label of each server node; Wherein, described group member's label comprises: whether this server node adds the information of this cluster of servers.If add this cluster of servers, described group member's label also records mark further; Particularly, if this server node is the group leader of cluster of servers, then the group leader that is designated of described group member's label record identifies; If this server node is not the group leader of cluster of servers, then the rank and file that is designated of described group member's label record identifies.
For each server cluster accessed, there is renewal the member of certain server cluster and (namely in this server cluster, newly inserted certain server node, or certain server node has exited from this server cluster) time, the group leader of this server cluster can upgrade members list; That is, if inserted certain server node at this server cluster, the information about firms (comprising the title of this server node, physical address and group member's label) of this server node has been inserted members list; If certain server node has exited from this server cluster, the information about firms (comprising the title of this server node, physical address and group member's label) of this server node is deleted from members list.After the group leader of this server cluster has upgraded members list at every turn, all can send the members list after upgrading to each member (server node in this server cluster).It should be noted that, if book server node is not the group leader of this server cluster, book server node can receive the members list (members list sent by the group leader of this server cluster) upgraded; If book server node is the group leader of this cluster of servers, by book server node updates members list, and send the members list after renewal to each member of this cluster of servers.
Steps A 2, when adding incoming event described in listening to, generates the searched events of searching the group member of described cluster-specific.
In embodiments of the present invention, server cluster that hope is added (described in add the server cluster that incoming event specifies), group service layer in book server node only learns the title (presetting) of this server cluster, and does not know the members list of this server cluster; Therefore can triggered step A2; By performing steps A 2, generate the searched events of searching the group member of described cluster-specific when adding incoming event described in listening to, group service layer issues this searched events through discovery layer to transport layer.
As a preferred embodiment, add a group at group service layer and search unit; Correspondingly, described generation when adding incoming event described in listening to searches this step of searched events of the group member of described cluster-specific, specifically comprise: described group search unit listen to described in add incoming event time, search unit by described group and generate and search the searched events of the group member of described cluster-specific.
In the preferred embodiment, add group at group service layer and search unit; The event that unit meeting real-time listening channel layer issues is searched by this group, if add incoming event described in listening to, then generates the searched events of the group member of described cluster-specific.If listen to other event (adding incoming event described in not being), then directly abandon this event or forward this event.
Described group is searched to the searched events of unit generation, group searches unit and this searched events can be sent to discovery layer, to be forwarded to transport layer, network layer, network interface layer successively; Broadcast searched events by network interface layer, to cluster-specific, also send this searched events to other server node.
As above preferred embodiment one execution mode, add one in discovery layer and search performance element; Accordingly, described broadcast this step of described searched events to multiple server node before, the construction method of described server cluster also comprises: described search performance element listen to described group search the described searched events that unit issues time, by described performance element of searching, described searched events is issued to transport layer.
In the present embodiment, discovery layer is between described group service layer and described transport layer.Add in discovery layer and search performance element and resolution unit.Search performance element when listening to described group and searching the described searched events that unit issues, this searched events can be forwarded to transport layer by resolution unit.
In addition, when certain server node have sent feedback event (being loaded with the information about firms such as physical address and group member's label of this server node) to this node server, after the network interface layer and network layer of this node server, the transport layer of this node server can detect this feedback event.And then, this feedback event can be sent to discovery layer by the transport layer of this node server, resolution unit in discovery layer can parse from this feedback event the information about firms (information about firms such as the physical address that this server node has and group member's label) such as physical address and group member's label that described feedback event specifies, and resolution unit sends the information about firms such as physical address and group member's label parsed to group service layer.And then the detecting unit be provided with in group service layer can judge (judging according to group member's label), and this server node belongs to cluster-specific.
Steps A 3, broadcasts described searched events to multiple server node.
In embodiments of the present invention, after described searched events is sent to transport layer by discovery layer, the transport layer protocol in ICP/IP protocol can be adopted to encapsulate this searched events, be packaged into message, this message is issued to network layer, to make network layer that this message is issued to network interface layer, the information broadcast of described searched events will be loaded with by network interface layer.In the embodiment of the invention, tunnel agreement is adopted to send the message being loaded with described searched events to multiple server node.In the embodiment of the invention, transmission control protocol (TransmissionControlProtocol, TCP) is adopted to be loaded with the message of described searched events to multiple server node clean culture.In the embodiment of the invention, User Datagram Protoco (UDP) (UserDatagramProtocol, UDP) is adopted to be loaded with the message of described searched events to multiple server node broadcast.
As one embodiment of the present invention, describedly broadcast this step of described searched events to multiple server node, be specially: adopt ip multicast technology (ip multicast bag is mail to some host groups of that be in Same Physical or virtual data link layer by IPMulticast) to broadcast described searched events with User Datagram Protoco (UDP) (UDP) to described server node.
In the preferred embodiment, broadcast described searched events by ip multicast technology (i.e. multi-address broadcast or multicast), allow book server node to send the TCP/IP network technology of same packet (being such as loaded with the message of described searched events) to multiple server node simultaneously.
Steps A 4, resolves described feedback event when often listening to a feedback event, and parses physical address and group member's label that described feedback event specifies, described feedback event by described server node to book server node feeding back.
In embodiments of the present invention, also added a feedback monitoring unit in discovery layer.
Treat that book server node is to after other server node (comprise designated group concentrate server node) broadcast, book server node waits for that other server node feeds back, and namely book server node is monitored feedback event; If the feedback monitoring unit of book server node listens to a feedback event, representative to send the server node of this feedback event and has received described searched events (by book server node broadcasts) and fed back, this feedback monitoring unit sends described feedback event to the resolution unit in discovery layer, described resolution unit is resolved feedback event, parses group member's information such as physical address and group member's label that described feedback event is specified.
In addition, also add at group service layer and have detecting unit.Treat that group member's information such as the physical address parsed and group member's label are sent to this detecting unit by described resolution unit, the steps A 5 that performs this detecting unit detects the group member whether server node with described group member's label is described cluster-specific, if this server node is the group member of described cluster-specific, detect further the group leader whether server node with described group member's label is described cluster-specific.
Steps A 5, detects described group member's label, if detect that group leader identifies from described group member's label, then adds described cluster-specific according to physical address to the server node application with described group leader mark.
In embodiments of the present invention, due to be to broadcast described searched events, therefore, respond the server node in the not necessarily described cluster-specific of this searched events, but this server node all can feed back a described feedback event after having responded described searched events.And then perform steps A 5, from described feedback event, parse described group member's label.
In embodiments of the present invention, described group member's label record has: whether the server node with group member's label is the group member of described cluster-specific, the server node with group member's label is the group member of which server cluster, the server node with group member's label is the rank and file of which server cluster (determining that this server node is the rank and file of which server cluster according to the rank and file's mark in group member's label), and whether the server node with group member's label is the group leader of some or multiple server cluster.If described group member's label also carries group leader's mark, determine that this server node is the group leader of which server cluster by this group leader mark.
In embodiments of the present invention, if in execution steps A 5, identified from described group member's label lookup to group leader, represent that the server node with group member's label is the group leader of described cluster-specific.If book server node wishes to add this cluster-specific, then needing the server node to having group leader's mark to send application, applying to become the rank and file of this cluster-specific.
As a preferred implementation, if determine the performance (as memory space and/or processing speed) of book server node than there is group leader mark server node more excellent, then the server node with group leader's mark is adjusted to rank and file's (mark being about to the server node with group leader's mark is adjusted to rank and file's mark), be group leader's (mark by book server node is adjusted to group leader's mark) by book server knot adjustment simultaneously.
Fig. 2 shows the workflow of a kind of optimization of the construction method of the server cluster that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
As one embodiment of the present invention, as shown in Figure 2, the construction method of described server cluster also comprises:
Steps A 6, if do not detect that described group leader identifies from described group member's label, then arranges group leader's mark in group member's label of described book server node.
In the preferred embodiment, owing to responding the server node in the not necessarily described cluster-specific of this searched events, but this server node all can feed back a described feedback event after having responded described searched events; And then described group member's label can be parsed from described feedback event.
And then for each server node feeding back described feedback event, according to the group member's label from described feedback event, each server node of feedback event described in decision-feedback is not all the group member of described cluster-specific; Or, from group member's label of described feedback event, do not find group leader's mark; All using the group leader of book server node as described cluster-specific.If other server node wishes to add described cluster-specific, all need to the application of described book server node.
Like this, when book server node detects the group leader of described cluster-specific according to group member's label, this book server node adds this cluster-specific to group leader's application of described cluster-specific.When book server node does not detect the group leader of described cluster-specific according to group member's label, by the group leader that book server node sets is described cluster-specific, other wishes that the server node adding described cluster-specific all needs, to the application of book server node, could successfully add described cluster-specific.
Fig. 3 shows another workflow optimized of the construction method of the server cluster that the embodiment of the present invention provides, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
As one embodiment of the invention, as shown in Figure 3, a physical address acquiring unit and a feedback unit is added respectively in described discovery layer;
Accordingly, the construction method of described server cluster also comprises:
Steps A 7, after described book server node adds described cluster-specific, if described physical address acquiring unit listens to the searched events that new server node sends, then extract the physical address of described book server node, sent the physical address of described book server node by described physical address acquiring unit to described feedback unit;
Steps A 8, is generated the feedback event comprising the physical address of described book server node and group member's label of described book server node by described feedback unit, to the feedback event that described new server node feedback generates.
In the preferred embodiment, when new server node wishes to add described cluster-specific, this new server node also can broadcast searched events, and then the discovery layer of book server node is listening to this searched events (new server node broadcast), the physical address of book server node can be obtained, send described physical address to feedback unit.Then, feedback unit generates the feedback event carrying the information about firms (comprising the title of book server node, physical address, group member's label etc.) of book server node, described feedback event is sent to described new server node, the resolution unit of described new server node can listen to this feedback event, parses the information about firms of book server node from this feedback event.
New server node is the same with the operation principle of book server node, the detection of described cluster-specific whether is belonged to by group member's label of detecting unit to book server node of new server node, and whether the group member's label detecting book server node comprises group leader's mark, if group member's label of book server node comprises group leader's mark, then new server node must add described cluster-specific to the application of book server node, if group member's label of book server node does not comprise group leader's mark, new server node must send to the server node with group leader's mark the request adding described cluster-specific, if new server node does not detect the server node with group leader's mark, then oneself is set to group leader by new server.
Those of ordinary skill in the art it is also understood that, the all or part of step realized in above-described embodiment method can have been come by program command and relevant hardware, described program can be stored in a computer read/write memory medium, described storage medium, comprises ROM/RAM, disk, CD etc.
It should be noted that, the construction method of the server cluster that the construction apparatus of the server cluster that the embodiment of the present invention provides and the embodiment of the present invention provide is suitable for mutually.
Fig. 4 shows the composition structure of the construction apparatus of the server cluster that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
The construction apparatus of the server cluster that the present embodiment provides, as shown in Figure 4, the construction apparatus of described server cluster comprises:
Channel unit 61, is located at channel layer, for setting up a passage, by described passage send add cluster-specific add incoming event;
Generation unit 62, for when adding incoming event described in listening to, generates the searched events of searching the group member of described cluster-specific;
Radio unit 63, for broadcasting described searched events to multiple server node;
Resolution unit 64, for resolving described feedback event when often listening to a feedback event, and parses the physical address and group member's label that described feedback event specifies, described feedback event by described server node to book server node feeding back;
Detecting unit 65, is located at group service layer, for detecting described group member's label;
Application unit 66, if detect that group leader identifies for described detecting unit from described group member's label, then adds described cluster-specific according to physical address to the server node application with described group leader mark.
Fig. 5 shows the one optimization composition structure of the construction apparatus of the server cluster that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
As a preferred embodiment, as shown in Figure 5, described generation unit 62 comprises:
Unit 621 is searched by group, is located at group service layer, specifically for when adding incoming event described in listening to, generates the searched events of searching the group member of described cluster-specific.
As an embodiment of this preferred embodiment, as shown in Figure 5, the construction apparatus of described server cluster also comprises:
Search performance element 67, be located at discovery layer, for when listening to described group and searching the described searched events that unit 621 issues, described searched events is issued to transport layer.
As one embodiment of the invention, described radio unit 63: be located at transport layer, broadcasts described searched events with User Datagram Protoco (UDP) (UDP) to described server node specifically for adopting ip multicast technology (IPMulticast).
Fig. 6 shows another optimization composition structure of the construction apparatus of the server cluster that the embodiment of the present invention provides, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
As a preferred embodiment, as shown in Figure 6, the construction apparatus of described server cluster also comprises:
Setting unit 68, if for not detecting that described group leader identifies from described group member's label, then arranges group leader's mark in group member's label of described book server node.
Fig. 7 shows another optimization composition structure of the construction apparatus of the server cluster that the embodiment of the present invention provides, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
As a preferred embodiment, as shown in Figure 7, the construction apparatus of described server cluster also comprises:
Physical address acquiring unit 69, be located at described discovery layer, after adding described cluster-specific at described book server node, if listen to the searched events that new server node sends, then extract the physical address of described book server node, send the physical address of described book server node to feedback unit 70;
Feedback unit 70, is located at described discovery layer, for generating the feedback event of group member's label of physical address and the described book server node comprising described book server node, to the feedback event that described new server node feedback generates.
The unit included by construction apparatus that it will be appreciated by those skilled in the art that the server cluster provided for the embodiment of the present invention just carries out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention; make some equivalent alternative or obvious modification without departing from the inventive concept of the premise; and performance or purposes identical, all should be considered as belonging to the scope of patent protection that the present invention is determined by submitted to claims.

Claims (12)

1. a construction method for server cluster, is characterized in that, the construction method of described server cluster comprises:
Set up a passage at channel layer, by described passage send add cluster-specific add incoming event;
When adding incoming event described in listening to, generate the searched events of searching the group member of described cluster-specific;
Described searched events is broadcasted to multiple server node;
Resolve described feedback event when often listening to a feedback event, and parse physical address and group member's label that described feedback event specifies, described feedback event by described server node to book server node feeding back;
Detect described group member's label, if detect that group leader identifies from described group member's label, then add described cluster-specific according to physical address to the server node application with described group leader mark.
2. the construction method of server cluster as claimed in claim 1, is characterized in that, add a group search unit at group service layer;
Described generation when adding incoming event described in listening to searches this step of searched events of the group member of described cluster-specific, specifically comprises:
Described group search unit listen to described in add incoming event time, search unit by described group and generate and search the searched events of the group member of described cluster-specific.
3. the construction method of server cluster as claimed in claim 2, is characterized in that, adds one search performance element in discovery layer;
Described broadcast this step of described searched events to multiple server node before, the construction method of described server cluster also comprises:
Described search performance element listen to described group search the described searched events that unit issues time, by described performance element of searching, described searched events is issued to transport layer.
4. the construction method of the server cluster as described in any one of claims 1 to 3, is characterized in that, describedly broadcasts this step of described searched events to multiple server node, is specially:
Ip multicast technology (IPMulticast) is adopted to broadcast described searched events with User Datagram Protoco (UDP) (UDP) to described server node.
5. the construction method of server cluster as claimed in claim 1, it is characterized in that, the construction method of described server cluster also comprises:
If do not detect that described group leader identifies from described group member's label, then group leader's mark is set in group member's label of described book server node.
6. the construction method of the server cluster as described in claim 1 or 5, is characterized in that, adds a physical address acquiring unit and a feedback unit respectively in described discovery layer;
The construction method of described server cluster also comprises:
After described book server node adds described cluster-specific, if described physical address acquiring unit listens to the searched events that new server node sends, then extract the physical address of described book server node, sent the physical address of described book server node by described physical address acquiring unit to described feedback unit;
The feedback event comprising the physical address of described book server node and group member's label of described book server node is generated, to the feedback event that described new server node feedback generates by described feedback unit.
7. a construction apparatus for server cluster, is characterized in that, the construction apparatus of described server cluster comprises:
Channel unit, is located at channel layer, for setting up a passage, by described passage send add cluster-specific add incoming event;
Generation unit, for when adding incoming event described in listening to, generates the searched events of searching the group member of described cluster-specific;
Radio unit, for broadcasting described searched events to multiple server node;
Resolution unit, for resolving described feedback event when often listening to a feedback event, and parses the physical address and group member's label that described feedback event specifies, described feedback event by described server node to book server node feeding back;
Detecting unit, is located at group service layer, for detecting described group member's label;
Application unit, if detect that group leader identifies for described detecting unit from described group member's label, then adds described cluster-specific according to physical address to the server node application with described group leader mark.
8. the construction apparatus of server cluster as claimed in claim 7, it is characterized in that, described generation unit comprises:
Unit is searched by group, is located at group service layer, specifically for when adding incoming event described in listening to, generates the searched events of searching the group member of described cluster-specific.
9. the construction apparatus of server cluster as claimed in claim 8, it is characterized in that, the construction apparatus of described server cluster also comprises:
Search performance element, be located at discovery layer, for when listening to described group and searching the described searched events that unit issues, described searched events is issued to transport layer.
10. the construction apparatus of the server cluster as described in as arbitrary in claim 7 to 9, is characterized in that, described radio unit:
Being located at transport layer, specifically for adopting ip multicast technology (IPMulticast), broadcasting described searched events with User Datagram Protoco (UDP) (UDP) to described server node.
The construction apparatus of 11. server clusters as claimed in claim 6, it is characterized in that, the construction apparatus of described server cluster also comprises:
Setting unit, if for not detecting that described group leader identifies from described group member's label, then arranges group leader's mark in group member's label of described book server node.
The construction apparatus of 12. server clusters as described in claim 7 or 11, it is characterized in that, the construction apparatus of described server cluster also comprises:
Physical address acquiring unit, be located at described discovery layer, after adding described cluster-specific at described book server node, if listen to the searched events that new server node sends, then extract the physical address of described book server node, send the physical address of described book server node to feedback unit;
Described feedback unit, is located at described discovery layer, for generating the feedback event of group member's label of physical address and the described book server node comprising described book server node, to the feedback event that described new server node feedback generates.
CN201410410339.9A 2014-08-19 2014-08-19 Method and device for establishing server cluster Active CN105450686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410410339.9A CN105450686B (en) 2014-08-19 2014-08-19 Method and device for establishing server cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410410339.9A CN105450686B (en) 2014-08-19 2014-08-19 Method and device for establishing server cluster

Publications (2)

Publication Number Publication Date
CN105450686A true CN105450686A (en) 2016-03-30
CN105450686B CN105450686B (en) 2019-12-13

Family

ID=55560460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410410339.9A Active CN105450686B (en) 2014-08-19 2014-08-19 Method and device for establishing server cluster

Country Status (1)

Country Link
CN (1) CN105450686B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559332A (en) * 2016-11-03 2017-04-05 Tcl集团股份有限公司 A kind of method and system of fast assembling full-mesh server cluster
CN106790624A (en) * 2016-12-30 2017-05-31 Tcl集团股份有限公司 New node adds the method and device of server cluster
CN107087032A (en) * 2017-05-11 2017-08-22 腾讯科技(深圳)有限公司 Realize the method and apparatus that cluster is set up
CN109194513A (en) * 2018-09-10 2019-01-11 四川长虹电器股份有限公司 A kind of method of API gateway Intellisense cluster
CN111274081A (en) * 2018-12-04 2020-06-12 中国移动通信集团浙江有限公司 Server running state monitoring method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010047421A1 (en) * 1997-07-01 2001-11-29 Sitara Networks, Inc. A Delaware Corporation Enhanced network communication
CN101013960A (en) * 2007-02-12 2007-08-08 华为技术有限公司 Method and apparatus for obtaining physical address of Ethernet node
CN101720064A (en) * 2009-11-24 2010-06-02 深圳市戴文科技有限公司 Communication device, service terminal and method and system for automatically building PTT group

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010047421A1 (en) * 1997-07-01 2001-11-29 Sitara Networks, Inc. A Delaware Corporation Enhanced network communication
CN101013960A (en) * 2007-02-12 2007-08-08 华为技术有限公司 Method and apparatus for obtaining physical address of Ethernet node
CN101720064A (en) * 2009-11-24 2010-06-02 深圳市戴文科技有限公司 Communication device, service terminal and method and system for automatically building PTT group

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
肖永: "集群化软件架构的研究与设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559332A (en) * 2016-11-03 2017-04-05 Tcl集团股份有限公司 A kind of method and system of fast assembling full-mesh server cluster
CN106559332B (en) * 2016-11-03 2020-08-18 Tcl科技集团股份有限公司 Method and system for quickly establishing fully-connected server cluster
CN106790624A (en) * 2016-12-30 2017-05-31 Tcl集团股份有限公司 New node adds the method and device of server cluster
CN107087032A (en) * 2017-05-11 2017-08-22 腾讯科技(深圳)有限公司 Realize the method and apparatus that cluster is set up
CN107087032B (en) * 2017-05-11 2018-09-11 腾讯科技(深圳)有限公司 Realize the method and apparatus that cluster is set up
CN109194513A (en) * 2018-09-10 2019-01-11 四川长虹电器股份有限公司 A kind of method of API gateway Intellisense cluster
CN111274081A (en) * 2018-12-04 2020-06-12 中国移动通信集团浙江有限公司 Server running state monitoring method and device

Also Published As

Publication number Publication date
CN105450686B (en) 2019-12-13

Similar Documents

Publication Publication Date Title
US7801068B2 (en) Selectively receiving data in a multicast environment
CN105450686A (en) Method and device for establishing server cluster
US9264305B2 (en) Constructing a network enabling layer-2 interconnection of data centers
CN105656680B (en) Network camera control method and device
CN101605103B (en) Method and apparatus for static forwarding multicast data
US20090190587A1 (en) Method for deploying multicast network, multicast network and control server
US9306758B2 (en) Dynamic adjustment of MLDP tunnel and PIM binding
CN102694664B (en) Multicast method and multicast equipment
CN107645386B (en) Method and device for acquiring data resources
CN104509073A (en) Discovering ip multicast group memberships in software defined networks
CN105553977A (en) Request message processing and transmitting method and device
WO2019062515A1 (en) Multicast forwarding method and multicast router
US20140241351A1 (en) Dynamic determination of the root node of an mldp tunnel
US20120155277A1 (en) Multicast flow monitoring
EP3451585B1 (en) Auto-configuring multicast protocol parameters of a network device
US11171796B2 (en) Managing multicast scaling
JP4463277B2 (en) Service relay inter-subnet multicast-A cross-subnet multicast solution independent of the network infrastructure
CN105897758A (en) Container access control method and device
CN108667735B (en) Method and device for forwarding multicast data
CN102437960A (en) Detection processing method and system of cluster mode, and network equipment
CN104469315A (en) CDN-based video data stream transmission method, device and system
WO2016061974A1 (en) Method for processing application software in san storage system, server, host and system
CN102355358B (en) Method and device for realizing multicast
CN106789655B (en) Method and device for sending route announcement message
JP2012533959A (en) Effective host management protocol for multicast routers

Legal Events

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