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 2020/11/18 09:16:21 UTC

[GitHub] [shardingsphere] xiaoliu10 commented on issue #8204: docker start sharding-proxy

xiaoliu10 commented on issue #8204:
URL: https://github.com/apache/shardingsphere/issues/8204#issuecomment-729545308


   this is rules properties: 
   rules:
   - !SHARDING
     tables:
       t_order:
         actualDataNodes: zookeeper_${[0,1,2]}.t_order_${[0,1,2]}
         databaseStrategy:
           standard:
             shardingColumn: order_id
             shardingAlgorithmName: hash_mode
         tableStrategy:
           standard:
             shardingColumn: user_id
             shardingAlgorithmName: hash_mode
         keyGenerateStrategy:
           column: order_id
           keyGeneratorName: reset_increment
     bindingTables:
       - t_order,t_order_item
     broadcastTables:
       - t_config
     defaultTableStrategy:
       standard:
         shardingColumn: order_id
         shardingAlgorithmName: hash_mode
     defaultDatabaseStrategy:
       standard:
         shardingColumn: user_id
         shardingAlgorithmName: hash_mode
   
     shardingAlgorithms:
       hash_mod:
         type: HASH_MOD
         props:
           sharding-count: 3
   
     keyGenerators:
       increment:
         type: INCREMENT
       reset_increment:
         type: RESET_INCREMENT


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

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