Commit ff01e279 authored by tangwei's avatar tangwei

增加配置

parent a4104114
...@@ -59,11 +59,23 @@ spring.redis.lettuce.pool.max-wait=-1 ...@@ -59,11 +59,23 @@ spring.redis.lettuce.pool.max-wait=-1
spring.redis.lettuce.shutdown-timeout=100 spring.redis.lettuce.shutdown-timeout=100
#单机集群判断 cluster集群 single单机 #单机集群判断 cluster集群 single单机
spring.redis.mode=single spring.redis.mode=cluster
#redis 单机配置
spring.redis.host=172.16.11.20
spring.redis.port=6379
#redis 单机配置
#spring.redis.host=172.16.11.20
#spring.redis.port=6379
#集群配置
spring.redis.cluster.nodes=172.16.3.41:6381,172.16.3.41:6002
spring.redis.cluster.max-redirects=3
spring.redis.cluster.scan-interval=1000
spring.redis.cluster.read-mode=SLAVE
spring.redis.cluster.retry-attempts=3
spring.redis.cluster.failed-attempts=3
spring.redis.cluster.slave-connection-pool-size=64
spring.redis.cluster.master-connection-pool-size=64
spring.redis.cluster.retry-interval=1500
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment