与“快速”的Openshift haproxy错误没有可用的服务器

我从Openshift创build了一个基本的Nodejs应用程序,随机地,服务在几天内终止了几次。 从我的Nodejs模块没有错误消息,但只有在haproxy自动安装。

来自haproxy.log的消息是:

[WARNING] 184/001333 (193501) : Server express/local-gear is DOWN for maintenance. [WARNING] 184/010106 (483047) : config : log format ignored for proxy 'stats' since it has no log address. [WARNING] 184/010106 (483047) : config : log format ignored for proxy 'express' since it has no log address. [WARNING] 184/010106 (483047) : Server express/local-gear is DOWN, reason: Layer4 connection problem, info: "Connection refused", check duration: 0ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue. [ALERT] 184/010106 (483047) : proxy 'express' has no server available! [WARNING] 184/010110 (483047) : Server express/local-gear is DOWN for maintenance. [WARNING] 184/010115 (483047) : Server express/local-gear is UP (leaving maintenance). [WARNING] 184/010116 (483047) : Server express/local-gear is DOWN, reason: Layer7 wrong status, code: 500, info: "Internal Server Error", check duration: 43ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue. [ALERT] 184/010116 (483047) : proxy 'express' has no server available! 

haproxy_ctld.log

 E, [2014-07-03T12:12:59.557445 #97055] ERROR -- : Could not connect to the application. Check if the application is stopped. E, [2014-07-03T12:13:04.557968 #97055] ERROR -- : Could not connect to the application. Check if the application is stopped. E, [2014-07-03T12:13:09.558480 #97055] ERROR -- : Could not connect to the application. Check if the application is stopped. 

检查这个: Openshift Layer4连接,应用程序不会启动

问题可能是你没有在快速应用程序的根目录下提供任何东西,所以你需要修改haproxyconfiguration文件,find提及express和httpchk的文件,以及从响应请求的东西变成/。

或者,只需要提供/ HAProxy不会继续重新启动您的服务。

你确定stream量正在保持你的应用程序? 如果没有要求,应该“放气”装备。 任何后续的请求都应该“膨胀”回来,但是最终可能是“服务不可用”。

Re @Dids回答,尽pipe正确,RedHatbuild议不要更改HaProxy Keepalive URL,以便将来更新的Openshift可能会覆盖configuration。 我自己,我修改了应用程序来为根服务一个简单的Hello。