my application is a scalable tomcat application with MySQL. If I do not access my application for a while, response time is very long when I access it again. Checking haproxy.log:
[WARNING] 131/134600 (449836) : Server express/local-gear is DOWN, reason: Layer7 timeout, check duration: 10002ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[WARNING] 131/134644 (449836) : Server express/local-gear is UP, reason: Layer7 check passed, code: 200, info: "OK", check duration: 4068ms. 2 active and 0 backup servers online. 0 sessions requeued, 0 total in queue.
[WARNING] 131/154052 (449836) : Server express/gear-5370cea0500446741d00058b-ibrainext is DOWN, reason: Layer7 timeout, check duration: 10004ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[WARNING] 131/154323 (449836) : Server express/gear-5370cea0500446741d00058b-ibrainext is UP, reason: Layer7 check passed, code: 200, info: "OK", check duration: 501ms. 2 active and 0 backup servers online. 0 sessions requeued, 0 total in queue.
[WARNING] 131/154550 (449836) : Server express/gear-5370cea0500446741d00058b-ibrainext is DOWN, reason: Layer7 timeout, check duration: 10003ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[WARNING] 131/154643 (449836) : Server express/gear-5370cea0500446741d00058b-ibrainext is UP, reason: Layer7 check passed, code: 200, info: "OK", check duration: 7ms. 2 active and 0 backup servers online. 0 sessions requeued, 0 total in queue.
[WARNING] 131/182346 (449836) : Server express/gear-5370cea0500446741d00058b-ibrainext is DOWN, reason: Layer7 timeout, check duration: 10003ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[WARNING] 131/182512 (449836) : Server express/gear-5370cea0500446741d00058b-ibrainext is UP, reason: Layer7 check passed, code: 200, info: "OK", check duration: 11ms. 2 active and 0 backup servers online. 0 sessions requeued, 0 total in queue.
[WARNING] 131/194433 (449836) : Server express/gear-5370cea0500446741d00058b-ibrainext is DOWN, reason: Layer7 timeout, check duration: 10004ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[WARNING] 131/194439 (449836) : Server express/gear-5370cea0500446741d00058b-ibrainext is UP, reason: Layer7 check passed, code: 200, info: "OK", check duration: 109ms. 2 active and 0 backup servers online. 0 sessions requeued, 0 total in queue.
[WARNING] 131/194615 (449836) : Server express/local-gear is DOWN, reason: Layer7 timeout, check duration: 10002ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[WARNING] 131/194735 (449836) : Server express/local-gear is UP, reason: Layer7 check passed, code: 200, info: "OK", check duration: 0ms. 2 active and 0 backup servers online. 0 sessions requeued, 0 total in queue.
Look like the timeout value is 10sec. How can I keep my application running without going down ?