Readwrite-splitting
Configuration Item Explanation
dataSource: # Omit the data source configuration, please refer to the usage
rules:
- !READWRITE_SPLITTING
dataSources:
<data-source-name> (+): # Logic data source name of readwrite-splitting
writeDataSourceName: # Write data source name
readDataSourceNames:
- <read-data-source-name> (+) # Read data source name
loadBalancerName: # Load balance algorithm name
# Load balance algorithm configuration
loadBalancers:
<load-balancer-name> (+): # Load balance algorithm name
type: # Load balance algorithm type
props: # Load balance algorithm properties
# ...
props:
# ...
Please refer to Built-in Load Balance Algorithm List for more details about type of algorithm. Please refer to Use Norms for more details about query consistent routing.
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .