Dynamic control method and device for double-database connection pool and related equipment
A dynamic control and database technology, applied in the computer field, can solve problems such as occupying system database resources, affecting user experience, and requesting a large number of connections
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] figure 1 It is a dynamic control method for dual database connection pools provided by Embodiment 1 of the present invention. The dynamic control method for dual database connection pools monitors the current database connection pool indicators of computer equipment, and uses the database connection pools according to the monitored database connection pools. Dynamically control the dual database connection pool. According to different requirements, the execution sequence in the flow chart can be changed, and some steps can be omitted.
[0056] S11: Create a first database connection pool and a second database connection pool, and initialize the maximum number of database connections in the first database connection pool.
[0057] In this embodiment, after the application server is started, two database connection pools can be created, the first database connection pool can be used as a common database connection pool, and the second database connection pool can be used...
Embodiment 2
[0101] figure 2 It is a functional module diagram in a preferred embodiment of the dynamic control device of the dual database connection pool in the present invention.
[0102] In some embodiments, the dynamic control device 20 of the dual database connection pool runs in a computer device. The dynamic control device 20 of the dual database connection pool monitors the current database connection pool index of the computer equipment, and dynamically controls the dual database connection pool according to the monitored usage rate of the database connection pool. The dynamic control device 20 of the dual database connection pool may include a plurality of functional modules composed of program code segments. The program codes of each program segment in the dynamic control device 20 of the dual database connection pool can be stored in a memory and executed by at least one processor.
[0103] In this embodiment, the dynamic control device 20 of the dual database connection po...
Embodiment 3
[0147] image 3 It is a schematic diagram of a computer device provided by Embodiment 3 of the present invention.
[0148] The computer device 3 includes: a memory 31 , at least one processor 32 , a computer program 33 stored in the memory 31 and executable on the at least one processor 32 , and at least one communication bus 34 .
[0149] When the at least one processor 32 executes the computer program 33, the steps in the above embodiment of the dynamic control method for dual database connection pools are realized.
[0150] Specifically, when the at least one processor 32 executes the computer program 33, the steps in the embodiment of the dynamic control method for implementing the dual database connection pool include:
[0151] Create a first database connection pool and a second database connection pool, and initialize the maximum number of database connections in the first database connection pool;
[0152] When receiving the database connection request of the applica...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


