Mode

Configuration Item Explanation

Memory mode

  1. spring.shardingsphere.mode.type= # Memory

Standalone mode

  1. spring.shardingsphere.mode.type= # Standalone
  2. spring.shardingsphere.mode.repository.type= # Standalone Configuration persist type, such as: File
  3. spring.shardingsphere.mode.repository.props.path= # Configuration persist path
  4. spring.shardingsphere.mode.overwrite= # Local configurations overwrite file configurations or not; if they overwrite, each start takes reference of local configurations.

Cluster mode

  1. spring.shardingsphere.mode.type= # Cluster
  2. spring.shardingsphere.mode.repository.type= # Cluster persist type. Such as : Zookeeper,Etcd
  3. spring.shardingsphere.mode.repository.props.namespace= # Cluster instance namespace
  4. spring.shardingsphere.mode.repository.props.server-lists= # Zookeeper or Etcd server list. including IP and port number; use commas to separate
  5. spring.shardingsphere.mode.overwrite= # Local configurations overwrite config center configurations or not; if they overwrite, each start takes reference of local configurations.