惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
博客园 - 【当耐特】
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Fortinet All Blogs
Y
Y Combinator Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
MyScale Blog
MyScale Blog
B
Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理

HAProxy

HAProxy 2.0 发布 haproxy 小白请教一个问题,关于限制最大并发 maxconn 和 Linux 系统 limit -n 限制 HAProxy 1.8.0 haproxy 无法连接数据库 HAProxy 可以基于请求的 SNI 域名配置 server 吗? 为什么 HAProxy ( http://www.haproxy.org/ )被 Wall 了?不解…… Load Balancing WordPress with HAProxy 这个该怎么读呢? HAProxy 关于动态网站的 LB(负载均衡)服务器 HAProxy 1.5 PPA for Ubuntu
经过 HAProxy 后发现引入了很大的延迟?
billlee · 2016-08-06 · via HAProxy

前情提要:发现以前的配置无法保持长连接

于是修改配置,在 defaults 中加入了

    timeout tunnel 300s
    timeout client-fin 5s

现在连接相关的参数是:

defaults
    mode                    tcp
    log                     global
    option                  tcplog
    option                  dontlognull
    option                  redispatch
    retries                 3
    timeout queue           1m
    timeout connect         5s
    timeout client          5s
    timeout server          5s
    timeout tunnel          300s
    timeout client-fin      5s
    timeout check           5s
    maxconn                 3000

修改后,发现连接延迟变差了,均值和方差都增大了,有时候延迟能超过 1 s.

当然改之前也是平均延迟要大于 100 ms, 但是客户端到 haproxy 的延迟和 haproxy 到服务端的延迟加起来只有不到 40ms 的。

通过 stats 我确认连接数远没有打满,也看不出其它问题。那是不是我的配置有什么问题呢?