Add support for Redis Sentinel configuration
Spring Data Redis 1.4.0 introduced Redis Sentinel support. When specified, RedisConnectionFactory uses the Sentinel configuration to determine the current master. Sentinel configuration can be specified using two new properties: spring.redis.sentinel.master and spring.redis.sentinel.nodes. For example: spring.redis.sentinel.master=mymaster # name of redis server spring.redis.sentinel.nodes=127.0.0.1:26379,127.0.0.1:26380 Alternatively, a bean of type RedisSentinelConfiguration can be declared and it will be used to configure the connection factory. Note: At this time, Sentinel support is only available for Jedis Closes gh-1337
This commit is contained in:
committed by
Andy Wilkinson
parent
fbeb8c966c
commit
c8a4891441
@@ -261,6 +261,8 @@ content into your application; rather pick only the properties that you need.
|
||||
spring.redis.pool.min-idle=0
|
||||
spring.redis.pool.max-active=8
|
||||
spring.redis.pool.max-wait=-1
|
||||
spring.redis.sentinel.master= # name of Redis server
|
||||
spring.redis.sentinel.nodes= # comma-separated list of host:port pairs
|
||||
|
||||
# ACTIVEMQ ({sc-spring-boot-autoconfigure}/jms/activemq/ActiveMQProperties.{sc-ext}[ActiveMQProperties])
|
||||
spring.activemq.broker-url=tcp://localhost:61616 # connection URL
|
||||
|
||||
Reference in New Issue
Block a user