注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

老和山小和尚

敬天爱人

 
 
 

日志

 
 
 
 

nginx_upstream_keepalive_patch  

2011-05-31 18:44:17|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
Patch的URL:https://github.com/yaoweibin/nginx_upstream_keepalive_patch

这个patch主要用于支持后端HTTP的keepalive,不是完整的HTTP/1.1功能(据说agentzh 8月份会开发完整的功能,敬请期待)。

现在这个patch还处于测试阶段,欢迎试用,积极报bug。

这个patch最佳的应用范围是那些比较小的后端请求回复,不用每次请求都建立连接,与后端通信性能会有比较大的提升。



==INSTALLATION==
    
cd nginx-1.0.2
patch -p1 < /path/to/this/directory/upstream_keepalive_1.0.2.patch

#add the module
./configure --add-module=/path/to/this/directory


==EXAMPLE==

upstream backends {
    server 10.0.0.1;
    server 10.0.0.2;

    keepalive 128;
}

The ngx_http_upstream_keepalive_module's document is here:
https://github.com/yaoweibin/nginx_upstream_keepalive_patch/raw/master/ngx_http_upstream_keepalive/README

==COPYRIGHT & LICENSE==

This original patch and ngx_http_upstream_keepalive_module is written by
Maxim Dounin and licensed under the BSD license.

This patch is also licensed under the BSD license.

Copyright (C) 2011 by Weibin Yao <yaoweibin@gmail.com>.

Thanks to Simpli.fi to sponsor this patch.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

  评论这张
 
阅读(2182)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017