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

推荐订阅源

Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
U
Unit 42
I
InfoQ
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
B
Blog RSS Feed
Vercel News
Vercel News
F
Fortinet All Blogs
Know Your Adversary
Know Your Adversary
T
Troy Hunt's Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
Jina AI
Jina AI
小众软件
小众软件
T
Threatpost
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
The Hacker News
The Hacker News
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
Scott Helme
Scott Helme
B
Blog
腾讯CDC
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
S
Schneier on Security
N
News and Events Feed by Topic
Microsoft Security Blog
Microsoft Security Blog
K
Kaspersky official blog
G
Google Developers Blog
T
Tor Project blog
PCI Perspectives
PCI Perspectives
S
Secure Thoughts
Google Online Security Blog
Google Online Security Blog
Latest news
Latest news
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
罗磊的独立博客

HAProxy

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

billlee

 

billlee · 2016 年 8 月 6 日 · 8053 次点击

这是一个创建于 3599 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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