Reputation: 11
I have a spring boot application that run in aws as a ECS. This application use a pool of connections for connect to an instance of Aurora RDS serverless. I want to know if there are a mode to "destroy" the pool connection when there are no connection to the database. It's possible?
Thanks, Andrea
Upvotes: 1
Views: 1100
Reputation: 11
Just for documentation. I find a resolution by use com.zaxxer.hikari.HikariDataSource
driver and the following configuration:
connectionTimeout: 60000
idleTimeout: 900000
maxLifetime: 900000
minimumIdle: 0
maximumPoolSize: 10
Upvotes: 0