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

2012-06-21 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

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. https://github.com/f

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 : > 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 load

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

2012-03-16 Thread Carlo Flores
server s03 2.3.4.3:80 <http://2.3.4.3/> > use_server s01 if { src 217.192.7.0/24 } > > 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 > *Date:* 2012-03-

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"... >

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

2012-03-14 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 ba

Re: Create Backed by Unix Socket

2012-02-06 Thread carlo flores
sync'd with Willy's upstream copy. > > carlo flores 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

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, 2

Re: another round for configuration.txt => html

2011-11-02 Thread carlo flores
Just curious: why not rewrite the docs in markdown? Would a rewrite formulinix could just add to be welcome? On Wednesday, November 2, 2011, Baptiste wrote: > Hi Aleks, > > It's a good and interesting start. > I already talked to Willy about the doc format, and unfortunately for > you, the way y

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 environme

Re: Makefile.bsd'd SYSTEM_MAXCONN=1024 ?

2011-09-26 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 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 pa

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 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 > oth

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: Haproxy notifications

2011-09-24 Thread carlo flores
file to load -- haproxyctl > (LoadError) > from /etc/init.d/haproxyctl:17 > > > > On 22 September 2011 21:42, carlo flores wrote: > >> Here's an HAProxy ctl/init script that includes Nagios and Cloudkick >> checks (to the UNIX socket and lsof listeners) to go wit

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 ba

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 a

Re: 5000 CPS for haproxy

2011-08-02 Thread carlo flores
x27;m interested by your > way of testing applications. > Long time ago, I used perl and libwww. > > cheers :) > > > On Tue, Aug 2, 2011 at 9:08 AM, carlo flores wrote: >> To add to this is a great automated tool and ideas from The Chicago Tribune >> called Bees With

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 me

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 g

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 wrote: > On Wed, Jun 15, 2011 at 06:43:14PM +0530, shreyas pandy

Re: Rate Limiting Blog Link

2011-04-19 Thread carlo flores
Hey Bradford. Have you considered doing this with iptables (Linux) or pf (BSD)? You'll want to use port 443 for your HTTPs problem, of course... http://codingfreak.blogspot.com/2010/01/iptables-rate-limit-incoming.html But be wary of NATs and such, especially if you have a high traffic site. F

Re: Apache error log problem

2011-04-07 Thread carlo flores
proxy_ips 127.0.0.1 > > > # tail /vat/log/apache/error.log > [Thu Apr 07 13:45:21 2011] [error] [client my.proxy.ip] File does not exist:   > /var/www/asdasdsadasdasdsad > > Any more ideas? B^> > > Thanks Greg > > -Original Message- > From: carlo flores [ma

Re: Marking servers disabled-by-default (until checks return)

2011-04-05 Thread carlo flores
Hey Charles. This may be totally jank for you, but works for us in a different scenario. It's really just a loop to match a server name to a backend name, and the EXCEPT flag can be toggled: https://gist.github.com/904958 https://github.com/flores/haproxyctl Perhaps you'll find it useful... c

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 wrote: > Actu

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 ke

Re: haproxy installation

2011-01-04 Thread carlo flores
t > Shutting down HAproxy: [FAILED] > Starting HAproxy: [ALERT] 004/060455 (8011) : Starting proxy webfarm: > cannot bind socket >[FAILED] > > Thanks > > > On 05-01-2011 06:00,

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: 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 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 sti

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

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é 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&#x

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 wrote: > Thanks, Willy! > > I am especially excited about the new per-URL statistics, super especially > for the average time metric. How

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: hosting HAProxy and content servers in different locations

2010-09-07 Thread Carlo Flores
You'll see the time for your health check to the content servers, which is essentially the time for network transfer, from the stats page or socket. Obviously this time will impact the page load times for your client. Your own metrics for latency via curl or a # time "wget http://contentservers/

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,