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/07/29 09:44:35 UTC

[GitHub] [shardingsphere] natehuangting opened a new issue, #19693: Read-write split configuration supports Cartesian product

natehuangting opened a new issue, #19693:
URL: https://github.com/apache/shardingsphere/issues/19693

   ## Feature Request
   
   ### Describe the feature you would like.
   
   I recently found that I need to configure a lot when configuring read-write separation.
   For example, the following configuration, there are only two, if there are 100, then the configuration file is very large
   
   ``` yaml
   readwrite_ds_0:
     staticStrategy:
       writeDataSourceName: ds_write_0
       readDataSourceNames:
         - ds_read_0
     loadBalancerName: randomreadwrite_ds_1:
     staticStrategy:
       writeDataSourceName: ds_write_1
       readDataSourceNames:
         - ds_read_1
     loadBalancerName: random
   ```
   
   So I want to optimize this configuration by cartesian product. The optimized configuration is as follows.
   ``` yaml
   readwrite_ds_${0..9}:
     staticStrategy:
       writeDataSourceName: ds_write_${0..9}
       readDataSourceNames:
         - ds_read_${0..9}
     loadBalancerName: random
   ```
   


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] terrymanu closed issue #19693: Read-write split configuration supports Cartesian product

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #19693: Read-write split configuration supports Cartesian product
URL: https://github.com/apache/shardingsphere/issues/19693


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