Re: IDEA: initial-state up/down option for servers

2016-03-30 Thread Pedro Mata-Mouros
+1. I was waiting for this. Hopefully it can make its way to a release soon enough. Pedro. > On 30 Mar 2016, at 08:39, Baptiste wrote: > > On Fri, Mar 18, 2016 at 12:38 AM, Chris Warren wrote: >> Hi, >> >> We use haproxy in an auto-scaling environment.

Re: Stats page refresh increases backend session count

2016-02-12 Thread Pedro Mata-Mouros
Hi Willy, You're right, it was a bit silly, I would've seen it if I had turned on the logging immediately. Thanks! Pedro. > On 10 Feb 2016, at 07:40, Willy Tarreau <w...@1wt.eu> wrote: > > Hi Pedro, > >> On Mon, Feb 08, 2016 at 05:05:02PM +, Pedro Mata-Mouros wr

Stats page refresh increases backend session count

2016-02-08 Thread Pedro Mata-Mouros
Hi all, I was sure that stats page refreshes in the browser would not increase the sessions on a given backend, but I’m seeing otherwise. Could you please just confirm if this is normal, as I can’t remember? This is my config, for a very basic local dev environment I’m setting up with Docker:

Re: Reloading haproxy without dropping connections

2016-01-22 Thread Pedro Mata-Mouros
Hi, Haven’t had the chance to implement this yet, but maybe these links can get you started: http://engineeringblog.yelp.com/2015/04/true-zero-downtime-haproxy-reloads.html http://inside.unbounce.com/product-dev/haproxy-reloads/ It’d be cool to have a sort of “officially endorsed” way of

Re: Complete rewrite of HAProxy in Lua

2015-04-01 Thread Pedro Mata-Mouros
On 1 Apr 2015, at 09:43, Willy Tarreau w...@1wt.eu wrote: we'll train the sales people to write Lua as well in order to speed up development. You got me going good until I read this. :-) Nice one Willy. Pedro.

Re: Spam

2014-04-14 Thread Pedro Mata-Mouros
Jeffrey, Ian, Patrick, et al, I feel some of your pain, but I also really feel that I want Willy concentrating on this amazing piece of open source, free software that is crucial to my job. Often times with open source projects (myself included in the past) we get frustrated at the wrong

Re: High client request times (Tq) for no apparent reason

2014-03-26 Thread Pedro Mata-Mouros
. -Bryan On Mon, Mar 24, 2014 at 5:48 PM, Pedro Mata-Mouros pedro.matamou...@gmail.com wrote: Hi, Sorry if I missed this somewhere, is this any known behaviour on HAProxy? Please help pointing me in the right direction… Thanks so much... Pedro. On 20 Mar 2014, at 11:47

Re: High client request times (Tq) for no apparent reason

2014-03-24 Thread Pedro Mata-Mouros
Hi, Sorry if I missed this somewhere, is this any known behaviour on HAProxy? Please help pointing me in the right direction… Thanks so much... Pedro. On 20 Mar 2014, at 11:47, Pedro Mata-Mouros pedro.matamou...@gmail.com wrote: Hi everyone, I’ve been seeing abnormally high client

Re: Selective logging

2013-05-15 Thread Pedro Mata-Mouros
Hi Willy, I've dug the mailing list and found this, which would so come in handy for me right now. Any updates on this, are you still considering its implementation? Your proposed solution log disable if acl would work just fine, or even no log if acl. Thanks, Pedro. On 9 Jul 2009, at

Re: log X-Forwarded-For in haproxy log

2013-05-10 Thread Pedro Mata-Mouros
. If you need more help, please let us know. Baptiste On Thu, May 9, 2013 at 3:21 PM, Pedro Mata-Mouros pedro.matamou...@sapo.pt wrote: Hi, Picking up this old thread, is there a way of actually replacing the client_ip in the logs with this captured header X-Forwarded-For? I'm using AWS

Re: log X-Forwarded-For in haproxy log

2013-05-09 Thread Pedro Mata-Mouros
Hi, Picking up this old thread, is there a way of actually replacing the client_ip in the logs with this captured header X-Forwarded-For? I'm using AWS and the current setup uses AWS LBs to deliver traffic to my HAProxy box, and this way every single client_ip I'm seeing in the logs is from

log and no log directives

