I am working on tuning the AWS RDS (Postgres) performance.
With the current setting (default),
db.t2.micro
max_connections: {DBInstanceClassMemory/31457280} // => about 34 connections
I ran performance test using Gatling, with 100 concurrent requests (one request one connection). Report showed that 78 successful requests, 22 failed requests.
I have few questions:
1/ How can RDS support up to 78 connections while the max_connections is 34?
2/ Is there any dynamic way to adjust the max_connections when the number of request exceeds the max_connections?
Note: I know how to change the value of max_connections by hardcode.
gatling
documentation. 2. Futile move. Since you use t2.micro, once you run out of CPU credit, the CPU will be throttles to 25% of the load. – mootmoot