Apache2:429,请求响应太多

时间:2013-03-26 08:42:31

标签: apache2 http-status-code-429

当我开始密切使用我的API时,我的Apache返回了429错误代码。 De API调用由SAP BusinessObject生成,并发送到我的“反向代理”以将HTTP转换为HTTPS。反向代理通过HTTPS将HTTP请求转发到Web服务器。

在15次请求后,Reverse Proxey在Apaches error.log中返回429错误。这15个请求是在9分钟内完成的。

如何配置Apache以便它能处理这种负载/流量?在第一次15 ...之后,我还有另外300个请求。

反向代理配置:

NameVirtualHost *:80
ProxyRequests Off

<VirtualHost *:80>
        ServerName domain.com
        ServerAlias domain.com

        SSLProxyEngine On
        SSLProxyVerify none
        SSLProxyProtocol SSLv3
        ProxyPass / https://domain.com/
        ProxyPassReverse / https://domain.com/

        <Directory proxy:*>
                Order Deny,Allow
                Allow from all
        </Directory>
</VirtualHost>

3 个答案:

答案 0 :(得分:2)

de webservers webserver中的更新是问题所在。供应商更换了他们的webserer并在软件中限制了每分钟5个请求......

在发行版中没有提到这一点。

感谢您的时间,抱歉打扰您。

答案 1 :(得分:0)

我认为如果您启用了 mpm 模块,您可以增加 maxThread。

您可以在此处查看有关安装和设置的文档:

https://www.techrepublic.com/article/how-to-enable-apache-mpm-prefork-to-improve-performance/

答案 2 :(得分:-1)

我不是Apache专家。 但是,我会尝试以下内容(在apache配置中):

# wait up to 300 seconds for slow clients
TimeOut 300
# allow connections to be reused between requests
KeepAlive On
# allow a maximum of 100 requests per connection
MaxKeepAliveRequests 100
# wait up to 15 seconds for the next
# request on an open connection 
KeepAliveTimeout 15