Gliffy Diagram |
---|
name | fail node - general case |
---|
pagePin | 1 |
---|
|
Basic definitions
...
Gliffy Diagram |
---|
size | 600 |
---|
name | join node overview |
---|
pagePin | 56 |
---|
|
Join request message
Starting point for join process is joinTopology method presented in both ServerImpl and ClientImpl classes.
...
As servers are organized into ring each node can easily detect failure of its next neighbor node when sending of next discovery message fails.
However process of removing failed node from the ring (there is a special structure called "ring" on each server node which reflects topology view of current node, see ServerImpl#ring field) is not that simple and has to be managed by coordinator. It contains two steps.
Gliffy Diagram |
---|
size | 600 |
---|
name | join node overview |
---|
pagePin | 6 |
---|
|
Step one
On the first step server detected that it next has failed adds it to the special local map called failedNodes. Using this map it will filter failed nodes from all servers presented in the ring until the second step is completed for each failed node.
...