I set it in Spring RedisTemplate with the expectation that it will end with a timeout in 2000msec, but it may stay in Redis processing for about 10000msec.
Checking if it can be cleared by adding settings
Configured ・ Spring.redis.pool.max-wait = 2000 ・ Spring.redis.timeout = 2000
Under additional confirmation ・ Spring.redis.cluster.max-redirects
Result is... ・ If spring.redis.cluster.max-redirects is set to 1, it will wrap around 4000msec. 0 I regret not having tried it, but ... I'm a little closer to the expected value!
reference ・ Is the default 5 times? (2000 x 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
Recommended Posts