LoginSignup
1
1

More than 5 years have passed since last update.

Spring Boot で Redis Sentinel を参照する

Posted at

application.yml

application.yml
spring:
  redis:
    sentinel:
      master: mymaster
      nodes: 192.168.10.11:26379,192.168.10.12:26379

Spring Data RedisでRedis Sentinelを利用する - Qiita

  • spring-data-redis 1.6.1.RELEASE 現在の記載方法
  • mymasterはSentinelの設定名で
  • 普通のRedisと同様に動き、Spring Session のストアとかも特別な記述はいらない

関連

Redis, Redis Sentinel の導入 - Qiita

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1