scala - Slick cannot change HikariCP connectionTimeout -
i'm trying change maximumpoolsize
, connectiontimeout
parameters hikaricp slick database, here settings inside of application.conf
testnet3databaseurl { datasourceclass = "slick.jdbc.databaseurldatasource" driver = "slick.driver.postgresdriver$" db { driver="org.postgresql.driver" url="jdbc:postgresql://localhost:5432/bitcoins-spv-node-testnet3" user="bitcoins-spv-node-admin" password="" queuesize=5000 numthreads=8 } connectiontimeout=3000 maximumpoolsize=100 }
now, when try , use database, error saying exception: java.sql.sqltimeoutexception: timeout after 1000ms of waiting connection.
why isn't timeout being set 3000ms
have specified in application.conf
?
this stupid mistake on part, here settings need be:
testnet3databaseurl { datasourceclass = "slick.jdbc.databaseurldatasource" driver = "slick.driver.postgresdriver$" db { driver="org.postgresql.driver" url="jdbc:postgresql://localhost:5432/bitcoins-spv-node-testnet3" user="bitcoins-spv-node-admin" password="" queuesize=5000 numthreads=8 connectiontimeout=3000 maximumpoolsize=100 } }
you can see how parsed here: https://github.com/slick/slick/blob/master/slick-hikaricp/src/main/scala/slick/jdbc/hikaricp/hikaricpjdbcdatasource.scala#l43-l55
Comments
Post a Comment