- Newest
- Most votes
- Most comments
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!
Relevant content
asked 2 years ago
asked 3 years ago
