Commit 48715d71 authored by lisong's avatar lisong

修改配置

parent eb0fc377
...@@ -10,7 +10,7 @@ eureka.instance.lease-expiration-duration-in-seconds=10 ...@@ -10,7 +10,7 @@ eureka.instance.lease-expiration-duration-in-seconds=10
eureka.instance.lease-renewal-interval-in-seconds=5 eureka.instance.lease-renewal-interval-in-seconds=5
eureka.instance.metadata-map.management.context-path=${server.servlet.context-path}/actuator eureka.instance.metadata-map.management.context-path=${server.servlet.context-path}/actuator
eureka.instance.status-page-url-path=/actuator/info eureka.instance.status-page-url-path=/actuator/info
eureka.instance.ip-address=172.16.3.56 eureka.instance.ip-address=172.16.3.32
ribbon.eureka.enabled = true ribbon.eureka.enabled = true
ribbon.ConnectTimeout = 5000 ribbon.ConnectTimeout = 5000
...@@ -147,7 +147,7 @@ spring.shardingsphere.props.sql-show= true ...@@ -147,7 +147,7 @@ spring.shardingsphere.props.sql-show= true
spring.shardingsphere.datasource.names=ds0 spring.shardingsphere.datasource.names=ds0
spring.shardingsphere.props.max-connections-size-per-query=5 spring.shardingsphere.props.max-connections-size-per-query=5
shardingsphere.create.tables.num=5 shardingsphere.create.tables.num=10
# ds0 # ds0
spring.shardingsphere.datasource.ds0.type=com.zaxxer.hikari.HikariDataSource spring.shardingsphere.datasource.ds0.type=com.zaxxer.hikari.HikariDataSource
spring.shardingsphere.datasource.ds0.driver-class-name=cn.com.vastbase.Driver spring.shardingsphere.datasource.ds0.driver-class-name=cn.com.vastbase.Driver
...@@ -164,13 +164,13 @@ spring.shardingsphere.datasource.ds0.maximum-pool-size=50 ...@@ -164,13 +164,13 @@ spring.shardingsphere.datasource.ds0.maximum-pool-size=50
#??????????????? #???????????????
# ???????????????????????user_id ????????????????????? user_id ???????? # ???????????????????????user_id ????????????????????? user_id ????????
spring.shardingsphere.rules.sharding.tables.p_plan_task_history.actual-data-nodes = ds0.p_plan_task_history_$->{1..2} spring.shardingsphere.rules.sharding.tables.p_plan_task_history.actual-data-nodes = ds0.p_plan_task_history_$->{1..${shardingsphere.create.tables.num}}
spring.shardingsphere.rules.sharding.tables.p_plan_task_detail_history.actual-data-nodes = ds0.p_plan_task_detail_history_$->{1..2} spring.shardingsphere.rules.sharding.tables.p_plan_task_detail_history.actual-data-nodes = ds0.p_plan_task_detail_history_$->{1..${shardingsphere.create.tables.num}}
spring.shardingsphere.rules.sharding.tables.p_check_history.actual-data-nodes = ds0.p_check_history_$->{1..2} spring.shardingsphere.rules.sharding.tables.p_check_history.actual-data-nodes = ds0.p_check_history_$->{1..${shardingsphere.create.tables.num}}
spring.shardingsphere.rules.sharding.tables.p_check_input_history.actual-data-nodes = ds0.p_check_input_history_$->{1..2} spring.shardingsphere.rules.sharding.tables.p_check_input_history.actual-data-nodes = ds0.p_check_input_history_$->{1..${shardingsphere.create.tables.num}}
spring.shardingsphere.rules.sharding.tables.p_check_shot_history.actual-data-nodes = ds0.p_check_shot_history_$->{1..2} spring.shardingsphere.rules.sharding.tables.p_check_shot_history.actual-data-nodes = ds0.p_check_shot_history_$->{1..${shardingsphere.create.tables.num}}
#spring.shardingsphere.sharding.default-data.source-name=ds0 spring.shardingsphere.sharding.default-data.source-name=ds0
spring.main.allow-bean-definition-overriding=true spring.main.allow-bean-definition-overriding=true
# -----???? # -----????
...@@ -192,19 +192,19 @@ spring.shardingsphere.rules.sharding.tables.p_check_shot_history.table-strategy. ...@@ -192,19 +192,19 @@ spring.shardingsphere.rules.sharding.tables.p_check_shot_history.table-strategy.
#???????? #????????
spring.shardingsphere.rules.sharding.sharding-algorithms.task-inline.type=INLINE spring.shardingsphere.rules.sharding.sharding-algorithms.task-inline.type=INLINE
spring.shardingsphere.rules.sharding.sharding-algorithms.task-inline.props.algorithm-expression=p_plan_task_history_$->{id % 2 + 1} spring.shardingsphere.rules.sharding.sharding-algorithms.task-inline.props.algorithm-expression=p_plan_task_history_$->{id % ${shardingsphere.create.tables.num} + 1}
spring.shardingsphere.rules.sharding.sharding-algorithms.task-detail-inline.type=INLINE spring.shardingsphere.rules.sharding.sharding-algorithms.task-detail-inline.type=INLINE
spring.shardingsphere.rules.sharding.sharding-algorithms.task-detail-inline.props.algorithm-expression=p_plan_task_detail_history_$->{id % 2 + 1} spring.shardingsphere.rules.sharding.sharding-algorithms.task-detail-inline.props.algorithm-expression=p_plan_task_detail_history_$->{id % ${shardingsphere.create.tables.num} + 1}
spring.shardingsphere.rules.sharding.sharding-algorithms.check-inline.type=INLINE spring.shardingsphere.rules.sharding.sharding-algorithms.check-inline.type=INLINE
spring.shardingsphere.rules.sharding.sharding-algorithms.check-inline.props.algorithm-expression=p_check_history_$->{id % 2 + 1} spring.shardingsphere.rules.sharding.sharding-algorithms.check-inline.props.algorithm-expression=p_check_history_$->{id % ${shardingsphere.create.tables.num} + 1}
spring.shardingsphere.rules.sharding.sharding-algorithms.check-input-inline.type=INLINE spring.shardingsphere.rules.sharding.sharding-algorithms.check-input-inline.type=INLINE
spring.shardingsphere.rules.sharding.sharding-algorithms.check-input-inline.props.algorithm-expression=p_check_input_history_$->{id % 2 + 1} spring.shardingsphere.rules.sharding.sharding-algorithms.check-input-inline.props.algorithm-expression=p_check_input_history_$->{id % ${shardingsphere.create.tables.num} + 1}
spring.shardingsphere.rules.sharding.sharding-algorithms.check-shot-inline.type=INLINE spring.shardingsphere.rules.sharding.sharding-algorithms.check-shot-inline.type=INLINE
spring.shardingsphere.rules.sharding.sharding-algorithms.check-shot-inline.props.algorithm-expression=p_check_shot_history_$->{id % 2 + 1} spring.shardingsphere.rules.sharding.sharding-algorithms.check-shot-inline.props.algorithm-expression=p_check_shot_history_$->{id % ${shardingsphere.create.tables.num} + 1}
# -----???? # -----????
logging.level.com.baomidou=debug logging.level.com.baomidou=debug
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment