HAProxy, The Reliable, High Performance TCP/HTTP Load Balancer

high availabilityload balancing, and proxying for TCP and HTTP-based applications. It is particularly suited for web sites crawling under very high loads while needing persistence or Layer7 processing. Supporting tens of thousands of connections is clearly realistic with todays hardware. Its mode of operation makes its integration into existing architectures very easy and riskless, while still offering the possibility not to expose fragile web servers to the Net, such as below :

Currently, two major versions are supported (NB: comment is outdated):

  • version 1.3 – content switching and extreme loads
    This version has brought a lot of new features and improvements over 1.2, among which content switching to select a server pool based on any request criteria, ACL to write content switching rules, wider choice of load-balancing algorithms for better integration,content inspection allowing to block unexpected protocols, transparent proxy under Linux, which allows to directly connect to the server using the client’s IP address, kernel TCP splicing to forward data between the two sides without copy in order to reach multi-gigabit data rates, layered design separating sockets, TCP and HTTP processing for more robust and faster processing and easier evolutions, fast and fair scheduler allowing better QoS by assigning priorities to some tasks, session rate limiting for colocated environments, etc…
  • version 1.2 – opening the way to very high traffic sites
    The same as 1.1 with some new features such as poll/epoll support for very large number of sessions, IPv6 on the client side,application cookieshot-reconfigurationadvanced dynamic load regulationTCP keepalivesource hashweighted load balancingrbtree-based scheduler, and a nice Web status page. This code is in deep feature freeze and may eventually receive critical fixes only.

根据来自CU的说法:HAProxy是一个反向代理服务器,支持双机热备支持虚拟主机,但其配置简单,拥有非常不错的服务器健康检查功能,当其代理的后端服务器出现故障,HAProxy会自动将该服务器摘除,故障恢复后再自动将该服务器加入。新的1.3引入了frontend,backend,frontend根据任意HTTP请求头内容做规则匹配,然后把请求定向到相关的backend.
新版本修正了很多会导致服务暂停的问题,增加一些小的但是非常有用的新功能,例如配置文件切分;配置错误提示信息更加友善;支持超过65000的并发会话;同时可以将某服务器的权重设为0等等。

但是看来好象中能说算是。

CU的介绍:http://linux.chinaunix.net/news/2009/07/29/1126989.shtml

原始地址:http://haproxy.1wt.eu/

中文研究网站:http://cn.haproxy.org/

可以参考的文档:

1. HAProxy,智能分流的负载均衡方案

2.

打赏

发表评论

电子邮件地址不会被公开。 必填项已用*标注