Algorithm

Sharding

  1. # sharding-algorithm-name is specified by users and its property should be consistent with that of sharding-algorithm-name in the sharding strategy.
  2. # type and props, please refer to the built-in sharding algorithm: https://shardingsphere.apache.org/document/current/en/user-manual/common-config/builtin-algorithm/sharding/
  3. spring.shardingsphere.rules.sharding.sharding-algorithms.<sharding-algorithm-name>.type=xxx
  4. spring.shardingsphere.rules.sharding.sharding-algorithms.<sharding-algorithm-name>.props.xxx=xxx

Encryption

  1. # encrypt-algorithm-name is specified by users, and its property should be consistent with that of encryptor-name in encryption rules.
  2. # type and props, please refer to the built-in encryption algorithm: https://shardingsphere.apache.org/document/current/en/user-manual/common-config/builtin-algorithm/encrypt/
  3. spring.shardingsphere.rules.encrypt.encryptors.<encrypt-algorithm-name>.type=xxx
  4. spring.shardingsphere.rules.encrypt.encryptors.<encrypt-algorithm-name>.props.xxx=xxx

Read/Write Splitting Load Balancer

  1. # load-balance-algorithm-name is specified by users, and its property has to be consistent with that of load-balancer-name in read/write splitting rules.
  2. # type and props, please refer to the built-in read/write splitting algorithm load balancer: https://shardingsphere.apache.org/document/current/en/user-manual/common-config/builtin-algorithm/load-balance/
  3. spring.shardingsphere.rules.readwrite-splitting.load-balancers.<load-balance-algorithm-name>.type=xxx
  4. spring.shardingsphere.rules.readwrite-splitting.load-balancers.<load-balance-algorithm-name>.props.xxx=xxx

Shadow DB

  1. # shadow-algorithm-name is specified by users, and its property has to be consistent with that of shadow-algorithm-names in shadow DB rules.
  2. # type and props, please refer to the built-in shadow DB algorithm: https://shardingsphere.apache.org/document/current/en/user-manual/common-config/builtin-algorithm/shadow/
  3. spring.shardingsphere.rules.shadow.shadow-algorithms.<shadow-algorithm-name>.type=xxx
  4. spring.shardingsphere.rules.shadow.shadow-algorithms.<shadow-algorithm-name>.props.xxx=xxx

High Availability

  1. # discovery-type-name is specified by users, and its property has to be consistent with that of discovery-type-name in database discovery rules.
  2. spring.shardingsphere.rules.database-discovery.discovery-types.<discovery-type-name>.type=xxx
  3. spring.shardingsphere.rules.database-discovery.discovery-types.<discovery-type-name>.props.xxx=xxx