清漆503大师与pfsense和健康阿帕奇调解错误

我们运行一个pfsense防火墙/负载均衡器作为服务清漆,在运行Apache的Fedora linux webservers之前。

我们得到间歇503宗师调解错误。 我们有点卡住了,因为它不容易重复。 超时设置为30秒(连接和第一个字节),但503页将立即显示,而不是30秒后。 那么,如果你马上刷新,它可能会立即工作,有时会刷新100次。

Web服务器上的平均负载<1,数据库服务器<3(所有服务器(web,db,pfsense / varnish)都是物理的,而不是虚拟机。

我会想如果超时被打到那么503页只会出现在30多年后,我误会了?

当发生错误时,在apache的日志文件中也没有出现相应的错误。

这似乎影响页面以及图像,所以有可能使页面加载罚款,并为9/10的图像在网页上罚款,但1不工作

下面是一个清漆debugging的例子。 它说没有后端连接,但我无法弄清楚为什么,如果负载高的Apache我可以理解它是片状

机器在同一个以太网局域网上

21 ReqStart c *IP-REMOVED* 33418 1274368062 21 RxRequest c GET 21 RxURL c /fashion/ 21 RxProtocol c HTTP/1.1 21 RxHeader c User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121622 Fedora/3.0.5-1.fc10 Firefox/3.0.5 21 RxHeader c Host: *ourdomain.com* 21 RxHeader c Accept: */* 21 RxHeader c Accept-Encoding: deflate, gzip 21 VCL_call c recv lookup 21 VCL_call c hash 21 Hash c /fashion/ 21 Hash c *ourdomain.com* 21 VCL_return c hash 21 VCL_call c miss fetch 21 FetchError c no backend connection 21 VCL_call c error restart 21 VCL_call c recv lookup 21 VCL_call c hash 21 Hash c /fashion/ 21 Hash c *ourdomain.com* 21 VCL_return c hash 21 VCL_call c miss fetch 21 FetchError c no backend connection 21 VCL_call c error restart 21 VCL_call c recv lookup 21 VCL_call c hash 21 Hash c /fashion/ 21 Hash c *ourdomain.com* 21 VCL_return c hash 21 VCL_call c miss fetch 21 FetchError c no backend connection 21 VCL_call c error deliver 21 VCL_call c deliver deliver 21 TxProtocol c HTTP/1.1 21 TxStatus c 503 21 TxResponse c Service Unavailable 21 TxHeader c Server: Varnish 21 TxHeader c Content-Type: text/html; charset=utf-8 21 TxHeader c Content-Length: 384 21 TxHeader c Accept-Ranges: bytes 21 TxHeader c Date: Wed, 11 Apr 2012 10:36:17 GMT 21 TxHeader c X-Varnish: 1274368062 21 TxHeader c Age: 0 21 TxHeader c Via: 1.1 varnish 21 TxHeader c Connection: close 21 TxHeader c X-Cache: MISS 21 Length c 384 21 ReqEnd c 1274368062 1334140577.449995041 1334140577.450334787 1.794108152 0.000282764 0.000056982 

你可以连接telnet从运行清漆的机器到IP /端口apache正在运行,当503s出现? 清漆机器或过程是否可能耗尽文件描述符? apache可能碰到了MaxClients? backend_unhealthy,backend_busy,backend_fail的值是什么(参见http://comments.gmane.org/gmane.comp.web.varnish.misc/6756 )。 你使用健康探头与清漆?