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 2021/07/08 08:08:21 UTC

[GitHub] [shardingsphere] half-pa opened a new issue #11213: shardingproxy:readwrite-splitting does not work

half-pa opened a new issue #11213:
URL: https://github.com/apache/shardingsphere/issues/11213


   version:5.0-beta
   config-master-slave.xml
   config:
   `schemaName: master_slave_db
   
   dataSources:
     master:
       url: jdbc:mysql://ocalhost:3306/put_up1?useUnicode=true&characterEncoding=utf-8&useSSL=false&useAffectedRows=true&autoReconnect=true
       username: fowrite
       password: 717jL4H729apESWqeDsOnUX6P1iPvO+U2wt9rGI
       connectionTimeoutMilliseconds: 660000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 300000
       maxPoolSize: 3000
       minPoolSize: 10
       maintenanceIntervalMilliseconds: 30000
       keepaliveTime: 260000
     slave0:
       url: jdbc:mysql://localhost:3306/put_up2?useUnicode=true&characterEncoding=utf-8&useSSL=false&useAffectedRows=true&autoReconnect=true
       username: forread
       password: (lZeDLLBr7EmHvgrVACiJjV3uoUGC4CuDzvIxv9tc
       connectionTimeoutMilliseconds: 660000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 300000
       maxPoolSize: 3000
       minPoolSize: 10
       maintenanceIntervalMilliseconds: 30000
       keepaliveTime: 260000
   
   rules:
     - !READWRITE_SPLITTING
       dataSources:
         pr_ds:
           writeDataSourceName: master
           readDataSourceNames:
             - slave0
           loadBalancerName: roundRobin
       loadBalancers:
         roundRobin:
           type: ROUND_ROBIN`
   
   when I excute1000 query sqls ,my master DB (DB for write) got the query request more than my slave DB 


-- 
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] strongduanmu commented on issue #11213: shardingproxy:readwrite-splitting does not work

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #11213:
URL: https://github.com/apache/shardingsphere/issues/11213#issuecomment-876862588


   @half-pa Do you mean to execute 1000 SQL at a time? This type of SQL is not currently supported, and multiple SQLs executed at a time may be of different types, which will lead to incorrect read-write routing.


-- 
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] terrymanu commented on issue #11213: shardingproxy:readwrite-splitting does not work

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #11213:
URL: https://github.com/apache/shardingsphere/issues/11213#issuecomment-927275323


   This is the basic feature, there are integrate tests running every commit.
   So, it is better to check the configuration of your program.


-- 
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] terrymanu closed issue #11213: shardingproxy:readwrite-splitting does not work

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #11213:
URL: https://github.com/apache/shardingsphere/issues/11213


   


-- 
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] half-pa commented on issue #11213: shardingproxy:readwrite-splitting does not work

Posted by GitBox <gi...@apache.org>.
half-pa commented on issue #11213:
URL: https://github.com/apache/shardingsphere/issues/11213#issuecomment-876887206


   @strongduanmu I have1000 threads, one query per thread, but more queries received by the master DB。not 1000 query SQL at a time。


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