|
|
@@ -1,7 +1,7 @@
|
|
|
dataSources:
|
|
|
vbdsm: !!com.alibaba.druid.pool.DruidDataSource
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver
|
|
|
- url: jdbc:mysql://47.112.30.247:13306/vbdsm?characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false&useSSL=false
|
|
|
+ url: jdbc:mysql://47.112.30.247:23306/vbdsm?characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false&useSSL=false
|
|
|
username: root
|
|
|
password: 123456
|
|
|
filters: stat
|
|
|
@@ -14,7 +14,7 @@ dataSources:
|
|
|
poolPreparedStatements: true
|
|
|
vbdsm_2023: !!com.alibaba.druid.pool.DruidDataSource
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver
|
|
|
- url: jdbc:mysql://47.112.30.247:13306/vbdsm_2023?characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false&useSSL=false
|
|
|
+ url: jdbc:mysql://47.112.30.247:23306/vbdsm_2023?characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false&useSSL=false
|
|
|
username: root
|
|
|
password: 123456
|
|
|
filters: stat
|
|
|
@@ -28,7 +28,7 @@ dataSources:
|
|
|
maxOpenPreparedStatements: 100
|
|
|
vbdsm_2024: !!com.alibaba.druid.pool.DruidDataSource
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver
|
|
|
- url: jdbc:mysql://47.112.30.247:13306/vbdsm_2024?characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false&useSSL=false
|
|
|
+ url: jdbc:mysql://47.112.30.247:23306/vbdsm_2024?characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false&useSSL=false
|
|
|
username: root
|
|
|
password: 123456
|
|
|
filters: stat
|
|
|
@@ -40,10 +40,9 @@ dataSources:
|
|
|
testWhileIdle: true
|
|
|
poolPreparedStatements: true
|
|
|
maxOpenPreparedStatements: 100
|
|
|
-
|
|
|
vbdsm_sysbase: !!com.alibaba.druid.pool.DruidDataSource
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver
|
|
|
- url: jdbc:mysql://47.112.30.247:13306/vbdsm_sysbase?characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false&useSSL=false
|
|
|
+ url: jdbc:mysql://47.112.30.247:23306/vbdsm_sysbase?characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false&useSSL=false
|
|
|
username: root
|
|
|
password: 123456
|
|
|
filters: stat
|
|
|
@@ -57,7 +56,7 @@ dataSources:
|
|
|
maxOpenPreparedStatements: 100
|
|
|
vbdsm_powergov: !!com.alibaba.druid.pool.DruidDataSource
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver
|
|
|
- url: jdbc:mysql://47.112.30.247:13306/vbdsm_powergov?characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false&useSSL=false
|
|
|
+ url: jdbc:mysql://47.112.30.247:23306/vbdsm_powergov?characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false&useSSL=false
|
|
|
username: root
|
|
|
password: 123456
|
|
|
filters: stat
|
|
|
@@ -71,8 +70,20 @@ dataSources:
|
|
|
maxOpenPreparedStatements: 100
|
|
|
shardingRule:
|
|
|
tables:
|
|
|
+ online_data_water:
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.online_data_water_0${1..9},vbdsm_${2023..2024}.online_data_water_${10..12}
|
|
|
+ databaseStrategy:
|
|
|
+ standard:
|
|
|
+ shardingColumn: upload_date
|
|
|
+ preciseAlgorithmClassName: cn.vbdsm.statistic.db.sharding.PreciseDatabaseShardingAlgorithm
|
|
|
+ rangeAlgorithmClassName: cn.vbdsm.statistic.db.sharding.RangeDatabaseShardingAlgorithm
|
|
|
+ tableStrategy:
|
|
|
+ standard:
|
|
|
+ shardingColumn: upload_date
|
|
|
+ preciseAlgorithmClassName: cn.vbdsm.statistic.db.sharding.PreciseTableShardingAlgorithm
|
|
|
+ rangeAlgorithmClassName: cn.vbdsm.statistic.db.sharding.RangeTableShardingAlgorithm
|
|
|
t_online_warn:
|
|
|
- actualDataNodes: vbdsm_2023..2024.t_online_warn
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.t_online_warn
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -81,7 +92,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
analysis_output_date:
|
|
|
- actualDataNodes: vbdsm_2023..2024.analysis_output_date
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.analysis_output_date
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -90,7 +101,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
analysis_output_month:
|
|
|
- actualDataNodes: vbdsm_2023..2024.analysis_output_month
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.analysis_output_month
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -99,7 +110,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
analysis_yield_date:
|
|
|
- actualDataNodes: vbdsm_2023..2024.analysis_yield_date
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.analysis_yield_date
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -108,7 +119,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
analysis_yield_month:
|
|
|
- actualDataNodes: vbdsm_2023..2024.analysis_yield_month
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.analysis_yield_month
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -117,7 +128,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
company_output_date:
|
|
|
- actualDataNodes: vbdsm_2023..2024.company_output_date
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.company_output_date
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -126,7 +137,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
company_output_month:
|
|
|
- actualDataNodes: vbdsm_2023..2024.company_output_month
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.company_output_month
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -135,7 +146,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
company_yield_date:
|
|
|
- actualDataNodes: vbdsm_2023..2024.company_yield_date
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.company_yield_date
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -144,7 +155,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
company_yield_month:
|
|
|
- actualDataNodes: vbdsm_2023..2024.company_yield_month
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.company_yield_month
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -153,7 +164,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
parks_output_date:
|
|
|
- actualDataNodes: vbdsm_2023..2024.parks_output_date
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.parks_output_date
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -162,7 +173,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
parks_output_month:
|
|
|
- actualDataNodes: vbdsm_2023..2024.parks_output_month
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.parks_output_month
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -171,7 +182,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
parks_yield_date:
|
|
|
- actualDataNodes: vbdsm_2023..2024.parks_yield_date
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.parks_yield_date
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -180,7 +191,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
parks_yield_month:
|
|
|
- actualDataNodes: vbdsm_2023..2024.parks_yield_month
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.parks_yield_month
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: upload_date
|
|
|
@@ -212,32 +223,32 @@ shardingRule:
|
|
|
none:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
- t_industry_date:
|
|
|
- actualDataNodes: vbdsm_powergov.t_industry_date
|
|
|
+ t_poweruser_product:
|
|
|
+ actualDataNodes: vbdsm_sysbase.t_poweruser_product
|
|
|
databaseStrategy:
|
|
|
none:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
- t_industry_month:
|
|
|
- actualDataNodes: vbdsm_powergov.t_industry_month
|
|
|
+ t_poweruser:
|
|
|
+ actualDataNodes: vbdsm_sysbase.t_poweruser
|
|
|
databaseStrategy:
|
|
|
none:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
- t_poweruser_product:
|
|
|
- actualDataNodes: vbdsm_sysbase.t_poweruser_product
|
|
|
+ t_company_fgp:
|
|
|
+ actualDataNodes: vbdsm_powergov.t_company_fgp
|
|
|
databaseStrategy:
|
|
|
none:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
- t_poweruser:
|
|
|
- actualDataNodes: vbdsm_sysbase.t_poweruser
|
|
|
+ t_industry_date:
|
|
|
+ actualDataNodes: vbdsm_powergov.t_industry_date
|
|
|
databaseStrategy:
|
|
|
none:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
- t_company_fgp:
|
|
|
- actualDataNodes: vbdsm_powergov.t_company_fgp
|
|
|
+ t_industry_month:
|
|
|
+ actualDataNodes: vbdsm_powergov.t_industry_month
|
|
|
databaseStrategy:
|
|
|
none:
|
|
|
tableStrategy:
|
|
|
@@ -261,7 +272,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
t_anal_date_avg:
|
|
|
- actualDataNodes: vbdsm_2023..2024.t_anal_date_avg
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.t_anal_date_avg
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: getDate
|
|
|
@@ -270,7 +281,7 @@ shardingRule:
|
|
|
tableStrategy:
|
|
|
none:
|
|
|
t_online_data_power:
|
|
|
- actualDataNodes: vbdsm_2023..2024.t_online_data_power_0${1..9},vbdsm_2023..2024.t_online_data_power_${10..12}
|
|
|
+ actualDataNodes: vbdsm_${2023..2024}.t_online_data_power_0${1..9},vbdsm_${2023..2024}.t_online_data_power_${10..12}
|
|
|
databaseStrategy:
|
|
|
standard:
|
|
|
shardingColumn: getTime
|