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
Session files may be created by the
haproxy's http health checks
. Check your access logs andhaproxy.cfg
'soption 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.