Re: Haproxy plus ices protocol (99.999% similar to HTTP)

2012-06-22 Thread Carlo Flores
(great thread.) On Thursday, June 21, 2012, Willy Tarreau wrote: On Fri, Jun 22, 2012 at 01:51:12AM -0400, Martin Konecny wrote: Hi Willy, I can only answer your question by saying that other clients that use this protocol but replace ICE/1.0 with HTTP/1.0 have no problem with HAProxy.

Re: FW: problem with haproxy reload

2012-06-06 Thread Carlo Flores
Its toally dirty, but we have our wrapper check for such exceptions, then force a listener if an haproxy listener doesn't exist after a reload/restart to the existing (now dead) haproxy process. I've grown to not fret about such dirty when running haproxy dev branch, but ymmv.

Re: Performance decrease with HAproxy

2012-04-14 Thread Carlo Flores
One more general q: Any measurable latency between the HAProxy and Squid boxes? 2012/4/14 Willy Tarreau w...@1wt.eu: Hi, On Sun, Apr 15, 2012 at 04:00:39AM +0700, Thái Lę Trí wrote: I have trouble with HAproxy. using HAproxy for load balance and backend have 3 squid proxy. But the time to

Re: Re: How to select a server based on client ip ?

2012-03-16 Thread Carlo Flores
} We have many servers for different developers, the rules may be complex and changing. It is not elegant to define hundreds of backend. *From:* Carlo Flores l...@js.la *Date:* 2012-03-15 14:45 *To:* wsq003 wsq...@sina.com *CC:* haproxy haproxy@formilux.org *Subject:* Re: How to select

Re: How to select a server based on client ip ?

2012-03-15 Thread Carlo Flores
See the src entry under section 7.5.1 of the HAProxy docs. There's actually many examples of this acl you'll find throughout the doc. You'd use something like this: frontend http bind :80 mode http acl always_s01 src 217.192.7.0/24 use_backend s01 if always_s01 default_backend pool

Re: problems with enabling/disabling servers via socket

2012-03-15 Thread Carlo Flores
Hey Michele. I'm confused as to how show stat is correct... According to the statistics I have retrieved by means of show stat after enabling disabling servers, it looks like the socket is working as expected. But your script does not correspond to this even though it uses show stat... After

Re: Create Backed by Unix Socket

2012-02-06 Thread carlo flores
John, Where's the documentation for your patch? I'm up for playing with this neat idea even if we don't use it in Prod. Might hook in some suff to haproxyctl if you can output a version number/patch/something so the ctl script can recognize when someone is using this version... On Mon, Feb 6,

Re: Create Backed by Unix Socket

2012-02-06 Thread carlo flores
with Willy's upstream copy. carlo flores ca...@petalphile.com wrote: John, Where's the documentation for your patch? I'm up for playing with this neat idea even if we don't use it in Prod. Might hook in some suff to haproxyctl if you can output a version number/patch/something so the ctl

Re: Timeout values

2011-10-26 Thread carlo flores
I can appreciate having to keep a slow application layer highly available via long timeouts, but as a suggestion: a) keep lots of available sockets open and think about the timeout wait sysctl reuse/recycle variables And b) think about creating a simple page (in whatever language and

Re: Makefile.bsd'd SYSTEM_MAXCONN=1024 ?

2011-09-27 Thread carlo flores
Thanks much Willy. We are moving forward with commenting this out in our installs, FYI. On Monday, September 26, 2011, Willy Tarreau w...@1wt.eu wrote: Hi Carlo, On Mon, Sep 26, 2011 at 04:18:38PM -0700, carlo flores wrote: Just wondering if this is enabled in Makefile.bsd for a particular

Makefile.bsd'd SYSTEM_MAXCONN=1024 ?

2011-09-26 Thread carlo flores
Just wondering if this is enabled in Makefile.bsd for a particular reason? We're building automated installers and noticed it is commented out in other Makefiles but is still active for BSD installs. Maybe we'll be able to update the version in OpenBSD'd ports, too... Thanks!

Re: Makefile.bsd'd SYSTEM_MAXCONN=1024 ?

2011-09-26 Thread carlo flores
I'm seeing this in and playing with 1.4.18, by the way. Thanks! On Mon, Sep 26, 2011 at 4:18 PM, carlo flores ca...@petalphile.com wrote: Just wondering if this is enabled in Makefile.bsd for a particular reason? We're building automated installers and noticed it is commented out in other

Re: Haproxy notifications

2011-09-24 Thread carlo flores
-- haproxyctl (LoadError) from /etc/init.d/haproxyctl:17 On 22 September 2011 21:42, carlo flores ca...@petalphile.com wrote: Here's an HAProxy ctl/init script that includes Nagios and Cloudkick checks (to the UNIX socket and lsof listeners) to go with the regular start/stop/init stuff: https

Re: Haproxy notifications

2011-09-22 Thread carlo flores
Here's an HAProxy ctl/init script that includes Nagios and Cloudkick checks (to the UNIX socket and lsof listeners) to go with the regular start/stop/init stuff: https://github.com/flores/haproxyctl The advantage of using a wrapper around the UNIX socket is you can also add checks for available

What do you think about Zed Shaw / Mongrel2's SuperPoll?

2011-08-04 Thread carlo flores
Hey Willy, all. We are playing with Mongrel2 and found this post from Zed interesting and -- for myself -- surprising: http://sheddingbikes.com/posts/1280829388.html Have you had a chance to read, think about, or respond to it with regards to poll vs epoll in HAProxy versus the number of active

Re: 5000 CPS for haproxy

2011-08-02 Thread carlo flores
To add to this is a great automated tool and ideas from The Chicago Tribune called Bees With Machine Guns, which spins up n AWS micro instances to push traffic to the target server. https://github.com/newsapps/beeswithmachineguns My CTO makes the argument that connections/s or sessions/s don't

Re: 5000 CPS for haproxy

2011-08-02 Thread carlo flores
and libwww. cheers :) On Tue, Aug 2, 2011 at 9:08 AM, carlo flores ca...@petalphile.com wrote: To add to this is a great automated tool and ideas from The Chicago Tribune called Bees With Machine Guns, which spins up n AWS micro instances to push traffic to the target server. https

