search

Home  >  Q&A  >  body text

phpredis - redis意外无法连接问题

业务端报出的问题:
有的机器出现Uncaught exception 'RedisException' with message 'Redis server went away'
还有些出现 Uncaught exception 'RedisException' with message 'socket error on read socket'
时间点
都是03:03-03:07这个时间段,但这个时间点并无网络堵塞,连接较之白天也无异常增加等情况~~ 请教给为大牛该如何分析这样的故障?

迷茫迷茫2864 days ago1090

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-21 11:18:57

    Does your redis have a large amount of data? Have you enabled scheduled writing of rdb or enabled aof log? Check the load on redis and see if there are any abnormalities in disk IO.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-21 11:18:57

    I have encountered problems with MySQL during a fixed time period in the early morning. After a long investigation, I found that the problem was caused by Alibaba Cloud's server doing backups in the early morning. Fixed in this time period, generally speaking, it is caused by background scheduled tasks (various scheduled tasks of the host service provider or itself).

    reply
    0
  • Cancelreply