CN-122027467-A - Cluster networking method and device, electronic equipment and storage medium
Abstract
The present disclosure provides a cluster networking method and device, an electronic device, and a storage medium, where the method includes that under a condition that a service node requests to join a cluster network of a server cluster, communication connection is established with an entry positioning bus according to first communication information of the entry positioning bus of the server cluster; and establishing communication connection with the working network management node according to the second communication information so as to join the cluster network. According to the embodiment of the invention, the flexibility and maintainability of cluster networking processing can be improved.
Inventors
- Request for anonymity
Assignees
- 摩尔线程智能科技(北京)股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260413
Claims (20)
- 1. A method for cluster networking, applied to service nodes in a server cluster, comprising: under the condition that the service node requests to join in a cluster network of the server cluster, establishing communication connection with an entrance positioning bus according to first communication information of the entrance positioning bus of the server cluster; Based on the entrance positioning bus, acquiring second communication information of a working network management node of the cluster network, wherein the working network management node is used for performing network access authentication processing on the service node; And establishing communication connection with the working network management node according to the second communication information so as to join the cluster network.
- 2. The method according to claim 1, wherein the obtaining, based on the ingress positioning bus, second communication information of the working network management node of the cluster network includes: receiving the second communication information broadcasted by the working network management node according to a first preset period from the entrance positioning bus, and/or, And sending an information acquisition request to the entrance positioning bus, and acquiring the second communication information under the condition that a response message of the working network management node for the information acquisition request is received from the entrance positioning bus.
- 3. The method according to claim 1, wherein the method further comprises: Under the condition that communication connection is not successfully established between the second communication information and the working network management node, judging that the working network management node is abnormal, and acquiring the communication information of a new working network management node again based on the entry positioning bus; the new working network management node comprises a network management node obtained after the corresponding backup network management node executes master-slave switching processing under the condition that the working network management node is abnormal; And adding the network management node into the cluster network based on the communication information of the new working network management node.
- 4. The method of claim 1, wherein after joining the clustered network, the method further comprises: And sending a network management request to the working network management node based on the second communication information to request to execute cluster network management processing, wherein the cluster network management processing comprises at least one of exiting cluster network processing, modifying sub-network structure processing and configuring load balancing rule processing.
- 5. The method according to claim 4, wherein the method further comprises: under the condition that the network management request is failed to be sent, judging that the working network management node is abnormal, and acquiring the communication information of a new working network management node based on the entry positioning bus again; the new working network management node comprises a network management node obtained after the corresponding backup network management node executes master-slave switching processing under the condition that the working network management node is abnormal.
- 6. The method according to claim 1, wherein the obtaining, based on the ingress positioning bus, second communication information of the working network management node of the cluster network includes: Acquiring the encrypted communication information of the working network management node based on the entrance positioning bus, wherein the encrypted communication information is obtained by the working network management node after encrypting and signing the second communication information based on a preset encryption key and a preset signing key; and carrying out security verification processing on the encrypted communication information, and obtaining the second communication information under the condition of successful verification.
- 7. The method of claim 6, wherein the service node has the preset encryption key and the preset signing key configured therein; The step of performing security verification processing on the encrypted communication information and obtaining the second communication information under the condition that verification is successful includes: decrypting the encrypted communication information based on the preset encryption key, and splitting the spliced data block obtained by the decryption based on a preset splicing algorithm to obtain a message data block and a first signature data block; carrying out signature processing on the message data block based on the preset signature key to obtain a second signature data block; And under the condition that the first signature data block and the second signature data block are verified to be consistent, the message data block is used as the second communication information.
- 8. The method according to claim 1, wherein said establishing a communication connection with the working network management node to join the cluster network according to the second communication information comprises: under the condition that communication connection is established between the second communication information and the working network management node, sending network access authentication information to the working network management node; Receiving network access response information which is sent by the working network management node and aims at the network access authentication information; Acquiring third communication information which is sent by the working network management node and is added to other nodes of the cluster network under the condition that the network access response information indicates that authentication is successful; and establishing communication connection with the other nodes according to the third communication information so as to join the cluster network.
- 9. The method of claim 1, wherein the ingress positioning bus comprises a network multicast domain constructed based on a first predetermined network transport protocol.
- 10. The cluster networking method is characterized by being applied to network management nodes in a server cluster and comprising the following steps: Establishing communication connection with the management coordination bus according to fourth communication information of the management coordination bus of the server cluster and executing work network management right confirmation processing; the management coordination bus is used for data communication among a plurality of network management nodes in a cluster network of the server cluster, and the work network management right confirming process is used for confirming whether the network management node is a work network management node currently used for carrying out network access authentication processing on any node in the cluster network; under the condition that the network management node is determined to be a working network management node, establishing communication connection with an inlet positioning bus based on first communication information of the inlet positioning bus; And under the condition that network access authentication information sent by a service node is received, performing network access authentication processing on the service node so as to add the service node into the cluster network.
- 11. The method of claim 10, wherein the performing the worker network management validation process comprises: under the condition that the notice broadcasting information is not received from the management coordination bus within preset time, judging that other network management nodes do not exist in the management coordination bus, and determining the network management nodes to be working network management nodes.
- 12. The method according to claim 10, wherein the method further comprises: And under the condition that the network management node is determined to be a working network management node, corresponding bulletin broadcasting information is sent in the management coordination bus according to a second preset period so as to represent that the working network management node exists in the cluster network.
- 13. The method of claim 10, wherein the performing the worker network management validation process comprises: under the condition that the working network management node exists in the management coordination bus, the network management node is determined to be a backup network management node; Acquiring communication information of a current working network management node in the cluster network from the inlet positioning bus; and adding the communication information of the working network management node into the cluster network so as to perform master-slave data backup processing between the cluster network and the working network management node.
- 14. The method of claim 13, wherein the method further comprises: And under the condition that the notice broadcasting information is not received from the management coordination bus within the preset time or the offline information sent by the current working network management node is received from the management coordination bus, if the network management node is determined to be a new working network management node according to a preset decision algorithm, executing master-slave switching processing so as to promote the network management node to be the new working network management node.
- 15. The method of claim 10, wherein after establishing a communication connection with the ingress positioning bus, the method further comprises: Broadcasting the second communication information of the network management node according to the first preset period, and/or, And under the condition that an information acquisition request of a service node of the server cluster is received from the entrance positioning bus, generating a response message aiming at the information acquisition request according to the second communication information, and sending the response message to the entrance positioning bus.
- 16. The method according to claim 10, wherein the network management node is configured with a preset encryption key and a preset signing key; After establishing a communication connection with the ingress location bus, the method further comprises: Encrypting and signing the second communication information of the network management node based on the preset signing key and the preset encryption key to obtain encrypted communication information of the second communication information; broadcasting the encrypted communication information of the network management node according to a first preset period, and/or, And under the condition that an information acquisition request of a service node of the server cluster is received from the entrance positioning bus, generating a response message aiming at the information acquisition request according to the encrypted communication information, and sending the response message to the entrance positioning bus.
- 17. The method according to claim 16, wherein the encrypting and signing the second communication information of the network management node based on the preset signing key and the preset encryption key to obtain the encrypted communication information of the second communication information includes: Carrying out signature processing on the second communication information based on the preset signature key to obtain corresponding signature information; Splicing the signature information and the second communication information based on a preset splicing algorithm to obtain corresponding spliced communication information; And encrypting the spliced communication information based on the preset encryption key to obtain encrypted communication information corresponding to the second communication information.
- 18. The method of claim 10, wherein the management coordination bus comprises a network multicast domain constructed based on a second predetermined network transport protocol.
- 19. A cluster networking device, applied to service nodes in a server cluster, comprising: The first connection module is used for establishing communication connection with the entrance positioning bus according to the first communication information of the entrance positioning bus of the server cluster under the condition that the service node requests to join the cluster network of the server cluster; The system comprises an entrance positioning module, an entrance positioning module and a network access authentication module, wherein the entrance positioning module is used for acquiring second communication information of a working network management node of the cluster network based on the entrance positioning bus; And the networking module is used for establishing communication connection with the working network management node according to the second communication information so as to join the cluster network.
- 20. The cluster networking device is characterized by being applied to network management nodes in a server cluster, and comprising: The right confirming module is used for establishing communication connection with the management coordination bus and executing the right confirming process of the work network manager according to the fourth communication information of the management coordination bus of the server cluster; the management coordination bus is used for data communication among a plurality of network management nodes in a cluster network of the server cluster, and the work network management right confirming process is used for confirming whether the network management node is a work network management node currently used for carrying out network access authentication processing on any node in the cluster network; The second connection module is used for establishing communication connection with the entrance positioning bus based on the first communication information of the entrance positioning bus under the condition that the network management node is determined to be a working network management node; And the networking authentication module is used for carrying out networking authentication processing on the service node under the condition of receiving networking authentication information sent by the service node so as to add the service node into the cluster network.
Description
Cluster networking method and device, electronic equipment and storage medium Technical Field The disclosure relates to the field of computer technology, and in particular, to a cluster networking method and device, an electronic device, and a computer readable storage medium. Background In modern computer service cluster systems, in order to ensure stable operation of various services, a logical network is usually required to be built between nodes in a server cluster on the basis of a physical network to carry various services. In the related art, a static networking manner is generally used to construct a cluster network of server clusters. In the static networking scheme, communication information of the node and all other nodes in the cluster, such as node ID, network address, port number, identity authentication certificate and the like, is often configured in each node in the cluster one by one, and then each node determines how to establish logic connection with other nodes according to configuration information owned by the node after being started so as to add the node to the cluster network of the server cluster, namely the logic network. The cluster networking mode in the related technology often has the problems of poor flexibility and difficult maintenance. Disclosure of Invention The disclosure provides a cluster networking method and device, electronic equipment and a computer readable storage medium. In a first aspect, the disclosure provides a cluster networking method, which is applied to a service node in a server cluster, and the cluster networking method includes that under the condition that the service node requests to join a cluster network of the server cluster, communication connection is established with an entrance positioning bus according to first communication information of the entrance positioning bus of the server cluster, second communication information of a working network management node of the cluster network is obtained based on the entrance positioning bus, the working network management node is used for performing network access authentication processing on the service node, and communication connection is established with the working network management node according to the second communication information so as to join the cluster network. The second aspect provides another cluster networking method, which is applied to network management nodes in a server cluster, and comprises the steps of establishing communication connection with a management coordination bus of the server cluster according to fourth communication information of the management coordination bus, executing work network management authentication processing, wherein the management coordination bus is used for data communication among a plurality of network management nodes in a cluster network of the server cluster, the work network management authentication processing is used for determining whether the network management nodes are work network management nodes currently used for carrying out network access authentication processing on any node in the cluster network, establishing communication connection with an entrance positioning bus based on first communication information of the entrance positioning bus under the condition that the network management nodes are determined to be the work network management nodes, and carrying out network access authentication processing on the service nodes under the condition that network access authentication information sent by the service nodes is received so as to add the service nodes into the cluster network. The invention provides a cluster networking device which is applied to service nodes in a server cluster and comprises a first connection module, an entrance positioning module and a networking module, wherein the first connection module is used for establishing communication connection with an entrance positioning bus of the server cluster according to first communication information of the entrance positioning bus of the server cluster when the service nodes request to join the cluster network of the server cluster, the entrance positioning module is used for acquiring second communication information of working network management nodes of the cluster network based on the entrance positioning bus, the working network management nodes are used for performing network access authentication processing on the service nodes, and the networking module is used for establishing communication connection with the working network management nodes according to the second communication information so as to join the cluster network. The fourth aspect of the present disclosure provides a trunking networking device, which is applied to a network management node in a server cluster, and the trunking networking device includes an authorization module, configured to establish communication connection with a management coordination bus of the server cluster accordi