Database Connection Pool Anomaly Detection and Throttling

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional connection pool management mechanisms fail to effectively manage all traffic conditions, leading to connection pool exhaustion incidents, and lack mechanisms to detect overuse by clients causing these incidents.

Innovation Solution

Implementing an anomaly detection mechanism that monitors connection pool usage, identifies offending clients, and throttles their access to prevent exhaustion by dynamically adjusting throttle rules based on connection pool conditions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If connection pool management mechanisms are implemented, then database connection stability is improved, but the ability to detect and respond to overuse by clients is insufficient

Engineering Contradiction:
Improvedatabase connection stabilityVSAvoidclient overuse detection capability
Core Design Contradiction:
ReliabilityVSDifficulty of detecting and measuring

Solution Approach 1:

The system implements feedback by continuously monitoring connection pool usage metrics (active connections, wait times, pool utilization) and using this information to detect anomalies. When usage patterns deviate from expected behavior, the system triggers alerts and automatically adjusts throttling rules to respond to overuse conditions, creating a closed-loop monitoring and response mechanism.

Inventive Principle:
Principle #23Feedback

2Ease of operation

If manual monitoring of connection pool is performed, then basic usage awareness is achieved, but automatic detection and response to overuse is lost

Engineering Contradiction:
Improvemanual monitoring simplicityVSAvoidautomatic overuse detection and response
Core Design Contradiction:
Ease of operationVSExtent of automation

Solution Approach 1:

The system performs self-service by automatically detecting connection pool anomalies and adjusting throttling rules without requiring manual intervention. The anomaly detection mechanism autonomously analyzes usage patterns, identifies overuse conditions, and implements corrective actions through dynamic throttling rule updates, eliminating the need for continuous manual monitoring while maintaining operational simplicity.

Inventive Principle:
Principle #25Self-service

3Reliability

If connection pool is strictly managed, then connection exhaustion is prevented, but legitimate client access may be unnecessarily limited

Engineering Contradiction:
Improveconnection exhaustion preventionVSAvoidflexibility in client access
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The system applies dynamics by implementing adaptive throttling rules that automatically adjust based on real-time connection pool conditions and detected anomaly severity. Rather than applying static strict management, the system dynamically modulates access controls according to the specific circumstances of each anomaly event, allowing flexible response that prevents exhaustion while preserving legitimate access where appropriate.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS11750692B2Connection pool anomaly detection mechanism
Publication Date: 2023.09.05 SALESFORCE INC
  • US11750692B2 patent drawing
  • US11750692B2 patent drawing
  • US11750692B2 patent drawing

AI summary

Techniques and structures to prevent exhaustion of a database connection pool, including retrieving data from the database connection pool, monitoring the data to determine whether the connection pool is at risk of an exhaustion condition, analyzing the data to determine whether one or more clients accessing the database connection pool are offenders upon determining that the connection pool is at risk and throttling access to the one or more clients accessing the database connection pool upon determining the one or more clients to be offenders.