Leader Election Lifetime Term Mechanism

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing leader election methods in distributed systems face challenges such as concurrent leadership and synchronization issues, leading to potential memory corruption and data collisions due to the need for heartbeat signals and lease renewal, which add complexity and overhead.

Innovation Solution

The introduction of a 'lifetime term' for the leader process, where exclusive access to a predetermined resource determines the leader, eliminating the need for heartbeats and lease renewals, and ensuring only one process can be the leader until its termination.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional leader election with heartbeat signals and lease renewal is used, then leadership can be maintained, but system complexity and synchronization overhead increase

Engineering Contradiction:
Improveleadership continuityVSAvoidelection mechanism complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent extracts and eliminates the heartbeat signal mechanism and lease renewal process from the leader election system. By removing these complex synchronization components, the system achieves simpler leader election while maintaining reliability through alternative means such as leader term registration and term-based identification.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The leader process automatically manages its own term identification and registration without requiring external heartbeat signals or lease renewal negotiations. The leader simply registers its term identifier and maintains leadership until the term expires or the process terminates, eliminating the need for continuous active maintenance protocols.

Inventive Principle:
Principle #25Self-service

2Reliability

If heartbeat signals and lease renewal are required for leader election, then leadership can be confirmed, but synchronization issues and potential concurrent leaders occur

Engineering Contradiction:
Improveleader identification accuracyVSAvoidconcurrent leadership and data collision
Core Design Contradiction:
ReliabilityVSObject-affected harmful factors

Solution Approach 1:

The patent introduces a term identifier registration mechanism as an intermediary between leader election and leadership confirmation. Instead of relying on continuous heartbeat signals that can cause synchronization issues, the leader registers its term identifier with the system, and other processes check this registration to determine leadership status, eliminating concurrent leadership problems.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system uses term identifiers as copies or representations of leadership status rather than requiring direct communication through heartbeat signals. Each leader has a unique term identifier that serves as a copy of its authoritative status, which can be checked without requiring the leader to actively signal its presence continuously.

Inventive Principle:
Principle #26Copying

3Reliability

If continuous heartbeat signals are sent to maintain leadership, then leader status can be confirmed, but communication overhead and resource consumption increase

Engineering Contradiction:
Improveleader status verificationVSAvoidcommunication overhead
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

Instead of continuous heartbeat signals, the system uses periodic term registration and term-based verification. The leader registers its term identifier once when elected and maintains leadership until the term expires, eliminating the need for continuous periodic communication while still allowing verification of leadership status through the registered term information.

Inventive Principle:
Principle #19Periodic action

Solution Approach 2:

The leader performs preliminary registration of its term identifier when elected, establishing its leadership status in advance. This preliminary action eliminates the need for continuous subsequent communication to maintain leadership verification, as the registered term identifier serves as persistent proof of leadership throughout the term.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11675622B2Leader election with lifetime term
Publication Date: 2023.06.13 RED HAT LLC
  • US11675622B2 patent drawing
  • US11675622B2 patent drawing
  • US11675622B2 patent drawing

AI summary

A processing device receives request from a process of a plurality of processes of a clusterized service, to attempt to create, in a file system accessible by the process, a file associated with a leader state of the plurality of processes. Responsive to successfully creating the file, the processing device to enable the process to enter the leader state. The processing device is further to enable the process to stay in the leader state for a lifetime of the process.