Shadow DB
- Root Configuration
- Shadow Data Source Configuration
- Shadow Table Configuration
- Shadow Algorithm Configuration
Root Configuration
Class name: org.apache.shardingsphere.shadow.api.config.ShadowRuleConfiguration
Attributes:
Name | DataType | Description | Default Value |
---|---|---|---|
enable | boolean | Shadow DB switch. Optional values: true/false | false |
dataSources | Map<String, ShadowDataSourceConfiguration> | Shadow data source mapping name and configuration | None |
tables | Map<String, ShadowTableConfiguration> | Shadow table name and configuration | None |
defaultShadowAlgorithmName | String | default shadow algorithm name | Option item |
shadowAlgorithms | Map<String, ShardingSphereAlgorithmConfiguration> | Shadow algorithm name and configuration | None |
Shadow Data Source Configuration
Class name: org.apache.shardingsphere.shadow.api.config.datasource.ShadowDataSourceConfiguration
Attributes:
Name | DataType | Description | Default Value |
---|---|---|---|
sourceDataSourceName | String | Production data source name | None |
shadowDataSourceName | String | Shadow data source name | None |
Shadow Table Configuration
Class name: org.apache.shardingsphere.shadow.api.config.table.ShadowTableConfiguration
Attributes:
Name | DataType | Description | Default Value |
---|---|---|---|
dataSourceNames | Collection<String> | Shadow table location shadow data source names | None |
shadowAlgorithmNames | Collection<String> | Shadow table location shadow algorithm names | None |
Shadow Algorithm Configuration
Please refer to Built-in Shadow Algorithm List.
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .