lua-resty-redis 连接数问题

169 views
Skip to first unread message

myjava_cn

unread,
Mar 4, 2015, 4:18:09 AM3/4/15
to open...@googlegroups.com
hi,
    lua-resty-redis连接数一直飙升,请问  相关设置是否有问题, 如下图:

redis 连接如下:


如果改为如下方式:

连接数也会一直上升,但是速度放慢了:

redis相关的参数也设置了,包括 tcp-backlog  tcp-backlog ,

请问连接数一直上升的问题在那?



myjava_cn

unread,
Mar 4, 2015, 4:24:35 AM3/4/15
to open...@googlegroups.com
抱歉,图片没显示,重新发一下,
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subs...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsub...@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html


Lance

unread,
Mar 4, 2015, 4:41:29 AM3/4/15
to open...@googlegroups.com
连接池启用成功了。第一种方式每个请求重建连接,断开时会有延迟,第二种连接复用了,一百多并发就扛住了。

Lance

订阅: 请发空白邮件到 openresty...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com

myjava_cn

unread,
Mar 4, 2015, 7:54:36 PM3/4/15
to open...@googlegroups.com
hi,
    第二种连接,长时间运行,连接时会一直上升,超过2000,系统就会变慢

myjava_cn

unread,
Mar 4, 2015, 8:33:45 PM3/4/15
to open...@googlegroups.com
是的,第二种 有效果的, 谢谢!
Reply all
Reply to author
Forward
0 new messages