kxw07 commented on issue #10127:
URL:
https://github.com/apache/shardingsphere/issues/10127#issuecomment-866145345
Updated:
Using sharding-sphere 5.0.0-beta with yaml below load-balancer works.
```yaml
spring:
shardingsphere:
props:
sql-show: true
datasource:
names: write,read1,read2
write:
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://localhost:3316/java_course
username: root
password: ''
read1:
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://localhost:3316/java_course
username: root
password: ''
read2:
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://localhost:3326/java_course
username: root
password: ''
rules:
readwrite-splitting:
dataSources:
group1:
writeDataSourceName: write
readDataSourceNames: read1, read2
load-balancer-name: round_robin
load-balancers:
round_robin:
type: ROUND_ROBIN
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]