3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Spring RedisTemplate Config Timeout設定

Last updated at Posted at 2018-05-14

Spring RedisTemplate で 2000msecでタイムアウトで終了を期待して設定したけど 10000msec ほど Redis の処理で滞留することがある

設定追加でクリアできるか確認中

設定済
・spring.redis.pool.max-wait=2000
・spring.redis.timeout=2000

追加確認中
・spring.redis.cluster.max-redirects

結果は...
・spring.redis.cluster.max-redirects を 1にしたら 4000msec くらいで折り返し
 0 試せてないのが心残りだけど...多少は期待値に近づいた!

参考
・デフォは5回?(2000×5...)
https://github.com/spring-projects/spring-data-redis/blob/master/src/main/java/org/springframework/data/redis/connection/jedis/JedisConnectionFactory.java#L412
・API
https://docs.spring.io/spring-boot/docs/1.5.7.RELEASE/reference/html/common-application-properties.html
https://docs.spring.io/spring-data/redis/docs/1.5.x/api/org/springframework/data/redis/connection/jedis/JedisConnectionFactory.html

3
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?