请教下,set_keepalive(10000, 100)这个值你们是根据什么来设置的呢

64 views
Skip to first unread message

7631...@qq.com

unread,
Aug 10, 2016, 6:48:40 AM8/10/16
to openresty
请教下,set_keepalive(10000, 100)这个值你们是根据什么来设置的呢

谢谢!

YuanSheng Wang

unread,
Aug 10, 2016, 11:02:56 AM8/10/16
to open...@googlegroups.com
根据你生产系统平均工作使用情况来设置。

比如正常压力下,看到有 100 个并发请求在并行,那么连接池的大小就可以设置为 100。

前面的空闲时间,通常10s 左右即可,除非你的流量非常不稳定,抖动很大可以多设置一些。


On Wed, Aug 10, 2016 at 6:48 PM, <7631...@qq.com> wrote:
请教下,set_keepalive(10000, 100)这个值你们是根据什么来设置的呢

谢谢!

--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@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



--

YuanSheng Wang
---------------------------------------
OpenResty lover ^_^
Reply all
Reply to author
Forward
0 new messages