Re: List of sites using haproxy ?
We use haproxy to handle web traffic for peruvian news sites: elcomercio.pe, peru21.pe, etc. Around 2k session rate in peak hours. Haproxy is the most reliable part of our architecture. Héctor Paz Systems Administrator Grupo El Comercio On Wed, Jul 28, 2010 at 11:42 AM, Angelo Höngens wrote: > We use it for www.zoover.nl, www.weeronline.nl, www.snp.nl, etc. (in > combination with either squid or varnish caches though). > > --
Re: Headers Size
Thanks for all the suggestions, i'm going to try them. Do you think that this value of BUFSIZE may cause some security or perfomance issues in haproxy? Regards, Héctor Paz On Fri, Jan 8, 2010 at 1:27 AM, Willy Tarreau wrote: > If you don't have too much traffic or can try it by hand, start it > in debug mode using "-d" on the command line, and redirect its output > to a file. It will dump all headers it receives. That can be huge. > > If you're on production and cannot do that, your best friend is > tcpdump, especially if you know that the problem only affects one > of your customers and can filter on the IP address. Simply don't > forget to dump full packets (-s0).
Re: Headers Size
Thanks Willy! I recompile haproxy with: "-DBUFSIZE=16000 -DMAXREWRITE=1024 -DSYSTEM_MAXCONN=4" It doesn't work. Then I recompile with: "-DBUFSIZE=64000 -DMAXREWRITE=1024 -DSYSTEM_MAXCONN=4" And it works. But I'm very worried about this value. This is the difference in haproxy logs: DBUFSIZE=default Jan 7 20:07:41 127.0.0.1 haproxy[15042]: X.X.X.X:36464 [07/Jan/2010:20:07:41.338] main bdefault/proxy1 111/0/0/-1/182 502 8396 - - PHVN 0/0/0/0/0 0/0 {1643} "POST /user/config HTTP/1.1" DBUFSIZE=64000 Jan 7 20:14:42 127.0.0.1 haproxy[15129]: X.X.X.X:31434 [07/Jan/2010:20:14:41.531] main bdefault/proxy1 104/0/0/586/1206 200 46025 - - --VN 0/0/0/0/0 0/0 {102721} "POST /user/config HTTP/1.1" "show errors" doesn't show anything after the 502 (show info and show stat are working fine). So i'm going to test BUFSIZE=64000 very carefully. Meanwhile i'm checking why the headers are so big. I know haproxy can capture headers, but it seems can not capture all so I don't know where to start. Thanks again, Héctor On Thu, Jan 7, 2010 at 5:07 PM, Willy Tarreau wrote: > Be careful with large headers, there are many equipments which don't > accept them or which partially fail on them. Also, large cookies are > painful for users because they have to emit them for all requests, > which can make them upload megs of data for a few tens of objects.
Headers Size
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/haproxy@formilux.org/msg01602.html Thanks! Héctor Paz