项目使用lettuce 客户端,双中心,在开启连接池可用性检测后问题有好转,但是另一个跨中心的访问一直报超时,检查了网络,性能。cpu,连接数,都正常,哪位朋友有啥好的办法,除了切换客户端外方法?
尝试的方案:查看redis 性能监控,显示正常
优化线程池,开启连接检测,开启后一个中心正常
查看网络,网络问题排除
有没有不切换客户端的方式进行解
org.springframework.dao.QueryTimeoutException:Redis is command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutExecption:command timed out after 2 second
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:70)
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41)
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44)
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42)
at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:273)
at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.convertLettuceAccessException(LettuceStringCommands.java:799)
at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.get(LettuceStringCommands.java:68)
at org.springframework.data.redis.connection.DefaultedRedisConnection.get(DefaultedRedisConnection.java:266)