Why is my app constantly pinged?

2019-08-20 01:51发布

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.

标签: openshift
1条回答
姐就是有狂的资本
2楼-- · 2019-08-20 02:30

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 .

查看更多
登录 后发表回答