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

推荐订阅源

爱范儿
爱范儿
Y
Y Combinator Blog
博客园 - Franky
D
Docker
B
Blog RSS Feed
M
MIT News - Artificial intelligence
雷峰网
雷峰网
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
宝玉的分享
宝玉的分享
S
SegmentFault 最新的问题
GbyAI
GbyAI
Recent Announcements
Recent Announcements
Martin Fowler
Martin Fowler
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
B
Blog
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
Vercel News
Vercel News
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News

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 我确认连接数远没有打满,也看不出其它问题。那是不是我的配置有什么问题呢?