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/01/17 15:26:37 UTC

[GitHub] [shardingsphere] RaigorJiang opened a new pull request #14842: Add DistSQL syntax `SHOW SHARDING SCALING RULES`.

RaigorJiang opened a new pull request #14842:
URL: https://github.com/apache/shardingsphere/pull/14842


   For #14661, add DistSQL syntax `SHOW SHARDING SCALING RULES`.
   
   


-- 
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



[GitHub] [shardingsphere] sandynz merged pull request #14842: Add DistSQL syntax `SHOW SHARDING SCALING RULES`.

Posted by GitBox <gi...@apache.org>.
sandynz merged pull request #14842:
URL: https://github.com/apache/shardingsphere/pull/14842


   


-- 
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



[GitHub] [shardingsphere] sandynz commented on pull request #14842: Add DistSQL syntax `SHOW SHARDING SCALING RULES`.

Posted by GitBox <gi...@apache.org>.
sandynz commented on pull request #14842:
URL: https://github.com/apache/shardingsphere/pull/14842#issuecomment-1015041782


   More syntax found in `RQLStatement.g4`:
   ```
   showShardingScalingRules
       : SHOW SHARDING SCALING RULES (FROM schemaName)?
       ;
   ```
   
   Test result:
   ```
   mysql> SHOW SHARDING SCALING RULES FROM scaling_db;
   +-----------------+--------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+-----------------------------------------------------+----------------------------------------------------------------------+---------------------------------------------------+
   | name            | input                                                                                | output                                                                                 | stream_channel                                      | completion_detector                                                  | data_consistency_checker                          |
   +-----------------+--------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+-----------------------------------------------------+----------------------------------------------------------------------+---------------------------------------------------+
   | default_scaling | {"workerThread":40,"batchSize":1000,"rateLimiter":{"type":"QPS","props":{"qps":50}}} | {"workerThread":40,"batchSize":1000,"rateLimiter":{"type":"TPS","props":{"tps":2000}}} | {"type":"MEMORY","props":{"block-queue-size":1000}} | {"type":"IDLE","props":{"incremental-task-idle-minute-threshold":1}} | {"type":"DATA_MATCH","props":{"chunk-size":1000}} |
   +-----------------+--------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+-----------------------------------------------------+----------------------------------------------------------------------+---------------------------------------------------+
   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



[GitHub] [shardingsphere] sandynz commented on pull request #14842: Add DistSQL syntax `SHOW SHARDING SCALING RULES`.

Posted by GitBox <gi...@apache.org>.
sandynz commented on pull request #14842:
URL: https://github.com/apache/shardingsphere/pull/14842#issuecomment-1015033225


   Thanks.
   
   Verified, it works.
   
   ```
   mysql> SHOW SHARDING SCALING RULES;
   +-----------------+----------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+--------------------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------+
   | name            | input                                                                                  | output                                                                                   | stream_channel                                         | completion_detector                                                     | data_consistency_checker                            |
   +-----------------+----------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+--------------------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------+
   | default_scaling | {"workerThread":40,"batchSize":1000,"rateLimiter":{"type":"QPS","props":{"qps":50}}}   | {"workerThread":40,"batchSize":1000,"rateLimiter":{"type":"TPS","props":{"tps":2000}}}   | {"type":"MEMORY","props":{"block-queue-size":1000}}    | {"type":"IDLE","props":{"incremental-task-idle-minute-threshold":1}}    | {"type":"DATA_MATCH","props":{"chunk-size":1000}}   |
   | scaling_name1   |                                                                                        |                                                                                          |                                                        | {"type":"IDLE","props":{"incremental-task-idle-minute-threshold":"30"}} | {"type":"DATA_MATCH","props":{"chunk-size":"1000"}} |
   | scaling_name2   | {"workerThread":40,"batchSize":1000,"rateLimiter":{"type":"QPS","props":{"qps":"50"}}} | {"workerThread":40,"batchSize":1000,"rateLimiter":{"type":"TPS","props":{"tps":"2000"}}} | {"type":"MEMORY","props":{"block-queue-size":"10000"}} | {"type":"IDLE","props":{"incremental-task-idle-minute-threshold":"30"}} | {"type":"DATA_MATCH","props":{"chunk-size":"1000"}} |
   | scaling_name3   | {"workerThread":40,"batchSize":1000,"rateLimiter":{"type":"QPS","props":{"qps":"50"}}} | {"workerThread":40,"batchSize":1000,"rateLimiter":{"type":"TPS","props":{"tps":"2000"}}} | {"type":"MEMORY","props":{"block-queue-size":"10000"}} |                                                                         |                                                     |
   +-----------------+----------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+--------------------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------+
   4 rows 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