redis在pub压力较大时,sub端错误Server closed the connection的解决方法

订阅端在发送压力较大时,约每秒大于5K左右时,会出现不稳定情况,会退出。
Error: Server closed the connection
dispatch...
解决:redis在缓冲设置上有一定的限制,可以试一下:
查询: client-output-buffer-limit pubsub 0 0 0
设置成发送订阅没有限制,使用客户端连上去,命令如下:
CONFIG SET client-output-buffer-limit "pubsub 0 0 0"

猜你喜欢

转载自blog.csdn.net/dreamvyps/article/details/71124129