Logo
Mode Configuration

Mode Configuration #

Default is Memory mode.

Configuration Item Explanation #

spring.shardingsphere.mode.type= # Type of mode configuration. Values could be: Cluster
spring.shardingsphere.mode.repository= # Persist repository configuration. Memory type does not need persist

Cluster Mode #

spring.shardingsphere.mode.type=Cluster
spring.shardingsphere.mode.repository.type= # Type of persist repository
spring.shardingsphere.mode.repository.props.namespace= # Namespace of registry center
spring.shardingsphere.mode.repository.props.server-lists= # Server lists of registry center
spring.shardingsphere.mode.repository.props.<key>= # Properties of persist repository

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