模式配置
参数解释
mode (?):
type:
repository (?):
overwrite:
单机模式
mode:
type: Standalone
repository:
type:
props:
foo_key: foo_value
bar_key: bar_value
overwrite:
集群模式 (推荐)
mode:
type: Cluster
repository:
type:
props:
namespace:
server-lists:
foo_key: foo_value
bar_key: bar_value
overwrite:
注意事项
- 生产环境建议使用集群模式部署。
- 集群模式部署推荐使用
ZooKeeper
注册中心。
配置示例
单机模式
mode:
type: Standalone
repository:
type: File
overwrite: false
集群模式 (推荐)
mode:
type: Cluster
repository:
type: ZooKeeper
props:
namespace: governance
server-lists: localhost:2181
retryIntervalMilliseconds: 500
timeToLiveSeconds: 60
overwrite: false
相关参考