1

I have written an application using Kraken and deploy in OpenShift with the option of auto-scaling (use HAProxy) but this has led me two problems:

1) HAProxy constantly sends requests to the application, this resulted in a week has ~485k sessions stored in my redis. 2) Because of the constant requests HAProxy every time I try to see my log (using: RHC taill myapp) my logger shows a lot of these requests are useless to me.

Is there any way to fix this

1 Answers1

0

Session files may be created by the haproxy's http health checks. Check your access logs and haproxy.cfg's option httpchk GET /.

though I've experienced this on php, same "solution" might be applied.

Answer:

set httpchk target path the a dedicated path for checking and use a non persistent session driver.

marlo
  • 123