Why is my app constantly pinged?

拈花ヽ惹草 提交于 2019-12-12 02:28:19

问题


I'm developping a small app with nodejs on Openshift and noticed something that looks weird to me:

when I do rhc tail -a MyApp, I see my app is being "pinged" about every second:

GET / 200 9ms - 170b
GET / 200 8ms - 170b
GET / 200 8ms - 170b
GET / 200 10ms - 170b
GET / 200 9ms - 170b
GET / 200 9ms - 170b
... (and so on)

I'm pretty sure there's nothing in my code that would cause this. Is this coming from the OpenShift side ?

EDIT: Just created a sample app and noticed the same behaviour; so this is clearly from OpenShift. Now the question would be why ? Any input from someone at OpenShift would by great.


回答1:


If this is a scaled application, that is the haproxy making sure that your application gears are running ok. You can change the frequency by sshing into your main gear and editing the ~/haproxy/haproxy.cfg file .



来源:https://stackoverflow.com/questions/23873153/why-is-my-app-constantly-pinged

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!