You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/06/22 09:41:33 UTC
[GitHub] [shardingsphere] zjcnb commented on pull request #18517: Add show result write_data_source_query_enable for show readwrite_splitting rules
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org