Mode Configuration

Default is Memory mode.

Configuration Item Explanation

  1. spring.shardingsphere.mode.type= # Type of mode configuration. Values could be: Memory, Standalone, Cluster
  2. spring.shardingsphere.mode.repository= # Persist repository configuration. Memory type does not need persist
  3. spring.shardingsphere.mode.overwrite= # Whether overwrite persistent configuration with local configuration

Memory Mode

  1. spring.shardingsphere.mode.type=Memory

Standalone Mode

  1. spring.shardingsphere.mode.type=Standalone
  2. spring.shardingsphere.mode.repository.type= # Type of persist repository
  3. spring.shardingsphere.mode.repository.props.<key>= # Properties of persist repository
  4. spring.shardingsphere.mode.overwrite= # Whether overwrite persistent configuration with local configuration

Cluster Mode

  1. spring.shardingsphere.mode.type=Cluster
  2. spring.shardingsphere.mode.repository.type= # Type of persist repository
  3. spring.shardingsphere.mode.repository.props.namespace= # Namespace of registry center
  4. spring.shardingsphere.mode.repository.props.server-lists= # Server lists of registry center
  5. spring.shardingsphere.mode.repository.props.<key>= # Properties of persist repository
  6. spring.shardingsphere.mode.overwrite= # Whether overwrite persistent configuration with local configuration

Please refer to Builtin Persist Repository List for more details about type of repository.