Mode
Parameters
mode (?): # Default value is Standalone
type: # Type of mode configuration. Values could be: Standalone or Cluster
repository (?): # Persist repository configuration
Standalone Mode
mode:
type: Standalone
repository:
type: # Type of persist repository
props: # Properties of persist repository
foo_key: foo_value
bar_key: bar_value
Cluster Mode (recommended)
mode:
type: Cluster
repository:
type: # Type of persist repository
props: # Properties of persist repository
namespace: # Namespace of registry center
server-lists: # Server lists of registry center
foo_key: foo_value
bar_key: bar_value
Notes
- Cluster mode deployment is recommended for production environment.
- The
ZooKeeper
registry center is recommended for cluster mode deployment. - If there is configuration information in the
ZooKeeper
, please refer to the config information there.
Sample
Standalone Mode
mode:
type: Standalone
repository:
type: JDBC
Cluster Mode (recommended)
mode:
type: Cluster
repository:
type: ZooKeeper
props:
namespace: governance
server-lists: localhost:2181
retryIntervalMilliseconds: 500
timeToLiveSeconds: 60
Related References
- Installation and Usage of ZooKeeper Registry Center
- Please refer to Builtin Persist Repository List for more details about the type of repository.
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .