Class name: ReplicaQueryRuleConfiguration
Attributes:
Name | DataType | Description |
---|---|---|
dataSources (+) | Collection<ReplicaQueryDataSourceRuleConfiguration> | Data sources of primary and replicas |
loadBalancers (*) | Map<String, ShardingSphereAlgorithmConfiguration> | Load balance algorithm name and configurations of replica data sources |
Class name: ReplicaQueryDataSourceRuleConfiguration
Attributes:
Name | DataType | Description | Default Value |
---|---|---|---|
name | String | Replica query data source name | - |
primaryDataSourceName | String | Primary sources source name | - |
replicaDataSourceNames (+) | Collection<String> | Replica sources source name list | - |
loadBalancerName (?) | String | Load balance algorithm name of replica sources | Round robin load balance algorithm |
Please refer to Built-in Load Balance Algorithm List for more details about type of algorithm.