Readwrite-splitting

Root Configuration

Class name: ReadwriteSplittingRuleConfiguration

Attributes:

NameDataTypeDescription
dataSources (+)Collection<ReadwriteSplittingDataSourceRuleConfiguration>Data sources of write and reads
loadBalancers (*)Map<String, ShardingSphereAlgorithmConfiguration>Load balance algorithm name and configurations of replica data sources

Readwrite-splitting Data Source Configuration

Class name: ReadwriteSplittingDataSourceRuleConfiguration

Attributes:

NameDataTypeDescriptionDefault Value
nameStringReadwrite-splitting data source name-
writeDataSourceNameStringWrite sources source name-
readDataSourceNames (+)Collection<String>Read sources source name list-
loadBalancerName (?)StringLoad balance algorithm name of replica sourcesRound robin load balance algorithm

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.