zjcnb commented on PR #18517:
URL: https://github.com/apache/shardingsphere/pull/18517#issuecomment-1162881181
`Dynamic readwrite-splitting :`
```
mysql> show readwrite_splitting rules;
+----------------+-----------------------------+---------------------------------+------------------------+------------------------+--------------------+---------------------+
| name | auto_aware_data_source_name |
write-data-source-query-enabled | write_data_source_name |
read_data_source_names | load_balancer_type | load_balancer_props |
+----------------+-----------------------------+---------------------------------+------------------------+------------------------+--------------------+---------------------+
| replication_ds | readwrite_ds | false
| ds_1 | ds_0,ds_2 | |
|
+----------------+-----------------------------+---------------------------------+------------------------+------------------------+--------------------+---------------------+
1 row in set (0.00 sec)
mysql> show readwrite_splitting rules;
+----------------+-----------------------------+---------------------------------+------------------------+------------------------+--------------------+---------------------+
| name | auto_aware_data_source_name |
write-data-source-query-enabled | write_data_source_name |
read_data_source_names | load_balancer_type | load_balancer_props |
+----------------+-----------------------------+---------------------------------+------------------------+------------------------+--------------------+---------------------+
| replication_ds | readwrite_ds | true
| ds_1 | ds_0,ds_2 | |
|
+----------------+-----------------------------+---------------------------------+------------------------+------------------------+--------------------+---------------------+
1 row in set (0.01 sec)
```
`Static readwrite-splitting :`
```
mysql> show readwrite_splitting rules;
+--------------+-----------------------------+---------------------------------+------------------------+------------------------+--------------------+---------------------+
| name | auto_aware_data_source_name |
write-data-source-query-enabled | write_data_source_name |
read_data_source_names | load_balancer_type | load_balancer_props |
+--------------+-----------------------------+---------------------------------+------------------------+------------------------+--------------------+---------------------+
| readwrite_ds | |
| write_ds | read_ds_0,read_ds_1 | RANDOM |
|
+--------------+-----------------------------+---------------------------------+------------------------+------------------------+--------------------+---------------------+
1 row in set (0.01 sec)
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]