我有一个奇怪的情况,对我的 HAProxy 的请求返回 503。HAProxy 日志显示它返回 NOSRV 错误:
Mar 26 19:47:01 localhost haproxy[23910]: 10.0.0.30:34261
[26/Mar/2013:19:46:48.579] fe v2/<NOSRV> 12801/-1/-1/-1/12801 503
212 - - SC-- 0/0/0/0/0 0/0 "GET /path/v2/ HTTP/1.1"
Run Code Online (Sandbox Code Playgroud)
在此期间,后端服务器已确认并正在接收来自内部负载平衡器的流量。这件事是自发发生的,没有在 HAProxy 中进行任何配置或其他更改。重新启动 HAProxy 解决了这个问题。
有谁知道这是否是一个已知问题?感谢您的帮助/见解。
谢谢。
我的配置是这样的:
global
maxconn 1000 # Total Max Connections. This is dependent on ulimit
daemon
nbproc 1 # Number of processing cores. Dual Dual-core Opteron is 4 cores for example.
log 127.0.0.1 local1
defaults
mode http
clitimeout 60000
timeout server 300000
contimeout 4000
option httpclose # Disable …Run Code Online (Sandbox Code Playgroud)