You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dataSources:
m1:
dataSourceClassName: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
url:
username:
password:
m2:
dataSourceClassName: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
url:
username:
password:
rules:
- !SINGLE
tables:
- m2.my_table_without_sharding
...**<422 items>**
- !SHARDING
tables:
here is the sharding config
shardingAlgorithms:
here is the sharding config
keyGenerators:
snowflake:
type: custom_snowflake_id
props:
sql-show: true
When I adding a new "- !SINGLE" table for sharding, I hava to add this config for 4 environment(dev,sit,uat,prod) and all project modules (50 odules) have to adding these table config, and they are all the same!
So how to config common rule config for sharding-jdbc:5.5.0?
The text was updated successfully, but these errors were encountered:
Here is the datasource config, rules must use same dataSource when I try to config "- !SINGLE" m1.my_single_table and "- !SHARDING" m2.my_sharding_table, I got Exception: all tables must be in the same compute node
So how to make sure both m1 and m2 work together?
m1 for single and m2 for sharding?
I have 50 project module and each of them using sharding-jdbc now, and I have to config all tables for dev,sit,uat,prod env:
Here is the sharding-uat.yaml:
When I adding a new "- !SINGLE" table for sharding, I hava to add this config for 4 environment(dev,sit,uat,prod) and all project modules (50 odules) have to adding these table config, and they are all the same!
So how to config common rule config for sharding-jdbc:5.5.0?
The text was updated successfully, but these errors were encountered: