If you want to connect to DLA by using a Java Database Connectivity (JDBC) connection pool, we recommend that you use a Druid connection pool of the latest version. To use a Druid connection pool, you must configure the parameters listed in this topic.
- maxActive: 10
- initialSize: 5
- maxWait: 60000
- minIdle: 10
- maxIdle: 20
- timeBetweenEvictionRunsMillis: 2000
- minEvictableIdleTimeMillis: 600000
- maxEvictableIdleTimeMillis:900000
- validationQuery: show status like '%Service_Status%';
- testWhileIdle: true
- testOnBorrow: false
- testOnReturn: false
- removeAbandoned: true
- removeAbandonedTimeout: 180