All Products
Search
Document Center

Connect to DLA through a Druid database connection pool

Last Updated: Apr 23, 2019

If you want to use a JDBC connection pool to connect to DLA, we recommend that you use the Druid database connection pool of the latest version. You must configure the Druid database connection pool as follows:

  1. - maxActive: 10
  2. - initialSize: 5
  3. - maxWait: 60000
  4. - minIdle: 10
  5. - maxIdle: 20
  6. - timeBetweenEvictionRunsMillis: 2000
  7. - minEvictableIdleTimeMillis: 600000
  8. - maxEvictableIdleTimeMillis:900000
  9. - validationQuery: show status like '%Service_Status%';
  10. - testWhileIdle: true
  11. - testOnBorrow: false
  12. - testOnReturn: false
  13. - removeAbandoned: true
  14. - removeAbandonedTimeout: 180