Re: Increasing amount of spam on the mailing list

2011-07-25 Thread carlo flores
I love the suggestion and offer to administrate the mail list (and I too volunteer), but, ultimately: whatever. SPAM is part of most any list and the more time the guys spend on one of the best pieces of software in the world, the better. I happily skip these messages in hopes Willy Cyril and the

Re: nice wiki doc of haproxy

2011-06-15 Thread carlo flores
Looks trivial to fork this and turn the regex.txt into a script. I'm up for taking that once we have free cycles at work (couple days max). https://github.com/tmslnz/HAProxy_Markdown On Wed, Jun 15, 2011 at 1:12 PM, Willy Tarreau w...@1wt.eu wrote: On Wed, Jun 15, 2011 at 06:43:14PM +0530,

Re: TCP proxy capabilities

2011-03-14 Thread carlo flores
Hi Guy, If you only want HAProxy to queue connections and not send that immediate ok any longer, check out how these folks are doing it to queue to MySQL. http://flavio.tordini.org/a-more-stable-mysql-with-haproxy/comment-page-1 On Mon, Mar 14, 2011 at 5:15 PM, g...@desgames.com

Re: Configuration API?

2011-02-06 Thread carlo flores
Your last suggestion is what are suits call auto-scaling, and the idea of doing that with HAProxy is really appealing and would be a big plus for us. As a test tomorrow with 1.4.10/stable idea, let's say a pool of 10 servers had two servers with zero weight, and a script watching the unix socket

Re: Configuration API?

2011-02-04 Thread carlo flores
As an example, our shop extends your wish list with the ability to pull stats from the UNIX socket and trigger alerts via Nagios or Cloudkick ass we need. If you want it, easy to add whatever you need to a fork of this. We'll commit it back in: https://github.com/flores/haproxyctl I believe you

Re: Error during Apache AB benchmarking test -- HAProxy

2011-02-03 Thread carlo flores
I've never seen this on one of our HAProxy benchmarks. We usually use siege and our own application (also testing the HTTP applications/user behavior). For clarity, you do not see timeouts when going direct to, say, nginx serving hi on port 80? I ask because maybe this is really a ulimit or

Re: haproxy installation

2011-01-04 Thread carlo flores
Same line of thought: perhaps there's a process already running listening on your target port. I'd suggest you do a netstat or lsof to see if Karl is right and it is an old HAProxy. (Just as likely to be another process.) For example, if HAProxy is to listen on port 80... # netstat -ano |grep

Re: haproxy installation

2011-01-04 Thread carlo flores
: [FAILED] Starting HAproxy: [ALERT] 004/060455 (8011) : Starting proxy webfarm: cannot bind socket [FAILED] Thanks On 05-01-2011 06:00, carlo flores wrote: Same line of thought: perhaps there's a process already

Re: stunnel patch updates

2010-12-08 Thread carlo flores
Thank you Cyril and bartavelle! On Wed, Dec 8, 2010 at 3:24 PM, Willy Tarreau w...@1wt.eu wrote: Hi guys, On Wed, Dec 08, 2010 at 07:54:19PM +0100, Cyril Bonté wrote: Le mercredi 8 décembre 2010 13:11:10, Craig a écrit : Am 06.12.2010 22:31, Cyril Bonté wrote: I don't know if you

HAProxy init and stats socket script

2010-12-02 Thread carlo flores
Hi folks. For our company's convenience, we prefer to have our HAProxy unit script also allow us to talk to the stats socket. We also do a couple other things, like show connections with a status argument. Perhaps you can use it too. Code and readme here: https://github.com/flores/haproxyctl A

Re: [ANNOUNCE] haproxy 1.4.9

2010-10-28 Thread Carlo Flores
Thanks, Willy! I am especially excited about the new per-URL statistics, super especially for the average time metric. However, I can't use these flags with my build of 1.4.9 from source. # /usr/local/sbin/haproxy -u -uc -ue -ut -ua -uto -uaoHA-Proxy version 1.4.9 2010/10/28 Copyright 2000-2010

Re: [ANNOUNCE] haproxy 1.4.9

2010-10-28 Thread Carlo Flores
... sorry about those broken new lines. Here's the gist: http://gist.github.com/652558 On Thu, Oct 28, 2010 at 4:27 PM, Carlo Flores ca...@petalphile.com wrote: Thanks, Willy! I am especially excited about the new per-URL statistics, super especially for the average time metric. However

Re: [ANNOUNCE] haproxy 1.4.9

2010-10-28 Thread Carlo Flores
D'oh! Thank you, Cyril! On Thu, Oct 28, 2010 at 4:45 PM, Cyril Bonté cyril.bo...@free.fr wrote: Le vendredi 29 octobre 2010 01:27:30, Carlo Flores a écrit : I am especially excited about the new per-URL statistics, super especially for the average time metric. However, I can't use

Re: Can't get server check to work with virtual hosts

2010-08-17 Thread Carlo Flores
How about passing healthcheck.cluster6.corp.amiestreet.com for the option httpchk, and also have the Apache VirtualHosts recognize healthcheck as a ServerAlias? The idea here is your healthcheck will be standardized to each host in the cluster, which you'll also want when you split these hosts,