HAProxy提供高可用性、负载均衡以 及基于TCP和HTTP应用的代理,支 持虚拟主机,它是免费、快速并且可靠的一种解决方案。HAProxy特别适用 于那些负载特大的web站点, 这些站点通常又需要会话保持或七层处理。HAProxy运行在当前的硬件上,完全可以支持数以万计的并发连接。并且它的运行模式使得它可以很简单安全的整 合进您当前的架构中, 同时可以保护你的web服务器不被暴露到网络上。 该版本增加了一个新的选项用来优化与 Tomcat 和 Jetty 服务器的 Connection-close 模式;以及修正 Jetty 对 100-continue 的问题;修正了cookie名匹配的一个bug。新功能包括通过header中的IP地址进行后台服务器的连接以及使用透明模式运行 stunnel+haproxy 等。 关于 Connection Close 模式,官方网站上是这样说明的: Some people were experiencing optimisation issues with Tomcat and Jetty, with which it was not possible to perform client side keep-alive when the server received a "Connection: close" header. This is due to a strange design choice by which they decide the client is not interested in the response length if it intends to close after the transfer! Well technically that works... most often... Sometimes users may get truncated objects without being aware of that. Anyway, Cyril Bonté had a very smart idea for a workaround : pretend to the server we'll maintain its session alive while it's false. This fixed the problem, and is now available by adding option http-pretend-keepalive to option http-server-close. |