Re: Haproxy returns 502 before backend replies with 200

2017-10-16 Thread Alexey Buluy
Hello again! So, I've used tcpdump to capture the traffic on both sides - Haproxy and on backend and ruled out the possible issue with Haproxy. It's clearly not the load balancer issue, it looks like some module on backend incorrectly sends a packet of binary service data (which most likely

Re: Haproxy returns 502 before backend replies with 200

2017-10-13 Thread Alexey Buluy
Thanks Lukas! I'll capture the dump and reply with additional info ASAP. Regards, Alexey. 13 окт. 2017 г. 20:07 пользователь "Lukas Tribus" написал: Hello Alexey, > Details of error 502 from Haproxy: > > client_ip= client_port=32668 backend=http_data times=0/0/0/-1/91 >

Haproxy returns 502 before backend replies with 200

2017-10-13 Thread Alexey Buluy
Hi guys! I have a tough situation here and need help from the community. We're using Haproxy as a load-balancer for pretty complex web application deployed in AWS EC2. One of ours http backends is a web-server on Tornado which uses NoSQL cluster for data storage. It serves requests on port 80