Logo
Mode Configuration

Mode Configuration #

Configuration entry #

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

configurable properties:

NameData typeDescriptionDefault value
typeStringOperation mode type
Optional configuration: Memory, Standalone, Cluster
Memory
repositoryPersistRepositoryConfigurationPersistence repository configuration
Memory type does not need to be persistent, it can be null
Standalone type uses StandalonePersistRepositoryConfiguration
Cluster type uses ClusterPersistRepositoryConfiguration

Cluster Persistence Configuration #

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

configurable properties:

NameData typeDescription
typeStringPersistence repository type
namespaceStringregistry namespace
serverListsStringRegistry connection address
propsPropertiesPersistence repository required properties

For details on persistent warehouse types, refers to Built-in persistent repository types list.