Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
请教下,set_keepalive(10000, 100)这个值你们是根据什么来设置的呢
763191973
请教下,set_keepalive(10000, 100)这个值你们是根据什么来设置的呢
谢谢!
yuansheng
根据你生产系统平均工作使用情况来设置。
比如正常压力下,看到有 100 个并发请求在并行,那么连接池的大小就可以设置为 100。
前面的空闲时间,通常10s 左右即可,除非你的流量非常不稳定,抖动很大可以多设置一些。
On Wed, Aug 10, 2016 at 6:48 PM,
<
7631...@qq.com
>
wrote:
请教下,set_keepalive(10000, 100)这个值你们是根据什么来设置的呢
谢谢!
--
--
YuanSheng Wang
---------------------------------------
My Github:
https://github.com/membphis
OpenResty lover ^_^