1、最近业务总是报redis异常,而且总是凌晨1点左右
16/07/18 01:02:30 ERROR ShardedDaoImpl: sharded redis lrange: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection timed out at redis.clients.jedis.Connection.connect(Connection.java:148) at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75) at redis.clients.jedis.Connection.sendCommand(Connection.java:77) at redis.clients.jedis.BinaryClient.lrange(BinaryClient.java:293) at redis.clients.jedis.Client.lrange(Client.java:214) at redis.clients.jedis.Jedis.lrange(Jedis.java:995) at redis.clients.jedis.ShardedJedis.lrange(ShardedJedis.java:291)
2、redis监控,显示有问题,于是怀疑是网络问题,于是添加网络监控
,网络都是通的,但是redis端口不通,于是找到运维,结果运维兄弟说做了定期持久化,而且用了save方式,因为save是阻塞的,于是让他们改成bgsave方式