Is the platform polling the root of the domain?

The OpenShift forums have been retired.
You can still read and search them, but for help, please post a question on Stack Overflow.

Hi,,

I would like to know whether the openshift app is polling our custom app to determine whether the app is up/ down? Is it a HAProxy thing? What should i do to avoid it? Below is a echo of node.log file soon after deploying the app.

Express server listening on port 8080
GET / 200 24ms - 5.95kb
GET / 200 9ms - 5.95kb
GET / 200 7ms - 5.95kb
GET / 200 8ms - 5.95kb
GET / 200 7ms - 5.95kb
GET / 200 8ms - 5.95kb
GET / 200 9ms - 5.95kb
GET / 200 10ms - 5.95kb
GET / 200 10ms - 5.95kb
GET / 200 10ms - 5.95kb
GET / 200 7ms - 5.95kb
GET / 200 8ms - 5.95kb
GET / 200 7ms - 5.95kb
GET / 200 8ms - 5.95kb
GET / 200 7ms - 5.95kb
GET / 200 26ms - 5.95kb
GET / 200 54ms - 5.95kb

Hello,

Yes, this looks like HAProxy is checking your application. If you would show exact time when each request took place, then I could be more certain.

To "remove" these requests, you will need to convert into non-scaled application.

Depending on technology you use to build your application, there should be appropriate solution for caching home page to minimize impact of these requests on your gear.

On a bright side, your application is already VERY popular (for now at least with HAProxy).

Cheers, Boris

I also believe that is HAProxy's health checker. There shouldn't be any side effects of the health checker. If you are seeing a side effect, please let us know.

Thanks for the replies...

I am OK with the HAProxy's health checker, but is there any way to reduce the frequency? Any configuration?

You can modify that:
ssh onto your app (rhc ssh appName)
cd ~/haproxy/conf
modify haproxy.cfg

On the last line, you will find:

   server local-gear 127.4.40.1:8080 maxconn 2 check fall 2 rise 3 inter 2000 cookie local-51c08c90e0b8cd9875000445  

Change 2000 (ms) to 60000(ms) - from 2s to 1min for example.

Then run ctl_all restart