为什么我的应用程序经常被ping通? [英] Why is my app constantly pinged?

查看:66
本文介绍了为什么我的应用程序经常被ping通?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Openshift上使用nodejs开发一个小型应用程序,发现有些东西对我来说很奇怪:

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

当我执行rhc tail -a MyApp时,我发现我的应用大约每秒被"ping":

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)

我很确定我的代码中没有任何东西会引起这种情况. 这是来自OpenShift方面吗?

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

刚刚创建了一个示例应用程序,并注意到了相同的行为;所以这显然来自OpenShift.现在的问题是为什么?来自OpenShift的某人的任何输入都将非常有用.

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.

推荐答案

如果这是一个可扩展的应用程序,则这是确保您的应用程序运行正常的haproxy.您可以通过切入主齿轮并编辑〜/haproxy/haproxy.cfg文件来更改频率.

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 .

这篇关于为什么我的应用程序经常被ping通?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