Dynamic Database Connection Pool Adjustment Mechanism

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing CRM systems face challenges in dynamically adjusting database connection pools to match varying traffic conditions, leading to potential overutilization or underutilization of database resources, which can impact performance and efficiency.

Innovation Solution

Implementing a connection pool manager that automatically adjusts the connection pool size based on active servers, configuration information, and database operation conditions, using a configuration engine, traffic lights, and an adjustment engine to optimize the number of connections and prevent overutilization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If the connection pool size is fixed, then the system structure is simple and stable, but the system cannot adapt to varying traffic conditions leading to overutilization or underutilization of database resources

Engineering Contradiction:
Improveadaptability to traffic conditionsVSAvoidconnection pool management complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The connection pool size is transformed from a static fixed value to a dynamic adjustable parameter. The system continuously monitors database operation conditions and automatically adjusts the connection pool size to match varying traffic conditions, ensuring optimal resource utilization while maintaining system stability through controlled adjustment mechanisms.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

A feedback mechanism is implemented where the system monitors database operation conditions (such as connection utilization, query performance, and server load) and uses this information to automatically adjust the connection pool size. This closed-loop control enables the system to adapt to changing traffic conditions while preventing both overutilization and underutilization of database resources.

Inventive Principle:
Principle #23Feedback

2Productivity

If the connection pool size is increased to handle high traffic, then the system can handle peak loads, but database resources may be overutilized during low traffic periods

Engineering Contradiction:
Improvesystem throughputVSAvoiddatabase resource waste
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The connection pool size dynamically adjusts between minimum and maximum thresholds based on real-time monitoring of database operation conditions. During high traffic periods, the pool expands to handle increased load; during low traffic periods, it contracts to release resources, thereby maintaining high productivity when needed while minimizing resource waste during idle periods.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes the connection pool size parameter in response to varying traffic conditions and database load. By adjusting this critical parameter within defined thresholds, the system optimizes throughput during peak periods while reducing resource consumption during off-peak periods, effectively balancing productivity and resource efficiency.

Inventive Principle:
Principle #35Parameter changes

3Loss of energy

If the connection pool size is decreased to save resources, then resource utilization is optimized, but the system cannot handle sudden traffic spikes

Engineering Contradiction:
Improvedatabase resource efficiencyVSAvoidsystem reliability under load
Core Design Contradiction:
Loss of energyVSReliability

Solution Approach 1:

The connection pool implements dynamic sizing with predefined minimum and maximum thresholds. The pool can expand up to the maximum threshold when traffic spikes are detected, ensuring system reliability under sudden load increases. Conversely, it contracts to the minimum threshold during low traffic to optimize resource efficiency, achieving both goals through adaptive behavior.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system pre-configures minimum and maximum connection pool thresholds in advance. When traffic conditions indicate an upcoming spike, the pool can quickly expand to the pre-determined maximum capacity, providing immediate handling capability without waiting for resource allocation. This preliminary setup ensures reliability during sudden load changes while maintaining resource efficiency during normal operation.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11714821B2Adjustable connection pool mechanism
Publication Date: 2023.08.01 SALESFORCE INC
  • US11714821B2 patent drawing
  • US11714821B2 patent drawing
  • US11714821B2 patent drawing

AI summary

Techniques and structures to facilitate automatic adjustment of a database connection pool, including calculating a first value indicating a number of connections of to be provided by a first of a plurality of application servers, determining whether the first value is equal to a second value previously calculated to indicate the number of connections to be provided by the first application server and adjusting the database connection pool by providing the number of connections to access the database as indicated by the first value upon a determination that the first value is not equal to the second value.