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

推荐订阅源

P
Proofpoint News Feed
博客园 - 聂微东
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MyScale Blog
MyScale Blog
罗磊的独立博客
H
Help Net Security
L
LangChain Blog
T
Threat Research - Cisco Blogs
量子位
S
Securelist
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
P
Privacy International News Feed
The Hacker News
The Hacker News
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
T
Threatpost
Security Latest
Security Latest
P
Palo Alto Networks Blog
Microsoft Security Blog
Microsoft Security Blog
NISL@THU
NISL@THU
F
Full Disclosure
WordPress大学
WordPress大学
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Heimdal Security Blog
J
Java Code Geeks
Recorded Future
Recorded Future
Hugging Face - Blog
Hugging Face - Blog
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
B
Blog RSS Feed
月光博客
月光博客
C
Cisco Blogs
V
Visual Studio Blog
D
DataBreaches.Net
H
Hacker News: Front Page
博客园 - 叶小钗
N
News and Events Feed by Topic
爱范儿
爱范儿
A
Arctic Wolf

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