Shadow Database #
Configuration Entry #
Class name: org.apache.shardingsphere.shadow.api.config.ShadowRuleConfiguration
configurable properties:
Name | Data type | Description | Default value |
---|---|---|---|
dataSources | Map<String, ShadowDataSourceConfiguration> | Shadow data source mapping name and configuration | |
tables | Map<String, ShadowTableConfiguration> | Shadow table name and configuration | |
defaultShadowAlgorithmName | String | Default shadow algorithm name | |
shadowAlgorithms | Map<String, ShardingSphereAlgorithmConfiguration> | Shadow algorithm name and configuration | None |
Shadow Data Source Configuration #
Class name: org.apache.shardingsphere.shadow.api.config.datasource.ShadowDataSourceConfiguration
configurable properties:
Name | Data type | Description |
---|---|---|
sourceDataSourceName | String | Production data source name |
shadowDataSourceName | String | Shadow data source name |
Shadow Table Configuration #
Class name: org.apache.shardingsphere.shadow.api.config.table.ShadowTableConfiguration
configurable properties:
Name | Data type | Description |
---|---|---|
dataSourceNames | Collection<String> | Shadow table association shadow data source mapping name list |
shadowAlgorithmNames | Collection<String> | Shadow table association shadow algorithm name list |
Shadow Algorithm Configuration #
For details of shadow algorithm types, please refer toBuilt-in shadow algorithm list。