Method for changing member in distributed system and distributed system
AssigneeHuawei Technologies Co., Ltd.
InventorsYang Bai, Lei Chen
Life of this patent
Estimating the term…
Abstract
A method for changing a member in a distributed system, includes requesting, by a first target node, a node address set from a management server, where the node address set includes first addresses of all nodes in the distributed system, sending, by the first target node, a join request to a master node in the distributed system when the node address set does not comprise a second address of the first target node, adding, by the master node, the second address to the node address set, and instructing all slave nodes in the distributed system to add the second address to a corresponding local member list.
Claims20
A method for changing a member in a distributed system comprising:
- requesting, by a first target node, a node address set from a management server, wherein the node address set comprises first addresses of all nodes in the distributed system, and wherein the distributed system comprises a master node and a slave node;
- sending, by the first target node, a first join request to the master node when the node address set does not comprise a second address of the first target node, wherein the first join request comprises the second address;
- receiving, by the master node, the first join request;
- adding, by the master node, the second address to a first local member list of the master node;
- and
- instructing, by the master node, the slave node to add the second address to a second local member list of the slave node.
A node set comprising:
- a distributed system comprising:
- a master node comprising a first local member list;
- and
- a slave node comprising a second local member list;
- and
- a first target node comprising a second address and configured to:
- request a node address set from a management server, wherein the node address set comprises first addresses of all nodes in the distributed system;
- send a first join request to the master node when the node address set does not comprise the second address,
- wherein the master node is configured to:
- receive the first join request;
- add the second address to the first local member list;
- and
- instruct the slave node to add the second address to the second local member list.
A method for changing a member in a distributed system comprising:
- requesting, by a target node, a node address set from a management server, wherein the node address set comprises first addresses of all nodes in the distributed system, and wherein the distributed system comprises a master node and a slave node;
- sending, by the target node, an exit request to the master node when a second address of the target node is in the node address set, wherein the exit request comprises the second address;
- receiving, by the master node, the exit request from the target node;
- deleting, by the master node, the second address from a first local member list of the master node;
- and
- instructing the slave node to delete the second address from a second local member list of the slave node.
A distributed system comprising:
- a master node comprising a first local member list;
- and
- a plurality of slave nodes coupled to the master node and comprising a target node, wherein the target node has a second address, and wherein the target node is configured to:
- request a node address set from a management server, wherein the node address set comprises first addresses of all nodes in the distributed system;
- send an exit request to the master node when the node address set comprises the second address, wherein the exit request comprises the second address,
- wherein the master node is configured to:
- receive the exit request;
- delete the second address from the first local member list;
- and
- instruct each of the slave nodes to delete the second address from a corresponding second local member list.
Dependencies are inferred from the claim text.