Hi,

I have this configuration haproxy -> nginx (static) -> apache (php) .
It is working fine for large traffic sites. These days I'm adding a
new site and I starting to see 502 errors when saving a form with POST
method. The errors were from nginx so I change the header size limit
to a higher value. The problem was solved for nginx but now I have 502
errors from haproxy. I think I need to increase the BUFSIZE value in
the source files of haproxy. But I have some doubts.
To test I put apache directly behind of haproxy and decrease the
apache limits for size headers to 4k and apache started to throw 502
errors. When I increase the value to the default again haproxy is
getting 502 errors.

So, the solution seems obvious (increase the BUFSIZE value) but I
wonder why apache accept the headers with 8k and haproxy doesn't.
Also, how can I know which is the size of the headers? Maybe I can
avoid compile haproxy and try to decrease the headers size from the
application.

This is the log from haproxy when the post is sent:

Jan  7 15:13:11 127.0.0.1 haproxy[4372]: X.X.X.X:29320
[07/Jan/2010:15:13:11.105] main bproxy/proxy1 110/0/1/-1/188 502 8396
- - PHVN 615/615/0/0/0 0/0 "POST /user/config HTTP/1.1"

It is similar to this case:
http://www.mail-archive.com/[email protected]/msg01602.html

Thanks!

Héctor Paz

Reply via email to