The best config of vertical databases
What is the best config of vertical databases? more than 400 tables, only vertical databases, about ten main databases, each main database has two slave databases。 Looking forward to your reply, thanks!
Hi, @fantacy2001 , what's your meaning in detail of vertical databases?
Hi, @fantacy2001 , what's your meaning in detail of
vertical databases?
Do I just need to add configuration?like this: master,master_slave0,master_slave1,authority,authority_slave0,authority_slave1
master
spring.shardingsphere.sharding.tables.auto_device.actual-data-nodes=master.auto_device spring.shardingsphere.sharding.tables.band_info.actual-data-nodes=master.band_info
authority
spring.shardingsphere.sharding.tables.au_data_rule.actual-data-nodes=authority.au_data_rule spring.shardingsphere.sharding.tables.au_module.actual-data-nodes=authority.au_module
if i have too many tables in this config(about Four hundred), Does it affect performance? thank you!
+1
You means all databases have the same structures. And wanna config them in a simple style?
You means all databases have the same structures. And wanna config them in a simple style?
i mean 400 tables Split into different databases by business, each database has different tables. like this config ,is ok ?
spring.shardingsphere.datasource.names=master,master_slave0,master_slave1,authority,authority_slave0,authority_slave1 master库配置: spring.shardingsphere.sharding.tables.auto_device.actual-data-nodes=master.auto_device spring.shardingsphere.sharding.tables.band_info.actual-data-nodes=master.band_info authority库配置: spring.shardingsphere.sharding.tables.au_data_rule.actual-data-nodes=authority.au_data_rule spring.shardingsphere.sharding.tables.au_module.actual-data-nodes=authority.au_module
If you means many different tables in ten db, and how about performance. I suggest you can clone the latest master code and build it:
mvn clean install -Prelease
And try the distribution to see how long will all metadata loaded, these info will show in console logs.
If you means many different tables in ten db, and how about performance. I suggest you can clone the latest master code and build it:
mvn clean install -Prelease
And try the distribution to see how long will all metadata loaded, these info will show in console logs. sorry, I may not have expressed it clearly. My question has two points: 1、Vertical sharding databases by business, Is it feasible to follow the configuration I mentioned above? 2、use sharding-jdbc,If there are many tables split into different databases , will there be performance problems when routing?
You can make an investigation for your own cases as a POC.
May I close this issue?
May I close this issue?
please close it ,thank you !