|
@@ -20,13 +20,16 @@ dubbo:
|
|
|
parameters:
|
|
parameters:
|
|
|
namespace: ${spring.profiles.active}
|
|
namespace: ${spring.profiles.active}
|
|
|
metadata-report:
|
|
metadata-report:
|
|
|
- address: redis://${spring.data.redis.host}:${spring.data.redis.port}
|
|
|
|
|
|
|
+ #address: redis://${spring.data.redis.host}:${spring.data.redis.port}
|
|
|
group: DUBBO_GROUP
|
|
group: DUBBO_GROUP
|
|
|
username: dubbo
|
|
username: dubbo
|
|
|
password: ${spring.data.redis.password}
|
|
password: ${spring.data.redis.password}
|
|
|
|
|
+ # redis 集群模式
|
|
|
|
|
+ cluster: true
|
|
|
parameters:
|
|
parameters:
|
|
|
namespace: ${spring.profiles.active}
|
|
namespace: ${spring.profiles.active}
|
|
|
- database: ${spring.data.redis.database}
|
|
|
|
|
|
|
+ #database: ${spring.data.redis.database}
|
|
|
|
|
+ backup: ${spring.data.redis.cluster.nodes}
|
|
|
# 消费者相关配置
|
|
# 消费者相关配置
|
|
|
consumer:
|
|
consumer:
|
|
|
# 结果缓存(LRU算法)
|
|
# 结果缓存(LRU算法)
|