Method, device and equipment for cluster node expansion

A node and cluster technology, applied in the computer field, can solve problems such as inability to provide external services

Active Publication Date: 2014-03-12
HUAWEI TECH CO LTD
View PDF3 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The embodiment of the present application provides a method, device and equipment for expanding cluster nodes, which are used to sol

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and equipment for cluster node expansion
  • Method, device and equipment for cluster node expansion
  • Method, device and equipment for cluster node expansion

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] Embodiment 1 of the present invention proposes a method for expanding cluster nodes, such as figure 1 As shown, the specific process of this method is as follows:

[0036] Step 101: Determine the master node from M nodes included in the server cluster, where M is an integer greater than or equal to 2, and the number of votes obtained by the master node is greater than a preset threshold and less than or equal to M;

[0037] Step 102: Perform node expansion on the service cluster. The expanded server cluster includes N nodes, wherein the master node in the expanded server cluster is still the same as the server cluster before expansion. Master node, N is an integer greater than or equal to 2, and M is greater than N / 2.

[0038] Wherein, in step 101, the master node is determined from M nodes included in the server cluster, wherein M is an integer greater than or equal to 2, and the number of votes obtained by the master node is greater than a preset threshold and less t...

Embodiment 2

[0087] Embodiment 2 of the present invention proposes a device for expanding cluster nodes, such as figure 2 As shown, the device includes:

[0088] The master selection unit 201 is configured to determine a master node from M nodes included in the server cluster, wherein the M is an integer greater than or equal to 2, and the number of votes obtained by the master node is greater than a preset threshold and less than or equal to M;

[0089] The expansion unit 202 is configured to expand the node capacity of the service cluster after the primary node is determined by the primary selection unit 201. The expanded server cluster includes N nodes, wherein the expanded server cluster includes The master node is still the master node in the server cluster before capacity expansion, N is an integer greater than or equal to 2, and M is greater than N / 2.

[0090] Wherein, the server cluster only includes N nodes, and each node may be an electronic device such as a desktop computer or...

Embodiment 3

[0108]Embodiment 3 of the present invention proposes a device for expanding cluster nodes, such as image 3 As shown, the device includes: a circuit board 301; a controller 302, disposed on the circuit board 301, including a device 303 for expanding the cluster node; a memory 304, electrically connected to the circuit board 301, for storing the information of the N nodes routing information.

[0109] Wherein, the circuit board 301 may be a main board of the device of the expanded cluster node, and further, the controller 302 may be a separate processing chip, or may be integrated into a processor of the device of the expanded cluster node.

[0110] Further, the preset threshold is a value greater than or equal to 2M / 5 and less than or equal to M / 2, for example, the preset threshold can be 2M / 5, 9M / 20, M / 2, etc. When M=100, The preset threshold may be, for example, 40, 45, 50 or the like.

[0111] Preferably, the means 303 for expanding the cluster nodes is specifically confi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method, a device and equipment for cluster node expansion. The method comprises the steps of determining a main node from M nodes contained in a server cluster, wherein M is an integer which is larger than or equal to 2, and the voting number obtained by the main node is larger than a preset threshold vale and is less than or equal to M; carrying out node expansion on the server cluster, wherein the server cluster after expansion contains N nodes, a main node in the server cluster after expansion is still the main node in the server cluster before expansion, N is an integer which is larger than or equal to 2, and M is larger than N/2.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method, device and equipment for expanding cluster nodes. Background technique [0002] In a distributed system, a server cluster has only one master node to manage multiple nodes contained in the server cluster. After the server cluster selects a master node, each node contained in the server cluster will stop The process in a node, and update the static configuration file of each node, and then re-select the master node, the following specifically takes zookeeper as an example, zookeeper is a reliable coordination system for large-scale distributed systems, which can provide configuration maintenance, name service, For functions such as distributed synchronization and group services, the steps for zookeeper to select the master node are as follows: [0003] 1. Read the static configuration file (including the IP and port of all nodes in the zookeeper cluster); [...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08H04L12/24
Inventor 罗雄
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products