ReadQueryLoadBalanceAlgorithm

Fully-qualified class name

org.apache.shardingsphere.readwritesplitting.spi.ReadQueryLoadBalanceAlgorithm

Definition

Read query load balance algorithm’s definition

Implementation classes

Configuration TypeDescriptionFully-qualified class name
ROUND_ROBINthe read database load balancer algorithm based on pollingorg.apache.shardingsphere.readwritesplitting.algorithm.loadbalance.RoundRobinReadQueryLoadBalanceAlgorithm
RANDOMthe read database load balancer algorithm based on randomorg.apache.shardingsphere.readwritesplitting.algorithm.loadbalance.RandomReadQueryLoadBalanceAlgorithm
WEIGHTthe read database load balancer algorithm based on weightorg.apache.shardingsphere.readwritesplitting.algorithm.loadbalance.WeightReadQueryLoadBalanceAlgorithm