AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 907340
Accepted
cherouvim
cherouvim
Asked: 2018-04-13 04:14:50 +0800 CST2018-04-13 04:14:50 +0800 CST 2018-04-13 04:14:50 +0800 CST

haproxy stats 后端限制的解释

  • 772

我的相关部分/etc/haproxy/haproxy.cfg是:

global
    maxconn 30000
    ...

defaults
    ...

frontend frontend_for_all_sites
    maxconn 22000
    mode http
    bind *:80

    acl acl_hostname_www hdr_dom(host)    www.example.com
    acl acl_hostname_static hdr_dom(host) static.example.com
    use_backend www_backend      if acl_hostname_www
    use_backend static_backend   if acl_hostname_static

backend www_backend
    server www 127.0.0.1:9090 maxconn 500

backend static_backend
    server s 127.0.0.1:8080 maxconn 5000

所以,我有 2 个后端,每个后端只有 1 个,没有负载平衡,只是根据请求的主机名将请求代理到不同的后端。

在www后端我将 maxconn 设置为 500,在static后端我将其设置为 5000。

统计信息页面现在如下所示:

在此处输入图像描述

我的问题是两个后端的 2200 的“后端限制”代表什么?我知道这个值是 22000 maxxconn on 的 10% frontend_for_all_sites。这 2200 是否意味着后端将处理的最大连接数为 2200 及以上 haproxy 将返回 503?

haproxy
  • 1 1 个回答
  • 6756 Views

1 个回答

  • Voted
  1. Best Answer
    nuster cache server
    2018-04-13T17:56:13+08:002018-04-13T17:56:13+08:00

    我的问题是两个后端的 2200 的“后端限制”代表什么?我知道这个值是 frontend_for_all_sites 上 22000 maxxconn 的 10%。

    2200inBackend Limit是fullconn默认值是前端 maxconn 的 10%。

    这 2200 是否意味着后端将处理的最大连接数为 2200 及以上 haproxy 将返回 503?

    不,最大连接数是 maxconn 的总和

    • 7

相关问题

  • 具有动态路由的代理服务器

  • nginx 访问日志忽略某些请求

  • HAProxy 和“分片”

  • 带有 HAProxy 的远程 IP

  • SSL 网站的高可用性

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve