A method of grouping nodes within a distributed network is provided. The
example method includes performing a leader node self determination
operation by which each node within the distributed network determines
whether to become a leader node or a non-leader node, each leader node
being the leader of a group including at least one node. Next, requests
are sent, from each leader node, requesting at least one non-leader node
to join the group associated with the leader node. First received
requests are accepted, at each non-leader node, such that accepting
non-leader nodes transition from a non-leader node to a dependent node
dependent upon the requesting leader node. A next set of requests are
sent, from each remaining non-leader node, requesting to join the group
associated with at least one leader node. A determination is made, at
each requested leader node, as to whether to accept the non-leader node
into the group associated with the requested leader node. Based on the
determination, at each requested leader node, the non-leader node is
either accepted into the group associated with the requested leader node,
or is alternatively rejected from the group.