为了更快的定位您的问题,请提供以下信息,谢谢
【详述】通过SMT工具进行迁移,源端为同一个数据库,配置多个同步任务报错,经过尝试发现最多只能配置18个任务,超过就报错:
Caused by: java.sql.SQLTransientConnectionException: connection-pool-x.x.x.x:3306 - Connection is not available, request timed out after 30000ms.
at com.ververica.cdc.connectors.shaded.com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:696) ~[flink-sql-connector-mysql-cdc-2.4.0.jar:2.4.0]
at com.ververica.cdc.connectors.shaded.com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:197) ~[flink-sql-connector-mysql-cdc-2.4.0.jar:2.4.0]
at com.ververica.cdc.connectors.shaded.com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:162) ~[flink-sql-connector-mysql-cdc-2.4.0.jar:2.4.0]
at com.ververica.cdc.connectors.shaded.com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:100) ~[flink-sql-connector-mysql-cdc-2.4.0.jar:2.4.0]
at com.ververica.cdc.connectors.mysql.source.connection.JdbcConnectionFactory.connect(JdbcConnectionFactory.java:59) ~[flink-sql-connector-mysql-cdc-2.4.0.jar:2.4.0]
at io.debezium.jdbc.JdbcConnection.connection(JdbcConnection.java:888) ~[flink-sql-connector-mysql-cdc-2.4.0.jar:2.4.0]
at io.debezium.jdbc.JdbcConnection.connection(JdbcConnection.java:883) ~[flink-sql-connector-mysql-cdc-2.4.0.jar:2.4.0]
at io.debezium.jdbc.JdbcConnection.connect(JdbcConnection.java:411) ~[flink-sql-connector-mysql-cdc-2.4.0.jar:2.4.0]
at com.ververica.cdc.connectors.mysql.debezium.DebeziumUtils.openJdbcConnection(DebeziumUtils.java:68) ~[flink-sql-connector-mysql-cdc-2.4.0.jar:2.4.0]
... 19 more
【背景】基于SMT做同步操作报错,尝试设置参数:
‘debezium.connect.timeout.ms’ = ‘300000’,
‘connect.timeout’ = ‘300000’,
‘connection.pool.size’ = ‘300’,
均无效果
源端数据库访问正常,经查,可能是hikaripool导致,需要修改pool参数,但这样是不是需要修改SMT源码?
想确认问题原因,如果是上面pool参数设置,能否将参数开放,或者已开放如何设置?