Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

读写分离1主多从配置的时候,如果其中一台从数据库down掉,会导致整个数据源不可用的问题 #350

Closed
tangmin721 opened this issue Aug 29, 2017 · 1 comment

Comments

@tangmin721
Copy link

Which version of Sharding-Jdbc do you using?

1.5.2

Expected behavior

定义读写分离数据源, 读写分离数据源实现了DataSource接口, 可直接当做数据源处理 ,多个从用逗号隔开(如果从数据库其中一台连接不上,不知道为什么会报错)
<rdb:master-slave-data-source id="ds_0" master-data-source-ref="ds_0_master" slave-data-sources-ref="ds_0_slave_0,ds_0_slave_1" />

@terrymanu
Copy link
Member

terrymanu commented Aug 31, 2017

数据库治理方面将会在1.6.0统一做。先关闭了,现在暂时不会做

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants