-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
The strategy of master-slave-rule is not valid #2306
Comments
thanks for feedback, I'll try to reproduce this problem in my local environment. |
we should add a sharding:load-balance-alogrithm tag to handle customize load-balance strategy, I'll fix this later. |
for #2306 fix customize load-balance strategy can't effective in sharding master slave.
for #2306 move load-balance-algorithm tag to master-slave namespace.
@gitOfhouge |
OK, I see. Thank you for your help. |
Version: Sharding-jdbc 4.0.0-RC1 release
Test: sharding-jdbc-spring-namespace
Database: Mysql 5.1.9
Description:
First, I
m sure that my configuration of master-slave is right. I want to use my own strategy of master-slave, so, I have implemented the strategy interface of master-slave by myself, but it
s not valid when I debug my own strategy of master-slave. Finally, I find its master when write DB and it
s slave when read DB. So, I guess that it`s default strategy not my own strategy when sharding database. Thank you!The text was updated successfully, but these errors were encountered: