Skip to content

RDS Proxy Queue Limit

0

In the User Guide to RDS Proxy here, there is the following line:

RDS Proxy queues or throttles application connections that can't be served immediately from the connection pool.

What is the limit of the number of connections that can be queued at a particular time? Even if each request has its own ConnectionBorrowTimeout, it is possible that RDS proxy itself runs into a limit on the number of requests it can queue, so we want to make sure it's not an issue for our use case.

asked 9 months ago162 views

1 Answer
0

Hello,

Thank you for reaching out with your question regarding RDS Proxy connection queuing.

I understand that you would like to know the limit on the number of connections that can be queued by RDS Proxy at a particular time, and you want to ensure that the proxy's queuing capacity is not a concern for your use case.

If you have a proxy configured to use, say, 100% of a database's 300 maximum connections, then once this maximum connections limit is reached, the proxy will buffer any new connections for a time limit that you specify called the "Connection borrow timeout". The default value for this timeout is 2 minutes and can be adjusted as required to a maximum of 5 minutes. If new connections become available, the waiting connection is served. Otherwise, once the connection's wait time exceeds this timeout, the connection will be dropped.

In other words, yes, each new connection beyond the max connections limit of the database will be buffered by the proxy for a time that you can specify. Once this time is exceeded, the connection will be dropped.

However, regarding your specific question about a hard limit on the number of queued connections — there isn't a publicly documented limit on the queue size itself. The queuing behavior is primarily governed by the Connection borrow timeout rather than a fixed queue capacity. If you have specific scale requirements or concerns about your use case, I would recommend testing under expected load conditions.

If you encounter any issues or need further assistance, I encourage you to open a support case with AWS. Please ensure to Create the case from the AWS account where your proxy resources reside.

Link to raise case: https://support.console.aws.amazon.com/support/home#/case/create

Thanks!

answered 9 months ago

AWS
SUPPORT ENGINEER

revised 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.