Re: Problem with haproxy under testload

2009-02-19 Thread Willy Tarreau
On Thu, Feb 19, 2009 at 03:59:54PM -0800, Valentino Volonghi wrote: > >Could you check net.ipv4.tcp_tw_reuse, and set it to 1 if it's zero ? > > It probably was set to 0... This fix and the change of tcp_mem to the > standard values (which are created dynamically depending on the > available memor

Re: Problem with haproxy under testload

2009-02-19 Thread Valentino Volonghi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Feb 19, 2009, at 1:48 PM, Willy Tarreau wrote: Thanks for the long answer. You're correct, this is typically what happens in such a case. The increase of CPU usage is generally caused by two factors : - connection retries, which act as a traff

Re: Read stat or info from the socket via perl

2009-02-19 Thread Willy Tarreau
Hi, On Sat, Feb 14, 2009 at 10:53:11PM +0100, vmware vmware wrote: > Hi all, > > I am trying to read the information (show info, show stat) from the socket > of haproxy with a perl script in order to get a similar result when using > the socat command. The problem is that I am not able to read so

Re: HAProxy & mod_rails (Passenger)

2009-02-19 Thread Willy Tarreau
On Thu, Feb 19, 2009 at 10:02:36AM +0100, Matthias Müller wrote: > Hello there > > I'm trying to find a suitable solution to load balance Rails applications > via Passenger and HAProxy.Currentliy I'm doing a lot of testing using > Apache Bench. > > The setting is as simple as follows: > > mach

Re: Problem with haproxy under testload

2009-02-19 Thread Willy Tarreau
Hi Valentino, On Thu, Feb 19, 2009 at 11:04:21AM -0800, Valentino Volonghi wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, I've been trying to use haproxy 1.3.15.7 in front of a couple of > erlang mochiweb servers in EC2. > > The server alone can deal with about 3000 req/sec and

Problem with haproxy under testload

2009-02-19 Thread Valentino Volonghi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I've been trying to use haproxy 1.3.15.7 in front of a couple of erlang mochiweb servers in EC2. The server alone can deal with about 3000 req/sec and I can hit it directly with ab or siege or tsung and see a similar result. I then tried using n

Reading haproxy statistics via Perl

2009-02-19 Thread Maria
Hi once again, Sorry for my previous weired posting. Now I formulated my code cleaner. My question was: I am trying to read the information logged from haproxy (e.g. show info, show stat) from the socket using perl. My intention is to read out the information in a similar manner as the command "s

Reading haproxy statistics via Perl

2009-02-19 Thread Maria
Hi once again, Sorry for my previous weired posting. Now I formulated my code cleaner. My question was: I am trying to read the information logged from haproxy (e.g. show info, show stat) from the socket using perl. My intention is read out the information in a similar manner as the command so

HAProxy & mod_rails (Passenger)

2009-02-19 Thread Matthias Müller
Hello there I'm trying to find a suitable solution to load balance Rails applications via Passenger and HAProxy.Currentliy I'm doing a lot of testing using Apache Bench. The setting is as simple as follows: machine A: HAProxy machine B: Apache with mod_rails my test: 100 concurrent requests