Logo
Mode Configuration

Mode Configuration #

Root Configuration #

Class name: org.apache.shardingsphere.infra.config.mode.ModeConfiguration

Attributes:

NameDataTypeDescriptionDefault Value
typeStringType of mode configuration
Values could be: Memory, Standalone, Cluster
Memory
repositoryPersistRepositoryConfigurationPersist repository configuration
Memory type does not need persist, could be null
Standalone type uses StandalonePersistRepositoryConfiguration
Cluster type uses ClusterPersistRepositoryConfiguration

Cluster Persist Configuration #

Class name: org.apache.shardingsphere.mode.repository.cluster.ClusterPersistRepositoryConfiguration

Attributes:

NameDataTypeDescription
typeStringType of persist repository
namespaceStringNamespace of registry center
serverListsStringServer lists of registry center
propsPropertiesProperties of persist repository

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