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

Method and device for establishing server cluster Download PDF

Info

Publication number
CN105450686B
CN105450686B CN201410410339.9A CN201410410339A CN105450686B CN 105450686 B CN105450686 B CN 105450686B CN 201410410339 A CN201410410339 A CN 201410410339A CN 105450686 B CN105450686 B CN 105450686B
Authority
CN
China
Prior art keywords
event
server
cluster
server node
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.)
Active
Application number
CN201410410339.9A
Other languages
Chinese (zh)
Other versions
CN105450686A (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 is suitable for the field of server clusters, and provides a method and a device for establishing a server cluster; establishing a channel on a channel layer, and sending a joining event for joining a specified cluster through the channel; when the joining event is monitored, generating a searching event for searching the members of the designated cluster; broadcasting the lookup event to a plurality of server nodes; when a feedback event is monitored, analyzing the feedback event, and analyzing a physical address and a member tag specified by the feedback event, wherein the feedback event is fed back to the server node by the server node; detecting the member label, and applying for joining the designated cluster to the server node with the group leader identification according to a physical address if the group leader identification is detected from the member label; and the server node with the group leader identification adds the server node into the designated cluster.

Description

Method and device for establishing server cluster
Technical Field
The invention belongs to the field of server clusters, and particularly relates to a method and a device for establishing a server cluster.
Background
the server cluster is a cluster in which a plurality of server nodes are integrated to provide the same service. The server cluster can utilize a plurality of server nodes to perform parallel computation, so that high computation speed is obtained; one or more server nodes can also be used for backup, so that the server cluster is ensured not to be disconnected and to provide services safely, stably and reliably.
in the prior art, a server cluster is built, and is usually implemented based on a User Datagram Protocol (UDP) or a Transmission Control Protocol (TCP) of a TCP/IP Protocol. Taking the implementation of the TCP protocol as an example, when a new server node requests to join a certain server cluster, the TCP protocol is used to send a request to join the server cluster to other server nodes of the same cluster in a unicast manner, and a data packet can accurately reach the other side, but the consumed flow is more. The UDP protocol is realized by adopting an IP Multicast technology (IP Multicast) to broadcast a request for joining the server cluster to other server nodes of the same cluster, thereby saving the flow and being suitable for building the server cluster in the local area network.
Disclosure of Invention
the invention aims to provide a method and a device for establishing a server cluster, and provides a mode for joining the server cluster.
in a first aspect, the present invention provides a method for establishing a server cluster, where the method for establishing a server cluster includes:
Establishing a channel on a channel layer, and sending a joining event for joining a specified cluster through the channel;
When the joining event is monitored, generating a searching event for searching the members of the designated cluster;
broadcasting the lookup event to a plurality of server nodes;
When a feedback event is monitored, analyzing the feedback event, and analyzing a physical address and a member tag specified by the feedback event, wherein the feedback event is fed back to the server node by the server node;
And detecting the member label, and applying for joining the specified cluster to the server node with the group leader identification according to a physical address if the group leader identification is detected from the member label.
In a second aspect, the present invention provides a server cluster building apparatus, where the server cluster building apparatus includes:
the channel unit is arranged on a channel layer and used for establishing a channel and sending a joining event for joining the specified cluster through the channel;
the generating unit is used for generating a searching event for searching the members of the specified cluster when the joining event is monitored;
a broadcasting unit, configured to broadcast the search event to a plurality of server nodes;
The analysis unit is used for analyzing the feedback event when each feedback event is monitored, and analyzing a physical address and a member tag specified by the feedback event, wherein the feedback event is fed back to the server node by the server node;
The detection unit is arranged on the group service layer and used for detecting the member label;
and the application unit is used for applying for joining the specified cluster to the server node with the group leader identifier according to the physical address if the detection unit detects the group leader identifier from the group member tag.
the invention has the beneficial effects that: when wishing to join the appointed cluster, establishing a channel, sending a joining event joining the appointed cluster through the channel, further generating a searching event by the group service layer when monitoring the joining event, and broadcasting the searching event; and then analyzing the member labels in the feedback event according to the received feedback event, searching whether a group leader identifier exists, and applying for joining the specified cluster to the server node with the group leader identifier if the group leader identifier exists.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for establishing a server cluster according to an embodiment of the present invention;
Fig. 2 is an optimization workflow diagram of a method for building a server cluster according to an embodiment of the present invention;
Fig. 3 is a flowchart of still another optimization work of a method for building a server cluster according to an embodiment of the present invention;
Fig. 4 is a composition structure of a server cluster building apparatus according to an embodiment of the present invention;
Fig. 5 is an optimized composition structure of a server cluster building apparatus according to an embodiment of the present invention;
Fig. 6 is a further optimized component structure of a server cluster building apparatus according to an embodiment of the present invention;
fig. 7 is still another optimized component structure of a server cluster building apparatus according to an embodiment of the present invention.
Detailed Description
in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
In the embodiment of the present invention, each server node may be a member of a plurality of server clusters. It should be noted that, for each server cluster, a group length is determined from all the group members in the server cluster. For a certain server node in the server cluster, if the server node is the group leader, a group leader identifier is set in the group member label of the server node, and if the server node is not the group leader, a common member identifier is set in the group member label of the server node.
Fig. 1 illustrates a workflow of a method for building a server cluster according to an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is illustrated.
As shown in fig. 1, the method for establishing a server cluster provided in the embodiment of the present invention includes a step a1, a step a2, a step A3, a step a4, and a step a 5.
step a1, a channel is established at the channel layer, through which a join event is issued to join a specified cluster.
It should be noted that, for a server cluster accessible to the server node, in the embodiment of the present invention, one or more server clusters selected in advance from the accessible server clusters are used, and the selected server cluster is used as the designated cluster.
In the embodiment of the invention, the names of one or more appointed clusters are preset in the server node; if the server node needs to be added into a certain designated cluster, a channel needs to be correspondingly established. If the server node is expected to be added into a plurality of designated clusters, a channel needs to be established for each designated cluster.
and through a channel, a join event for joining a specified cluster can be issued.
In the embodiment of the present invention, each channel is established in a channel layer (i.e., channel layer). After a channel is established for a task joining a designated cluster, a joining event is triggered through the channel and is sent to a group service layer (namely GMS layer); the request to join the specified cluster is triggered by the join event.
In the embodiment of the present invention, the group service layer of the server node may perform statistics on each server cluster (including an accessed server cluster and a server cluster that is not accessed temporarily) that the server node can access, and perform statistics on the name of each server cluster.
in addition, the group service layer also performs member information statistics on each server cluster accessed by the server node, including: a name of each server node in the server cluster (e.g., the HOST name of the server node), a physical address of each server node in the server cluster, and a panelist tag for each server node in the server cluster; wherein the panelist tag includes: information whether the server node joined the server cluster. If the server cluster is added, the member tag further records an identifier; specifically, if the server node is the group leader of the server cluster, the identifier of the group member tag record is the group leader identifier; and if the server node is not the group leader of the server cluster, the identifier of the member tag record is a common member identifier.
for each server cluster which is accessed, when the member of a certain server cluster has update (namely a certain server node is newly added in the certain server cluster or a certain server node is withdrawn from the certain server cluster), the group leader of the certain server cluster updates the member list; that is, if a certain server node is added to the server cluster, the member information of the server node (including the name, physical address and group member tag of the server node) is added to the member list; if a server node exits from the server cluster, the member information of the server node (including the name, physical address and group member tag of the server node) is deleted from the member list. Each time the group leader of the server cluster updates the member list, the updated member list is sent to each member (server node in the server cluster). It should be noted that, if the server node is not the group leader of the server cluster, the server node receives the updated member list (the member list sent by the group leader of the server cluster); if the server node is the group leader of the server cluster, the server node updates the member list and sends the updated member list to each member of the server cluster.
Step A2, when the joining event is monitored, generating a searching event for searching the members of the specified cluster.
In the embodiment of the present invention, for a server cluster that wants to join (a server cluster specified by the joining event), the group service layer in the server node only knows the name of the server cluster (which is preset), but does not know the member list of the server cluster; thus triggering step a 2; by executing step a2, a search event for searching the group member of the designated cluster is generated when the join event is monitored, and the group service layer issues the search event to the transport layer through the discovery layer.
As a preferred embodiment, a group search unit is added in the group service layer; correspondingly, the step of generating a search event for searching the members of the designated cluster when the join event is monitored specifically includes: and when the group searching unit monitors the joining event, the group searching unit generates a searching event for searching the members of the specified cluster.
In the preferred embodiment, a group search unit is added to the group service layer; the group searching unit monitors events issued by a channel layer in real time, and if the joining event is monitored, the group searching unit generates searching events of the members of the designated group. If other events are heard (not the join event), the event is either discarded directly or forwarded.
For the search event generated by the group search unit, the group search unit sends the search event to the discovery layer so as to forward the search event to the transmission layer, the network layer and the network interface layer in sequence; and broadcasting the search event through the network interface layer, and sending the search event to the designated cluster and other server nodes.
As an implementation manner of the above preferred embodiment, a search execution unit is added in the discovery layer; correspondingly, before the step of broadcasting the search event to the plurality of server nodes, the method for building a server cluster further includes: and when the search execution unit monitors the search event issued by the group search unit, the search execution unit issues the search event to a transmission layer.
in this embodiment, a discovery layer is located between the group service layer and the transport layer. A search execution unit and a parsing unit are added in the discovery layer. When monitoring the search event issued by the group search unit, the search execution unit forwards the search event to the transport layer through the analysis unit.
In addition, when a certain server node sends a feedback event (carrying member information such as a physical address and a group member tag of the server node) to the node server, after passing through a network interface layer and a network layer of the node server, a transport layer of the node server detects the feedback event. Furthermore, the transport layer of the node server sends the feedback event to the discovery layer, the parsing unit in the discovery layer parses the member information such as the physical address and the member tag specified by the feedback event (the member information such as the physical address and the member tag of the server node) from the feedback event, and the parsing unit sends the parsed member information such as the physical address and the member tag to the group service layer. Furthermore, the detection unit provided in the group service layer can determine (according to the panelist tag) that the server node belongs to the designated cluster.
step a3, broadcasting the lookup event to a plurality of server nodes.
In the embodiment of the present invention, after the discovery layer sends the search event to the transport layer, the transport layer protocol in the TCP/IP protocol may be used to encapsulate the search event, and encapsulate the search event into a message, and send the message to the network layer, so that the network layer sends the message to the network interface layer, and the network interface layer broadcasts the message carrying the search event. In a specific embodiment of the present invention, a tunnel protocol is used to send a message carrying the lookup event to a plurality of server nodes. In a specific embodiment of the present invention, a Transmission Control Protocol (TCP) is used to unicast a message carrying the search event to a plurality of server nodes. In a specific embodiment of the present invention, a User Datagram Protocol (UDP) is used to broadcast a message carrying the search event to a plurality of server nodes.
as a preferred embodiment of the present invention, the step of broadcasting the search event to a plurality of server nodes specifically includes: and broadcasting the search event to the server node by using a User Datagram Protocol (UDP) by adopting an IP Multicast technology (IP Multicast, which sends an IP Multicast packet to a plurality of host groups on the same physical or virtual data link layer).
In the preferred embodiment, the lookup event is broadcast by an IP multicast technique (i.e., multicast or multicast), which allows the server node to send the same packet (e.g., a message carrying the lookup event) to multiple server nodes simultaneously.
step A4, when a feedback event is monitored, the feedback event is resolved, and a physical address and a member tag specified by the feedback event are resolved, and the feedback event is fed back to the server node by the server node.
in the embodiment of the invention, a feedback monitoring unit is also added in the discovery layer.
After the server node broadcasts to other server nodes (including server nodes in a designated cluster), the server node waits for feedback of other server nodes, namely the server node monitors a feedback event; if the feedback monitoring unit of the server node monitors a feedback event, the server node sending the feedback event receives and feeds back the search event (broadcasted by the server node), the feedback monitoring unit sends the feedback event to the analysis unit in the discovery layer, and the analysis unit analyzes the feedback event and analyzes the group member information such as the physical address and the group member label specified by the feedback event.
in addition, a detection unit is added on the group service layer. When the analyzing unit sends the analyzed member information such as the physical address and the member tag to the detecting unit, the detecting unit executes step a5 to detect whether the server node with the member tag is the member of the designated cluster, and if the server node is the member of the designated cluster, further detects whether the server node with the member tag is the group leader of the designated cluster.
Step A5, detecting the group member label, if detecting the group length identification from the group member label, applying for joining the appointed cluster to the server node with the group length identification according to the physical address.
in the embodiment of the present invention, since the search event is broadcasted, the server node responding to the search event is not necessarily the server node in the designated cluster, but the server node feeds back one feedback event after responding to the search event. And executing a step A5 to resolve the panelist tag from the feedback event.
in the embodiment of the present invention, the panelist tag records: whether the server node with the member label is a member of the designated cluster, which server clusters the server node with the member label is a common member (determining which server cluster the server node is a common member according to the common member identification in the member label), and whether the server node with the member label is a group leader of one or more server clusters. And if the group member label also carries a group leader identifier, determining the group leader of which server cluster the server node belongs to by the group leader identifier.
In this embodiment of the present invention, if in step a5, the group leader identifier is found from the group member tag, which indicates that the server node having the group member tag is the group leader of the specified cluster. If the server node wants to join the designated cluster, an application needs to be sent to the server node with the group leader identifier, and the application becomes a common member of the designated cluster.
as a preferred embodiment, if it is determined that the performance (e.g., storage space and/or processing speed) of the server node is better than that of the server node having the group leader identifier, the server node having the group leader identifier is adjusted to be a normal member (i.e., the identifier of the server node having the group leader identifier is adjusted to be a normal member identifier), and the server node is adjusted to be the group leader (i.e., the identifier of the server node is adjusted to be the group leader identifier).
fig. 2 illustrates an optimized workflow of a method for building a server cluster according to an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is illustrated.
as a preferred embodiment of the present invention, as shown in fig. 2, the method for establishing a server cluster further includes:
step a6, if the group leader id is not detected from the group member tag, setting a group leader id in the group member tag of the server node.
in the preferred embodiment, since it is not necessary that the server node in the designated cluster responds to the search event, the server node will feed back one feedback event after responding to the search event; the panelist tag may then be parsed from the feedback event.
Further, for each server node which has fed back the feedback event, according to the member tag of the feedback event, determining that each server node which has fed back the feedback event is not a member of the designated cluster; or the group leader identifier is not searched from the group member label of the feedback event; the server node is taken as the group leader of the designated cluster. If other server nodes wish to join the designated cluster, the request is required to be applied to the server node.
Therefore, when the server node detects the group leader of the specified cluster according to the group member label, the server node applies for the group leader of the specified cluster to join the specified cluster. When the server node does not detect the group length of the designated cluster according to the member label, the server node is set as the group length of the designated cluster, and other server nodes which want to join the designated cluster need to apply for the server node to successfully join the designated cluster.
fig. 3 illustrates a further optimized workflow of a method for building a server cluster according to an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown.
as an embodiment of the present invention, as shown in fig. 3, a physical address obtaining unit and a feedback unit are respectively added to the discovery layer;
correspondingly, the method for establishing the server cluster further comprises the following steps:
Step a7, after the server node joins the designated cluster, if the physical address obtaining unit monitors a search event sent by a new server node, extracting the physical address of the server node, and the physical address obtaining unit sends the physical address of the server node to the feedback unit;
step A8, the feedback unit generates a feedback event including the physical address of the local server node and the panelist tag of the local server node, and feeds back the generated feedback event to the new server node.
In the preferred embodiment, when a new server node wishes to join the designated cluster, the new server node also broadcasts a search event, and the discovery layer of the server node monitors the search event (broadcasted by the new server node), acquires the physical address of the server node, and sends the physical address to the feedback unit. Then, the feedback unit generates a feedback event carrying member information of the server node (including a name, a physical address, a group member tag, and the like of the server node), and sends the feedback event to the new server node, and the analysis unit of the new server node monitors the feedback event and analyzes the member information of the server node from the feedback event.
The new server node is the same as the working principle of the server node, the detection unit of the new server node detects whether the member label of the server node belongs to the appointed cluster or not and detects whether the member label of the server node comprises the group length identification or not, if the member label of the server node comprises the group length identification, the new server node needs to apply for joining the appointed cluster to the server node, if the member label of the server node does not comprise the group length identification, the new server node needs to send a request for joining the appointed cluster to the server node with the group length identification, and if the new server node does not detect the server node with the group length identification, the new server node sets itself as the group length.
It will also be apparent to those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by program instructions and associated hardware, and that the program may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc.
It should be noted that the server cluster building apparatus provided in the embodiment of the present invention and the server cluster building method provided in the embodiment of the present invention are applicable to each other.
Fig. 4 shows a composition structure of a server cluster building apparatus provided in an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown.
As shown in fig. 4, the apparatus for building a server cluster provided in this embodiment includes:
The channel unit 61 is arranged on a channel layer and used for establishing a channel and sending a joining event for joining the specified cluster through the channel;
a generating unit 62, configured to generate a search event for searching the members of the designated cluster when the join event is monitored;
a broadcasting unit 63, configured to broadcast the search event to a plurality of server nodes;
The parsing unit 64 is configured to parse a feedback event every time a feedback event is monitored, and parse a physical address and a member tag specified by the feedback event, where the feedback event is fed back to the server node by the server node;
A detection unit 65, disposed in the group service layer, for detecting the panelist tag;
an applying unit 66, configured to apply for joining the designated cluster to the server node having the group leader identifier according to the physical address if the detecting unit detects the group leader identifier from the group member tag.
fig. 5 shows an optimized component structure of a server cluster building apparatus provided in an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown.
As a preferred embodiment, as shown in fig. 5, the generating unit 62 includes:
the group searching unit 621 is disposed in the group service layer, and is specifically configured to generate a search event for searching the members of the designated cluster when the join event is monitored.
as a specific implementation manner of the preferred embodiment, as shown in fig. 5, the apparatus for building a server cluster further includes:
The search execution unit 67 is disposed in the discovery layer, and configured to issue the search event to the transmission layer when the search event issued by the group search unit 621 is monitored.
As an embodiment of the present invention, the broadcasting unit 63: and the transmission layer is specifically configured to broadcast the search event to the server node by using a User Datagram Protocol (UDP) using an IP Multicast technology (IP Multicast).
fig. 6 shows another optimized component structure of a server cluster building apparatus provided in an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown.
As a preferred embodiment, as shown in fig. 6, the apparatus for building a server cluster further includes:
A setting unit 68, configured to set a group leader identifier in the group member tag of the server node if the group leader identifier is not detected from the group member tag.
Fig. 7 shows another optimized component structure of a server cluster building apparatus provided in an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown.
As a preferred embodiment, as shown in fig. 7, the apparatus for building a server cluster further includes:
a physical address obtaining unit 69, provided in the discovery layer, configured to, after the local server node joins the specified cluster, if a search event sent by a new server node is monitored, extract a physical address of the local server node, and send the physical address of the local server node to the feedback unit 70;
A feedback unit 70, disposed in the discovery layer, configured to generate a feedback event including the physical address of the local server node and the panelist tag of the local server node, and feed back the generated feedback event to the new server node.
Those skilled in the art can understand that each unit included in the server cluster building apparatus provided in the embodiment of the present invention is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several equivalent substitutions or obvious modifications, which are equivalent in performance or use, without departing from the inventive concept, should be considered as falling within the scope of the present invention as defined by the appended claims.

Claims (10)

1. a method for building a server cluster is characterized in that the method for building the server cluster comprises the following steps:
Establishing a channel on a channel layer, and sending a joining event for joining a specified cluster through the channel, wherein the channel is established for a task joining the specified cluster;
when the joining event is monitored, generating a searching event for searching the members of the designated cluster;
broadcasting the search event of the group member searching the designated cluster to a plurality of server nodes; wherein, not all the nodes responding to the search event are the server nodes in the designated cluster, but the server nodes all feed back a feedback event after responding to the search event;
analyzing the feedback event when one feedback event is monitored, and analyzing a physical address and a member tag appointed by the feedback event; the feedback event is fed back to the server node by the server node;
Detecting the member label, and if a member identification is detected from the member label of the feedback event, applying for joining the designated cluster to the server node with the member identification according to a physical address; and if the group leader identification is not detected from the group member labels of the feedback events, setting the group leader identification in the group member labels of the server nodes.
2. The method of claim 1, wherein a group search unit is added in a group service layer;
The step of generating a search event for searching the group member of the designated cluster when the join event is monitored specifically includes:
And when the group searching unit monitors the joining event, the group searching unit generates a searching event for searching the members of the specified cluster.
3. the method of claim 2, wherein a lookup execution unit is added to the discovery layer;
before the step of broadcasting the search event to the plurality of server nodes, the method for building a server cluster further includes:
And when the search execution unit monitors the search event issued by the group search unit, the search execution unit issues the search event to a transmission layer.
4. A method for establishing a server cluster according to any one of claims 1 to 3, wherein the step of broadcasting the search event to a plurality of server nodes is specifically:
Broadcasting the lookup event to the server node using an IP Multicast technology (IP Multicast) over a User Datagram Protocol (UDP).
5. The method for building a server cluster according to claim 3, wherein a physical address acquisition unit and a feedback unit are respectively added to the discovery layer;
The method for establishing the server cluster further comprises the following steps:
after the local server node joins the designated cluster, if the physical address acquisition unit monitors a search event sent by a new server node, extracting the physical address of the local server node, and sending the physical address of the local server node to the feedback unit by the physical address acquisition unit;
and generating a feedback event comprising the physical address of the local server node and the member label of the local server node by the feedback unit, and feeding back the generated feedback event to the new server node.
6. An apparatus for building a server cluster, the apparatus comprising:
the system comprises a channel unit, a task unit and a task processing unit, wherein the channel unit is arranged on a channel layer and used for establishing a channel and sending a joining event for joining a specified cluster through the channel, and the channel is established for a task joining the specified cluster;
the generating unit is used for generating a searching event for searching the members of the specified cluster when the joining event is monitored;
a broadcasting unit, configured to broadcast, to a plurality of server nodes, a search event of the group member searching for the designated cluster; wherein, it is not necessary that the server node in the designated cluster responds to the search event, but the server node will feed back a feedback event after responding to the search event;
The analysis unit is used for analyzing the feedback event when one feedback event is monitored, and analyzing a physical address and a member tag specified by the feedback event; the feedback event is fed back to the server node by the server node;
The detection unit is arranged on the group service layer and used for detecting the member label;
The application unit is used for applying for joining the specified cluster to the server node with the group leader identifier according to a physical address if the detection unit detects the group leader identifier from the group member tag of the feedback event;
And the setting unit is used for setting the group leader identifier in the group member label of the server node if the group leader identifier is not detected from the group member label of the feedback event.
7. the apparatus for building a server cluster according to claim 6, wherein the generating unit comprises:
And the group searching unit is arranged on the group service layer and is specifically used for generating a searching event for searching the members of the specified cluster when the joining event is monitored.
8. The apparatus for building a server cluster according to claim 7, wherein the apparatus for building a server cluster further comprises:
And the searching execution unit is arranged on the discovery layer and used for issuing the searching event to the transmission layer when monitoring the searching event issued by the group searching unit.
9. The apparatus for building a server cluster according to any one of claims 6 to 8, wherein the broadcasting unit:
And the transmission layer is specifically configured to broadcast the search event to the server node by using a User Datagram Protocol (UDP) using an IP Multicast technology (IP Multicast).
10. the apparatus for building a server cluster according to claim 8, wherein the apparatus for building a server cluster further comprises:
A physical address obtaining unit, disposed in the discovery layer, and configured to, after the local server node joins the designated cluster, extract a physical address of the local server node if a search event sent by a new server node is monitored, and send the physical address of the local server node to a feedback unit;
The feedback unit is arranged in the discovery layer and is used for generating a feedback event comprising the physical address of the server node and the member label of the server node and feeding back the generated feedback event to the new server node.
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 CN105450686A (en) 2016-03-30
CN105450686B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6098108A (en) * 1997-07-02 2000-08-01 Sitara Networks, Inc. Distributed directory for enhanced network communication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
集群化软件架构的研究与设计;肖永;《中国优秀硕士学位论文全文数据库 信息科技辑》;20131215;正文第2.5、3.1、4.2节 *

Also Published As

Publication number Publication date
CN105450686A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN105450686B (en) Method and device for establishing server cluster
US20210152443A1 (en) Technologies for annotating process and user information for network flows
US9608841B2 (en) Method for real-time synchronization of ARP record in RSMLT cluster
US20110320870A1 (en) Collecting network-level packets into a data structure in response to an abnormal condition
CN110191000B (en) Data processing method, message tracking monitoring method and distributed system
US10346272B2 (en) Failure management for data streaming processing system
CN107645386B (en) Method and device for acquiring data resources
CN111008109B (en) Monitoring data processing method and device, electronic equipment and storage medium
EP3364627B1 (en) Adaptive session intelligence extender
WO2014049804A1 (en) System operation trace method in distributed system
US20200057768A1 (en) Unique identification generation for records in a data streaming processing system
US10374933B2 (en) Systems and methods for monitoring operational statuses of network services
JP2012512470A (en) Data file decoding method, decoding apparatus, and data broadcast system
CN110602171B (en) Interaction method and device
CN114024972A (en) Long connection communication method, system, device, equipment and storage medium
US10205767B2 (en) Management system and method for a big data processing device
CN114222086B (en) Method, system, medium and electronic device for scheduling audio and video code stream
CN109286684B (en) Communication connection processing method and device, proxy server and storage medium
WO2015154416A1 (en) Internet access behaviour management method and device
CN108667735B (en) Method and device for forwarding multicast data
US10530823B2 (en) Network stream processing to ensuring a guarantee that each record is accounted for exactly once
WO2014153843A1 (en) Classification method, device and system for digital television users
US9609085B2 (en) Broadcast-based update management
CN105721885B (en) Method, device and system for processing transcoding data
CN110602172B (en) Link identification generation method and device

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