ShardingSphere 4.x -Sharding-Proxy-Configuration Manual

Data Source and Sharding Configuration Instance

Sharding-Proxy supports multiple logic data source, each one of which is a yalm configuration document named with config- prefix. The following is the configuration instance of config-xxx.yaml.

Data Sharding

dataSources:

Read-Write Split

Data Masking

Data Sharding + Read-Write Split

Data Sharding + Data Masking

dataSources:

Overall Configuration Instance

Sharding-Proxy uses conf/server.yaml to configure the registry center, authentication information and common properties.

Orchestration

Orchestration can config config-center and registry-center now, as follow:

  • orchestrationType: config_center #config config-center
  • orchestrationType: registry_center #config registry_center
  • orchestrationType: config_center,registry_center #config config-center and registry_center

Authentication

Common property

Data Source and Sharding Configuration Item Explanation

Data Sharding

Read-Write Split

Data Masking

Overall Configuration Explanation

Orchestration

It is the same with Sharding-JDBC configuration.

Proxy Property

Authentication

It is used to verify the authentication to log in Sharding-Proxy, which must use correct user name and password after the configuration of them.

Yaml Syntax Explanation

!! means instantiation of that class

- means one or multiple can be included

[] means array, substitutable with -

Open-sourced distributed database middleware for data sharding, read-write splitting and BASE transaction. https://github.com/sharding-sphere/sharding-sphere