jeudi 30 juillet 2015

AWS ELB (Elastic Load Balancer) sometimes returns 504 (gateway timeout) right away

I am currently switching over an application to amazon but I'm noticing that sometimes the response I receive is a 504. Our system is setup in a way where we have a LB in front of our ELB and then it goes straight to tomcat.

We are currently timing all our requests in our service and in the servlet filter logging the response time and they are always less than 1s. We then look at the LB logs and are seeing a 504 and it appears that somehow the ELB is timing out and returning the 504.

Does anyone know why this could happen? Thanks

EDIT: Not sure if it matters but currently we only have 1 instance and it can scale to 3 instances.




Aucun commentaire:

Enregistrer un commentaire