Algorithm

Sharding

  1. shardingAlgorithms:
  2. # algorithmName is specified by users, and its property has to be consistent with that of shardingAlgorithmName in the sharding strategy.
  3. <algorithmName>:
  4. # 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/
  5. type: xxx
  6. props:
  7. xxx: xxx

Encryption

  1. encryptors:
  2. # encryptorName is specified by users, and its property should be consistent with that of encryptorName in encryption rules.
  3. <encryptorName>:
  4. # 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/
  5. type: xxx
  6. props:
  7. xxx: xxx

Read/Write Splitting Load Balancer

  1. loadBalancers:
  2. # loadBalancerName is specified by users, and its property has to be consistent with that of loadBalancerName in read/write splitting rules.
  3. # 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/
  4. type: xxx
  5. props:
  6. xxx: xxx

Shadow DB

  1. loadBalancers:
  2. # shadowAlgorithmName is specified by users, and its property has to be consistent with that of shadowAlgorithmNames in shadow DB rules.
  3. <shadowAlgorithmName>:
  4. # 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/
  5. type: xxx
  6. props:
  7. xxx: xxx

High Availability

  1. discoveryTypes:
  2. # discoveryTypeName is specified by users, and its property has to be consistent with that of discoveryTypeName in the database discovery rules.
  3. type: xxx
  4. props:
  5. xxx: xxx