Database Connection Management for Predictive Failover Control

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Database failures due to overloading or other issues cause significant service disruptions in data systems, particularly in e-commerce websites, as conventional systems fail to detect early signs of failure and manage connection requests efficiently.

Innovation Solution

A distributed connection service architecture that monitors connection wait times and health metrics across multiple databases, allowing for proactive management of connection requests and failover flows to mitigate potential failures, including tiered shedding of connections and staggered reloading to optimize query response times.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If connection pooling and multiplexing techniques are implemented to efficiently utilize limited database connections, then the database can support more traffic, but more users will experience service disruption when a database failure occurs

Engineering Contradiction:
Improvetraffic support capacityVSAvoidservice continuity during failure
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system performs preliminary actions by detecting early signs of database failure (increased connection wait times) before actual failure occurs. The connection service proactively redirects connection requests to alternative databases or sheds connections before the database completely fails, preventing service disruption rather than reacting after failure detection.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The connection service acts as an intermediary layer between application servers and databases. It monitors database health through connection wait times and intermediates connection requests by redirecting them to healthy databases or shedding connections, thereby protecting the system from direct impact of database failures.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Difficulty of detecting and measuring

If conventional failure detection methods are used where the server determines the database is down when unable to connect, then failure can be detected, but significant service interruption occurs with undesirable client wait times

Engineering Contradiction:
Improvefailure detection capabilityVSAvoidservice interruption duration
Core Design Contradiction:
Difficulty of detecting and measuringVSLoss of time

Solution Approach 1:

The system detects early signs of database failure by monitoring connection wait times before the database completely becomes unavailable. By identifying deteriorating performance trends in advance, the system can proactively redirect connections or shed loads before total failure occurs, avoiding service interruption entirely.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The connection service continuously monitors connection wait times as feedback about database health. When wait times exceed thresholds, the system responds by redirecting connections or shedding loads, creating a closed-loop control system that maintains service continuity based on real-time database performance feedback.

Inventive Principle:
Principle #23Feedback

3Productivity

If the database operates at full capacity to handle growing traffic demands, then productivity is maximized, but the database becomes vulnerable to overloading and failure

Engineering Contradiction:
Improvetraffic handling capacityVSAvoiddatabase stability
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The connection service dynamically adjusts the number of active database connections based on real-time performance monitoring. When connection wait times indicate database stress, the system automatically sheds connections to reduce load, allowing the database to operate within safe capacity limits while maintaining overall system productivity through load redistribution.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes operational parameters by adjusting the number of active connections based on database health indicators. When connection wait times exceed thresholds, the connection service reduces the number of simultaneous connections to prevent overloading, thereby maintaining database stability while preserving essential service functionality.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12632332B2Corrective database connection management
Publication Date: 2026.05.19 EBAY INC
  • US12632332B2 patent drawing
  • US12632332B2 patent drawing
  • US12632332B2 patent drawing

AI summary

Systems and methods for are provided for predicting impending failure of a database and preemptively initiating mitigating failover actions, for example by shedding connections or redirecting connection requests to an alternate database that can fulfill resources being requested. In an example embodiment, to detect a slow or unstable database, connection wait times are monitored over a rolling window of time intervals, a quantity of intervals in which at least one excessive wait time event occurred are counted during the time window, and if the quantity exceeds a threshold, the database is deemed unavailable, thereby triggering connection adjustments.