最近处理了一次由于redis集群扩容引发的线上故障,记录原因
某网站的某个用户关系服务,于2020-06-18下午2点钟左右,服务错误率大幅上升,最终错误率达到100%,服务完全不可用。
在发现异常的第一时间,使用自动化脚本快速重启了所有机器,服务在短时间恢复,最终不可用时间约为5分钟。
一.服务恢复后,检查日志发现如下错误
redis.clients.jedis.exceptions.JedisClusterMaxRedirectionsException: Too many Cluster redirections?
at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:34)
at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:83)
at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:67)
at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:83)
at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:67)
at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:83)
at redis.clients.jedis.JedisClusterComm