I have some nightly jobs that are running on EC2 and the number of machines is scaled by the number of messages in SQS. My process requires reads from a Postgres RDS database. Now these are the issues I am facing.
- Not able to scale beyond a certain number because of the unavailability of connections.
- I tried creating a connection pool using
pgbouncer
, and tried with different settings as well, but it's missing a lot of data on the resultant set.