1
Always after a brief period without queries, when making a request to Amazon RDS (Mysql), it takes almost 20 seconds, while the following requests usually happen, as you can see in the image, highlighted in the green rectangle! I need to fix this.

1
Always after a brief period without queries, when making a request to Amazon RDS (Mysql), it takes almost 20 seconds, while the following requests usually happen, as you can see in the image, highlighted in the green rectangle! I need to fix this.

2
A possible cause for this is you have an expired connection pool (timeout) after the long period.
Then, when a request arrives, your application, framework or server takes 20 seconds to detect the problem and reconnect to the database.
Possible solutions:
wait_timeout.autoReconnect, as mentioned in driver documentation.The first option seems to be the most recommended.
Browser other questions tagged http http-request aws
You are not signed in. Login or sign up in order to post.