有人在邮件列表问haproxy的作者为何haproxy无论是tcp模式还是http模式,能支撑的并发量都不是太大。

Willy回答了这个问题。
 
Exactly. The difference is between LBs that process a stream and which
are proxy-based, and the ones which process packets and are basically
routers. In order to parse and modify a stream, you need some memory,
while you don't need this to route packets (beyond the routing queue).
L4 load balancers often store a session table which is a few hundreds
of bytes per session, as opposed to a few tens of kB of buffers for
proxies. However, L4 LBs have to deal with TIME_WAIT, which proxies
don't since it's done in the system, so in practice, the ratio is not
really tens-of-thousands to millions but rather tens-of-thousands to
hundreds-of-thousands when the connection rate are high.

> and why in HAProxy
> you can have "only" thousends of connections while LVS like LBs can
> annouce millions...
> So in haproxy, whatever the mode, tcp or http, you'll always have
> thousends of connexions.

In fact it depends a lot on the configured memory and on the kernel
tuning. With todays 64-bit systems and cheap RAM, there's plenty of
margin. We had one user who reported 1 million established connections
in a bench, and several ones reported more than 300k in production. In
Linux, by default, processes are limited to 1 million FDs so you need
to patch the kernel or to run in multi-process mode for this. I assume
it's not that crazy to run several processes when you have to deal with
1 million concurrent connections :-)

 
 
if you don't need any form of session persistence or content switching,
LVS might be more suited for this usage.

最新文章

  1. *HDU1455 DFS剪枝
  2. http详解
  3. no-jquery 04 Events
  4. Android ListView item项 显示动画
  5. 并发包之Future:代码级控制超时时间
  6. 数据库 CRUD
  7. 重新组织 vs 重新生成索引
  8. web 项目 布在tomcat服务器上出现的问题小记
  9. Python之路----文件操作
  10. BZOJ 4009 接水果
  11. STP学习总结
  12. realvnc viewer 5.3.2无需输入用户名和密码访问远程桌面
  13. git 一口气带你走完git之旅
  14. httpd添加新模块
  15. docker上传自己的镜像
  16. 用keytool制作证书并在tomcat配置https服务(二 )
  17. 语法、id和class选择器、创建、
  18. IOS11导航栏自定义返回按钮被遮挡
  19. JVM方法调用过程
  20. Android中的Service:Binder,Messenger,AIDL

热门文章

  1. ssh连接失败解决方法
  2. 简单改造 starling 中的 AssetManager 让其更适合 批次加载纹理
  3. MongoDB的timezone问题
  4. Hash算法初见
  5. PHP学习心得(八)——运算符
  6. IIS 10.0 无法安装 URL rewrite重写模块 2.0
  7. JAVA获取当前日期以及将字符串转成指定格式的日期
  8. 让WPF的Popup不总置顶的解决方案
  9. [转]利用/*+Ordered*/提高查询性能
  10. JS & DOM 对象