【问题标题】:Pound + Varnish + Apache - Pound hanging磅 + 清漆 + Apache - 磅挂
【发布时间】:2017-05-26 10:35:57
【问题描述】:

我的当前配置有问题。

我正在尝试在上线之前对我的平台进行压力测试,我发现了一些非常令人担忧的事情。

磅数:

User "pound"
Group "pound"
Control "/var/lib/pound/pound.cfg"
#TimeOut     150
LogLevel 3
LogFacility local1
ListenHTTP
    Address 0.0.0.0
    Port    80
    xHTTP    0
    Service
        BackEnd
            Address 127.0.0.1
            Port    9080
        End
    End
End
ListenHTTPS
    HeadRemove "X-Forwarded-Proto"
    AddHeader "X-Forwarded-Proto: https"
    Address 0.0.0.0
    Port    443
    Cert    "/etc/httpd/ssl/pound.pem"
    xHTTP       0
    Service
        BackEnd
            Address 127.0.0.1
            Port    9443
        End
    End
End

清漆配置:

backend default {
  .host = "127.0.0.1";
  .port = "8080";
}

backend default_ssl {
  .host = "127.0.0.1";
  .port = "8443";
}

然后 Apache 监听 8080 和 8443。

问题是,在 20 RPS 之后,我的磅挂起(顶部显示没有任何问题),如果我直接访问 ip:8080 以及 ip:9080,我可以获得该页面,这意味着 Varnish 和 Apache 都很好.

一旦我关闭压力测试机器,页面就会加载。

我发现的唯一相关日志是 xx SessionClose c timeout 在 Varnishlog 中随处可见。

我尝试使用 Google Cloud HTTP/HTTPS 负载平衡器摆脱重磅,但未能成功使其与 HTTPS 一起使用。

【问题讨论】:

    标签: apache proxy reverse-proxy varnish pound


    【解决方案1】:

    如果找到罪魁祸首!

    Threads xxx(默认 128)

    我设置为 4096,没有问题了。

    【讨论】:

      猜你喜欢
      • 2014-03-04
      • 2013-08-23
      • 2018-10-15
      • 2017-09-24
      • 1970-01-01
      • 2019-05-02
      • 2019-01-30
      • 2016-11-25
      • 1970-01-01
      相关资源
      最近更新 更多