Retro Eye care Haitian Deep Dark Default

Readwrite splitting

Configuration Item Explanation

spring.shardingsphere.datasource.names= # Omit the data source configuration, please refer to the usage<readwrite-splitting-data-source-name>.type= # Readwrite-splitting type, such as: Static, Dynamic<readwrite-splitting-data-source-name> # Auto aware data source name(Use with database discovery)<readwrite-splitting-data-source-name>.props.write-data-source-name= # Write data source name<readwrite-splitting-data-source-name> # Read data source names, multiple data source names separated with comma<readwrite-splitting-data-source-name>.load-balancer-name= # Load balance algorithm name

# Load balance algorithm configuration
spring.shardingsphere.rules.readwrite-splitting.load-balancers.<load-balance-algorithm-name>.type= # Load balance algorithm type
spring.shardingsphere.rules.readwrite-splitting.load-balancers.<load-balance-algorithm-name> # Load balance algorithm properties

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.