What to do if you encounter a large number of database connection requests

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.