Containerized Cluster Leader Election for Rapid Active-Passive Failover

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In containerized application clusters, pod rescheduling or redeployment times following a single node failure can take minutes, which is unacceptable for maintaining high availability, especially in stateful services with active-passive configurations, leading to challenges in determining the active versus passive pod replicas, routing client traffic, and ensuring fast failover.

Innovation Solution

Implementing an elected leader lease mechanism that designates a single active pod replica and allows fast failover by configuring the active pod to surrender the lease upon failure, enabling passive replicas to assume the active role without delay, with an API for monitoring the leader status.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If pod rescheduling is performed following single node failure, then high availability is maintained, but rescheduling time takes minutes rather than seconds

Engineering Contradiction:
Improvehigh availabilityVSAvoidpod rescheduling time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-configuring passive pod replicas in advance before failure occurs. When a node fails, the passive replicas are already prepared and can immediately take over the active role, eliminating the need for time-consuming rescheduling operations. This is achieved through the leader election mechanism that pre-establishes backup pods ready to assume leadership.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces a leader election mechanism as an intermediary layer between the active pod and passive replicas. This mechanism uses leases and metadata storage to coordinate failover, allowing passive pods to quickly determine and assume the active role without direct complex communication protocols, thus reducing failover time while maintaining reliability.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Loss of time

If leader election mechanism is implemented, then fast failover is achieved, but system complexity increases due to lease management and metadata coordination

Engineering Contradiction:
Improvefailover timeVSAvoidsystem complexity
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The leader election mechanism implements self-service by having each pod automatically attempt to acquire and renew its own lease without external intervention. Pods autonomously monitor their lease status and trigger failover procedures when necessary, eliminating the need for complex centralized coordination logic while achieving fast failover through decentralized autonomous operation.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system uses partial action by implementing leader election only for critical stateful services that require high availability, rather than across the entire system. This selective application reduces overall system complexity while providing fast failover where most needed. The lease mechanism also uses partial monitoring where pods only need to check metadata storage for lease status rather than continuous complex communication.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS20250330516A1Leader election for active-passive configured containerized application clusters
Publication Date: 2025.10.23 DELL PROD LP
  • US20250330516A1 patent drawing
  • US20250330516A1 patent drawing
  • US20250330516A1 patent drawing

AI summary

A method for designating an active pod replica amongst a plurality of pod replicas operating in an active-passive configuration within a containerized application cluster. The method includes: implementing, by a master node of the containerized application cluster, an elected leader lease; making an attempt, by a leader election container executing in a pod replica of the plurality of pod replicas, to acquire the elected leader lease; making a determination, based on the attempt and by the leader election container, that the elected leader lease has been successfully acquired; and designating, based on the determination and by the leader election container, the pod replica as the active pod replica.