Leader Election via Invalidated Node Variables

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In distributed database systems, leader election processes require precise time synchronization and knowledge of the prior election state, making them vulnerable to failures and network issues, which can lead to unnecessary election rounds and instability.

Innovation Solution

A method that involves storing specific variables for proposal numbers and leader states, allowing a computing node to autonomously invalidate a failed leader and propose a new one, ensuring a single election round by using an invalidated leader value to prevent the old leader from being re-elected.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional leader election processes are used in distributed database systems, then a leader can be elected to coordinate data storage, but the system requires highly specific time synchronization and knowledge of prior election state, increasing system complexity and vulnerability to failures

Engineering Contradiction:
Improveleader election reliabilityVSAvoidtime synchronization complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system performs preliminary actions by pre-assigning unique proposal numbers to each node before election is needed. These proposal numbers are stored in variables (first variable for accepted proposal number, second variable for accepted leader's proposal number) and are ready for immediate use when leader failure occurs, eliminating the need for time synchronization and prior state knowledge during the actual election process

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

Each node autonomously determines whether to accept or reject proposals using its own stored variables and local comparisons, without needing to query other nodes about prior election states. The node independently performs comparisons with its stored variables and makes decisions based on the invalidated leader value mechanism

Inventive Principle:
Principle #25Self-service

2Productivity

If a new election round is held to elect a new leader after leader failure, then a new leader can be selected, but the process requires time synchronization and knowledge of prior election state, leading to delays and potential instability

Engineering Contradiction:
Improveleader re-election speedVSAvoidelection round duration
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

Proposal numbers are assigned and stored in advance in each node's memory (first variable, second variable), ready for immediate use. When leader failure is detected, nodes can instantly initiate the election process using these pre-prepared numbers without waiting for time synchronization or querying prior election states, dramatically reducing re-election time

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system skips the traditional multi-round election process by using the invalidated leader value mechanism. Nodes perform local comparisons with stored variables and can immediately commit to a new leader in a single round, rushing through the election process without the delays associated with traditional time-synchronized multi-round protocols

Inventive Principle:
Principle #21Skipping (Rushing through)

3Stability of the object's composition

If traditional election processes are used without an invalidated leader value mechanism, then nodes can elect a new leader, but there is a risk that the old leader may be re-elected, requiring multiple election rounds to ensure stability

Engineering Contradiction:
Improveleader election stabilityVSAvoidelection process efficiency
Core Design Contradiction:
Stability of the object's compositionVSProductivity

Solution Approach 1:

The invalidated leader value acts as an intermediary mechanism that prevents the old leader from being re-elected. Each node stores this value in a fourth variable and performs comparisons against it during the election process. This intermediary value mediates between the old and new leader states, ensuring that nodes automatically reject proposals from the invalidated leader while accepting proposals from valid candidates, achieving stability in a single election round

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system implements feedback by having nodes continuously check their stored variables (including the invalidated leader value in the fourth variable) against new proposals. When a node detects that a proposed leader matches the invalidated value, it provides negative feedback by rejecting the proposal. This feedback mechanism ensures that the old leader cannot be re-elected and guides the system toward a stable new leader state efficiently

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS10467089B2Leader election in distributed computer system
Publication Date: 2019.11.05 HULU LLC
  • US10467089B2 patent drawing
  • US10467089B2 patent drawing
  • US10467089B2 patent drawing

AI summary

A first node determines that a health of a second node that is the accepted leader is invalid and calculates a third proposal number for a proposal of an election for a leader. The first node sends first messages with the third proposal number to nodes to propose the election and determines that a first quorum for a third variable is reached indicating the election for the leader is accepted. The first node sends second messages with a fourth proposal number based on the first proposal number and an identifier for a proposed leader to the nodes to propose the proposed leader as the leader of the nodes. The second messages reject the proposed leader when the proposed leader is equal to the fourth variable. The first node determines that a second quorum is reached from a set of second responses that include the fourth proposal number for the second variable.