-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Support multiple schema for Sharding-proxy #1046
Comments
Here are some coding details. About front handler: About execute command: About sql parsing: About JDBCBackendHandler: About NettyBackendHandler: About orchestration: |
Supported SQL Unsupported SQL |
I add some new tasks, let's support more DAL |
I just refactor some places:
|
Sharding-Proxy just have one default logic database which is sharding_db and it and it can't be configured. Now , We will add multiple logic schema configurations to improve availability!
Here are some details about this implementation:
About configuration, we will pull orchestration and proxyAuthority configurations out and save them in a new configuration file like server.yaml. And the shardingrule configurations then takes the form of one schemal corresponding to one config.yaml file.
About orchestration, we will adjust to add schemalName to the configuration path.
About frontend command processing, when receive the COM_INIT_DB command and sql execution of 'use database' , we save the current schemal in the FrontendHandler.
About SQL execution, when BackendHandler is built, the corresponding RuleRegistry is retrieved from the current schemal for subsequent execution processing. For some SQL statements that do not require of schemal (like 'show databases'), we are currently processing by setting up a default schemal from the configurations.This is not a good solution, we will consider optimizing it later.
task list.
The text was updated successfully, but these errors were encountered: