Database connection pool has only 100 connections, 3,000 connection requests
(1) If the long-term requests are more, according to the actual situation and experience appropriate increase the number of connections in the connection pool
(2) Use resource scheduling, set up the appropriate queue, prioritize, prioritize high priority execution, low priority queuing execution
(3) Using the 28 allocation principle, using caching technology, actually 80% of the access is concentrated on 20% of the data, so the frequently accessed data into the cache, which can reduce IO, reduce database access, read data directly from the cache, no hits, then access the database, The data in the cache should be updated periodically
(4) Increase the number of database servers, the use of read and write separation technology, the main database server is responsible for increasing, deleting, changing operations, multiple slave server read operations, read requests through load balancing, according to the access pressure from the server to allocate service requests.
What to do if you encounter a large number of database connection requests