Bre*_*dan 10 haproxy node.js express openshift
我从Openshift创建了一个基本的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!
Run Code Online (Sandbox Code Playgroud)
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.
Run Code Online (Sandbox Code Playgroud)
检查一下:Openshift Layer4 连接,应用程序无法启动
问题可能是您没有在express应用程序的根目录中提供任何服务,因此您需要修改haproxy配置文件,找到提到express和httpchk的文件,并将/更改为响应请求的内容。
或者,只需在 / 上提供一些内容,这样 HAProxy 就不会不断重新启动您的服务。
| 归档时间: |
|
| 查看次数: |
3349 次 |
| 最近记录: |