Hi, community
In order to keep the local and registry center configuration uniform, we
plan to keep the local YAML configuration of data source consistent with
that in the registry center.
The local YAML configuration of data source is as follows:
dataSources:
ds_0: !!com.zaxxer.hikari.HikariDataSource
driverClassName: com.mysql.jdbc.Driver
jdbcUrl: jdbc:mysql://localhost:3306/demo_ds_0
username: root
password:
ds_1: !!com.zaxxer.hikari.HikariDataSource
driverClassName: com.mysql.jdbc.Driver
jdbcUrl: jdbc:mysql://localhost:3306/demo_ds_1
username: root
password:
and the configuration in the registry center is:
dataSources:
ds_0:
dataSourceClassName: com.zaxxer.hikari.HikariDataSource
props:
jdbcUrl: jdbc:mysql://
127.0.0.1:3306/demo_ds_0?serverTimezone=UTC&useSSL=false
username: root
password: null
connectionTimeout: 30000
idleTimeout: 60000
maxLifetime: 1800000
maxPoolSize: 50
minPoolSize: 1
maintenanceIntervalMilliseconds: 30000
readOnly: false
ds_1:
dataSourceClassName: com.zaxxer.hikari.HikariDataSource
props:
jdbcUrl: jdbc:mysql://
127.0.0.1:3306/demo_ds_1?serverTimezone=UTC&useSSL=false
username: root
password: null
connectionTimeout: 30000
idleTimeout: 60000
maxLifetime: 1800000
maxPoolSize: 50
minPoolSize: 1
maintenanceIntervalMilliseconds: 30000
readOnly: false
Related issue : https://github.com/apache/shardingsphere/issues/9406
**welcome your discussion!**
--
Haoran Meng
[email protected]