Two-Round Leader Election in Distributed Systems

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In distributed systems, existing solutions for leader election in simple topologies face challenges such as high network chatter, inefficiency, and a high probability of 'bad' election collisions, which can lead to multiple leaders being elected instead of a single one, especially when faults occur.

Innovation Solution

A two-round method where nodes detect leader failures, with the first round determining a quorum and the second round selecting a new leader, minimizing network chatter and ensuring only one leader is elected, using a computer-implemented method that configures a node as a leader after failure detection, and periodically checks for leader failures.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional leader election algorithms are used, then leader election can be achieved, but network chatter increases by n2 as the number of nodes grows

Engineering Contradiction:
Improveleader election reliabilityVSAvoidnetwork chatter
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent segments the leader election process into distinct phases: detection phase (monitoring leader failures), decision phase (determining if election is needed), and execution phase (performing the election). This segmentation allows the system to minimize network chatter by only activating full election protocols when actually necessary, rather than continuously broadcasting election messages.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements preliminary action through leader failure detection mechanisms that monitor system state before triggering elections. Nodes continuously check for leader presence and prepare election candidates in advance, so when failure occurs, the election can proceed immediately with minimal additional network traffic.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If multiple processes and rounds are used for leader election, then consensus can be reached, but the process becomes cumbersome and inefficient

Engineering Contradiction:
Improveconsensus achievementVSAvoidelection efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent extracts the essential elements of leader election into a streamlined two-round process: Round 1 identifies potential leaders by having nodes broadcast their readiness, and Round 2 selects the actual leader through a simplified consensus mechanism. By removing unnecessary intermediate steps and subprocesses from traditional algorithms, the system achieves consensus with minimal rounds while maintaining reliability.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

Instead of having the leader actively manage elections and having nodes passively wait for leader directives, the patent inverts the approach: nodes actively detect leader failures and initiate elections themselves. This inversion of control flow eliminates the need for complex leader-managed election coordination and reduces the number of required process rounds.

Inventive Principle:
Principle #13The other way round (Inversion)

3Ease of operation

If traditional election algorithms are used, then elections can proceed, but there is a high probability of bad election collision where multiple elections start simultaneously

Engineering Contradiction:
Improveelection executionVSAvoidsingle leader guarantee
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent implements feedback mechanisms where nodes broadcast their election status and receive acknowledgments from other nodes. During Round 1, nodes that detect they are the only candidate proceed to Round 2, while others abort. This feedback loop prevents bad election collisions by allowing nodes to adjust their behavior based on real-time information about other nodes' election participation.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent uses partial action by implementing an abort mechanism in Round 1: nodes that detect multiple candidates abandon their election attempts and do not proceed to Round 2. This partial participation strategy ensures that even if multiple nodes simultaneously initiate elections, only one will complete the full two-round process, guaranteeing a single leader while maintaining ease of operation.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS8583958B2Systems and methods of providing fast leader elections in distributed systems of simple topologies
Publication Date: 2013.11.12 ZHIGU HLDG
  • US8583958B2 patent drawing
  • US8583958B2 patent drawing
  • US8583958B2 patent drawing

AI summary

Systems and computer-implemented methods of electing a new leader node in distributed systems of simple topologies connecting a plurality of nodes on at least one computer system. The computer-implemented method comprises several steps including at least one node, which detected the absence of a leader, starting a first round for its approval as an Approved Election Initiator. If a quorum accepts the StartElection request during the first round, then the Election Initiator starts a second round to set the leader. If a quorum of all nodes has not been reached during the first round, then the first round fails. The method repeats until a leader is set and is repeated each time a node discovers that the network does not have an active leader. Also provided herein is a computer readable medium having computer executable instructions stored thereon for performing the computer-implemented method.