2013-05-02 Thread Pedro Mata-Mouros
Hi everyone, Not sure I'm getting the way that log works in HAProxy. Is there a way of telling a specific backend to not log stuff? I currently have a log global in the defaults section. I tried putting no log in that backend, but didn't work (still don't understand exactly no log). Is the

Re: My Scalable Architecture using HAProxy

2013-01-03 Thread Pedro Mata-Mouros
Also Kevin, I don't really know what's the database usage profile of your app, but I'd immediately rule out installing the DB on the web servers, especially having two MySQL instances on *each* machine that will be serving PHP... Cheers, Pedro. On 3 Jan 2013, at 09:25, KT Walrus

Re: Header manipulation generates a response?

2012-04-05 Thread Pedro Mata-Mouros
, haproxy would answer a 200 OK using the file above. cheers On Wed, Apr 4, 2012 at 11:52 PM, Pedro Mata-Mouros pedro.matamou...@sapo.pt wrote: Hi, I really should've thought of that for myself, sorry about that... :-) Thanks so much, will try it tomorrow! Pedro. On 04/04

Re: Header manipulation generates a response?

2012-04-05 Thread Pedro Mata-Mouros
On 05/04/2012, at 14:03, Jonathan Matthews wrote: Does this work? Like a charm! acl path_match path_beg /url1 use_backend options if path_match METH_OPTIONS It seems more visible to me to avoid acl accumulation at definition time, and to make the use_backend the place that they're

Header manipulation generates a response?

2012-04-04 Thread Pedro Mata-Mouros
Hi everyone, Willy, Either I'm really unaware if HAProxy can do this or not, or I completely forgot it. Is it possible to check for a specific request and promptly return a user defined response, without the need to go to a backend? I basically need to return an empty HTTP 200 with

Re: Header manipulation generates a response?

2012-04-04 Thread Pedro Mata-Mouros
, just use the statement errorfile to tell haproxy to load content of the response from a local file You're done. cheers On Wed, Apr 4, 2012 at 8:37 PM, Pedro Mata-Mouros pedro.matamou...@sapo.pt wrote: Hi everyone, Willy, Either I'm really unaware if HAProxy can do

Re: 1.3.18 randomly generates sH-- 504 on POST requests

2011-03-22 Thread Pedro Mata-Mouros Fonseca
Ok Willy, thanks a lot! So far 1.4.13 is really rocking. Cheers. On Mar 22, 2011, at 6:32 AM, Willy Tarreau wrote: Hi Pedro, On Mon, Mar 21, 2011 at 11:56:23PM +, Pedro Mata-Mouros Fonseca wrote: Greetings, We had an issue with 1.3.18 that pushed us to update HAProxy's version

Re: 1.3.18 randomly generates sH-- 504 on POST requests

2011-03-22 Thread Pedro Mata-Mouros Fonseca
Precisely. We will activate client side keep-alive in the next few days. Thanks again. On Mar 22, 2011, at 11:40 AM, Willy Tarreau wrote: On Tue, Mar 22, 2011 at 11:27:05AM +, Pedro Mata-Mouros Fonseca wrote: Ok Willy, thanks a lot! So far 1.4.13 is really rocking. Since you migrated

1.3.18 randomly generates sH-- 504 on POST requests

2011-03-21 Thread Pedro Mata-Mouros Fonseca
Greetings, We had an issue with 1.3.18 that pushed us to update HAProxy's version to the latest stable on the 1.4 branch. After almost two days, it seems the update solved this, so I'm guessing a bug was somewhere along the line. The issue was on a POST file upload to a backend, where HAProxy

Building a rspirep based on the frontend incoming URL

2010-05-26 Thread Pedro Mata-Mouros Fonseca
Greetings, For a given image serving backend I use a reqrep to rewrite an incoming scrambled URL and pass it on unscrambled: reqrep ^(GET[^\ ]*)\ /image/\w{1}(\w{2})(\w{2})(\w{2})(.*)\1\ /storage\5/images/\3/\4\2 In the response should be the corresponding requested image. Since these

Re: timeout client / server clarification

2009-08-21 Thread Pedro Mata-Mouros Fonseca
Ok, thanks for the info Willy! Pedro. On Aug 21, 2009, at 1:18 PM, Willy Tarreau wrote: Hello Pedro, On Fri, Aug 21, 2009 at 11:05:04AM +0100, Pedro Mata-Mouros Fonseca wrote: Hello Willy, everyone, This is the only entry in /var/log/haproxy.log generated after the upload and the 504

Re: timeout client / server clarification

2009-08-20 Thread Pedro Mata-Mouros Fonseca
should be reset throughout the upload... Can anyone shed some light on this? Thanks so much. Pedro. On Aug 13, 2009, at 9:45 PM, Willy Tarreau wrote: On Thu, Aug 13, 2009 at 12:16:06PM +0100, Pedro Mata-Mouros Fonseca wrote: Greetings, Picking this up again, there's a little problem

Re: Capture and alter a 404 from an internal server

2009-07-24 Thread Pedro Mata-Mouros Fonseca
Hello, Thank you so much Maciej, I will give it a try - although in that referenced email it seems like a scary thing to do... A hard thing to evaluate is the cost of having such rspirep processing in every response coming from that specific frontend... Is it too overwhelming to the

Re: load balancing algorithm

2009-07-22 Thread Pedro Mata-Mouros Fonseca
SOAPAction? What do you think? Cheers, Johan - Original Message - From: Pedro Mata-Mouros Fonseca To: haproxy@formilux.org Sent: Wednesday, July 22, 2009 12:19 PM Subject: Re: load balancing algorithm I guess you could analyse the URI, and if it's that specific method that's being

Duplicate checks in backup servers?

2009-06-26 Thread Pedro Mata-Mouros Fonseca
Greetings, This is my first post into this mailing list, been following it for a few days. So, greetings from Portugal. I have a small doubt: I have a few backend sections defined in my haproxy.conf, one of each is composed of server1 to 4 - and all of them using the check keyword. In