Using the AWS Advanced JDBC Wrapper with HikariCP and MySQL #1215
Replies: 1 comment
-
Why was this issue closed? I am also concerned that docs here it is suggested that "When using the AwsWrapperDataSource you must specify the dataSourceClassName, and the HikariDataSource.setJdbcUrl method should not be used.". HikariCP docs suggest here that the opposite should be done by setting jdbcUrl due to MySQL DataSource's broken network timeout support |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello I'm trying to better understand a few things with regards to configuring the AWS Advanced JDBC Wrapper with HikariCP and MySQL. I notice here that the example is using
ds.addDataSourceProperty("targetDataSourceClassName", "com.mysql.cj.jdbc.MysqlDataSource");
. The HikariCP docs, however, indicate "The MySQL DataSource is known to be broken with respect to network timeout support. Use jdbcUrl configuration instead.". From what I understand I believe these network timeout issues should still be relevant when using theAwsWrapperDataSource
withMysqlDataSource
as the underlyingtargetDataSourceClassName
? One thing I don't entirely understand is if this will have a significant impact on how physical connections are replaced in the event of a failover (for context our typical plugin configuration would befailover2,efm2,auroraConnectionTracker
)? One of my concerns here is whether or not HikariCP will still maintain control over new connection creation? My underlying concern here is ensuring the preservation of default settings the pool has been instructed to use when establishing a new connection. I know some connection settings are tracked, but I'm not particularly concerned with this as we do not typically change connection settings after connections are established (e.g. if we have a special use case that requires a non-standard transaction isolation level we typically recommend establishing a pool for this use case where all connections have this isolation level setting). Any guidance here would be much appreciated!Beta Was this translation helpful? Give feedback.
All reactions