haproxy + memcached

2009-03-04 Thread Joseph Hardeman

Hi Everyone,

I was wondering if anyone has put a haproxy system in front of memcached 
and how it performed.  I am considering putting 12 web servers in front 
of a haproxy server with 2 memcached servers behind it to spread the 
calls to memcached between the two memcached systems.  Does anyone have 
any recommendation on how this can be setup?  Using multiple ports in 
memcached.


Thanks everyone.

Joe


--
This message has been scanned for viruses by Colocube's AV Scanner

begin:vcard
fn:Joseph Hardeman
n:Hardeman;Joseph
org:Colocube, LLC;Operations
adr:;;4311 Communications Dr;Norcross;GA;30093;US
email;internet:jharde...@colocube.com
title:Data Center Manager
tel;work:678-427-5890
tel;cell:678-427-5890
note:This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.  Thank you.
x-mozilla-html:FALSE
url:http://www.colocube.com
version:2.1
end:vcard



Stats Page Explanation

2009-03-04 Thread Joseph Hardeman

Hi

I was wondering if there was a document explaining what the sessions 
counter actively counted? 

I have been doing some testing and when I go to a single page, the 
counter for Max Sessions tend go up more than the single request page I 
made.  I looked in my logs and saw the page I requested called several 
js pages and css page along with the main page along with multiple 
images (which may have been cached on my system) and the max sessions 
counter went up to 6, so I am trying to understand how the counters work 
and what they call a session so that I can explain it to my supervisors 
so that they in turn can explain it to others.


Does haproxy count every request sent thru haproxy to get either a page, 
image, streaming file, or some other object as a session?


Thanks for any help.

Joe

--
This message has been scanned for viruses by Colocube's AV Scanner

begin:vcard
fn:Joseph Hardeman
n:Hardeman;Joseph
org:Colocube, LLC;Operations
adr:;;4311 Communications Dr;Norcross;GA;30093;US
email;internet:jharde...@colocube.com
title:Data Center Manager
tel;work:678-427-5890
tel;cell:678-427-5890
note:This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.  Thank you.
x-mozilla-html:FALSE
url:http://www.colocube.com
version:2.1
end:vcard



Re: "option httpchk" is reporting servers as down when they're not

2009-03-04 Thread Jeffrey 'jf' Lim
well, looks like ur servers are actually down then. Do a curl from
your haproxy machine to both servers. What do you get?

-jf

--
In the meantime, here is your PSA:
"It's so hard to write a graphics driver that open-sourcing it would not help."
-- Andrew Fear, Software Product Manager, NVIDIA Corporation
http://kerneltrap.org/node/7228


On Wed, Mar 4, 2009 at 9:40 PM, Allen, Thomas  wrote:
> Never mind, I got it going. My stats page simply says that both servers are 
> down. What else should I be looking for?
>
> Thomas Allen
> Web Developer, ASCE
> 703.295.6355
>
> -Original Message-
> From: Jeffrey 'jf' Lim [mailto:jfs.wo...@gmail.com]
> Sent: Wednesday, March 04, 2009 2:22 AM
> To: Allen, Thomas
> Cc: haproxy@formilux.org
> Subject: Re: "option httpchk" is reporting servers as down when they're not
>
> - Show quoted text -
> On Wed, Mar 4, 2009 at 4:05 AM, Allen, Thomas  wrote:
>> Hi,
>>
>> I like the idea of having HAProxy check server health, but for some reason,
>> it reports all of my servers as down. Here's my full config:
>>
>> listen http_proxy :80
>>     mode http
>>     balance roundrobin
>>     option httpchk
>>     server webA {IP} cookie A check
>>     server webB {IP} cookie B check
>>
>> I tried "option httpchk /index.php" just to be sure, and got the same
>> result. If I remove the httpchk option, HAProxy has no problem proxying
>> these servers. What am I doing wrong?
>>
>
> what's listed under "Status" for these servers when viewing your
> haproxy status page?
>
> -jf
>
> --
> In the meantime, here is your PSA:
> "It's so hard to write a graphics driver that open-sourcing it would not 
> help."
>    -- Andrew Fear, Software Product Manager, NVIDIA Corporation
> http://kerneltrap.org/node/7228
>



RE: "option httpchk" is reporting servers as down when they're not

2009-03-04 Thread Allen, Thomas
Never mind, I got it going. My stats page simply says that both servers are 
down. What else should I be looking for?

Thomas Allen
Web Developer, ASCE
703.295.6355

-Original Message-
From: Jeffrey 'jf' Lim [mailto:jfs.wo...@gmail.com] 
Sent: Wednesday, March 04, 2009 2:22 AM
To: Allen, Thomas
Cc: haproxy@formilux.org
Subject: Re: "option httpchk" is reporting servers as down when they're not

On Wed, Mar 4, 2009 at 4:05 AM, Allen, Thomas  wrote:
> Hi,
>
> I like the idea of having HAProxy check server health, but for some reason,
> it reports all of my servers as down. Here's my full config:
>
> listen http_proxy :80
>     mode http
>     balance roundrobin
>     option httpchk
>     server webA {IP} cookie A check
>     server webB {IP} cookie B check
>
> I tried "option httpchk /index.php" just to be sure, and got the same
> result. If I remove the httpchk option, HAProxy has no problem proxying
> these servers. What am I doing wrong?
>

what's listed under "Status" for these servers when viewing your
haproxy status page?

-jf

--
In the meantime, here is your PSA:
"It's so hard to write a graphics driver that open-sourcing it would not help."
-- Andrew Fear, Software Product Manager, NVIDIA Corporation
http://kerneltrap.org/node/7228



RE: "option httpchk" is reporting servers as down when they're not

2009-03-04 Thread Allen, Thomas
What's a status page? I don't recall anything in the docs about where this is 
located or how to configure it, but I probably glossed over something.

Thanks,
Thomas Allen
Web Developer, ASCE
703.295.6355

-Original Message-
From: Jeffrey 'jf' Lim [mailto:jfs.wo...@gmail.com] 
Sent: Wednesday, March 04, 2009 2:22 AM
To: Allen, Thomas
Cc: haproxy@formilux.org
Subject: Re: "option httpchk" is reporting servers as down when they're not

On Wed, Mar 4, 2009 at 4:05 AM, Allen, Thomas  wrote:
> Hi,
>
> I like the idea of having HAProxy check server health, but for some reason,
> it reports all of my servers as down. Here's my full config:
>
> listen http_proxy :80
>     mode http
>     balance roundrobin
>     option httpchk
>     server webA {IP} cookie A check
>     server webB {IP} cookie B check
>
> I tried "option httpchk /index.php" just to be sure, and got the same
> result. If I remove the httpchk option, HAProxy has no problem proxying
> these servers. What am I doing wrong?
>

what's listed under "Status" for these servers when viewing your
haproxy status page?

-jf

--
In the meantime, here is your PSA:
"It's so hard to write a graphics driver that open-sourcing it would not help."
-- Andrew Fear, Software Product Manager, NVIDIA Corporation
http://kerneltrap.org/node/7228



RE: metrics/ratios

2009-03-04 Thread Morris, Nat

We split our CRM/business app traffic so 90% goes to our live data centre
and 10% across our WAN to the DR site.

I use a config similar to this...

server prodserv1 172.24.3.11:80 weight 30 check
server prodserv2 172.24.3.12:80 weight 15 check
server prodserv3 172.24.3.13:80 weight 15 check
server drserver1 172.24.190.131:80 weight 5 check
server drserver2 172.24.190.132:80 weight 5 check

Prodserv1 is a quad core box, and prodserv[2/3] are dualcore.

The weighting approach appears to work well.

Nat,

-Original Message-
From: John Lauro [mailto:john.la...@covenanteyes.com] 
Sent: 04 March 2009 11:32
To: 'Michal Krajcirovic'; haproxy@formilux.org
Subject: RE: metrics/ratios

A combination of weight and maxconn work well along with balance leastconn
to keep the ratios in sync, assuming they scale the same.

There are more options if weight/maxconn isn't good enough.

 

> -Original Message-
> From: Michal Krajcirovic [mailto:mic...@krajcirovic.cz]
> Sent: Wednesday, March 04, 2009 6:15 AM
> To: haproxy@formilux.org
> Subject: metrics/ratios
> 
> Nice day from Central Europe,
> I would like to ask whether it is possible in some way haproxy set 
> metrics/ratios.
> I have a few powerful servers, but some weaker, and at the same ratio 
> of requirements to get to a large burden on the weaker, which is not 
> good.
> 
> Thanks a lot for the tips, nice day.
> 
> Michal Krajcirovic


**
This document should only be read by those persons to whom it is addressed, and 
be used by them for its intended purpose; and must not otherwise be reproduced, 
copied, disseminated, disclosed, modified, distributed, published or actioned. 
If you have received this email in error, please notify us immediately by 
telephone on 01437 775882 and delete it from your computer immediately. This 
email address must not be passed on to any third party nor be used for any 
other purpose.
Pembrokeshire County Council Website - http://www.pembrokeshire.gov.uk
This signature also confirms that this email message has been swept for the 
presence of computer viruses and malicious code.
***
Dim ond y sawl y mae'r ddogfen hon wedi'i chyfeirio atynt ddylai ei darllen, 
a'i defnyddio ganddynt ar gyfer ei dibenion bwriadedig; ac ni ddylid fel arall 
ei hatgynhyrchu, copio, lledaenu, datgelu, addasu, dosbarthu, cyhoeddi na'i 
rhoi ar waith chwaith. Os ydych chi wedi derbyn yr e-bost hwn trwy gamgymeriad, 
byddwch cystal a rhoi gwybod i ni ar unwaith trwy ffonio 01437 775882 a'i 
ddileu oddi ar eich cyfrifiadur ar unwaith. Ni ddylid rhoi'r cyfeiriad e-bost i 
unrhyw drydydd parti na'i ddefnyddio ar gyfer unrhyw ddiben arall chwaith.
Gwefan Cyngor Sir Penfro - http://www.pembrokeshire.gov.uk 
Mae'r llofnod hwn hefyd yn cadarnhau bod y neges e-bost hon wedi cael ei 
harchwilio am fodolaeth firysau cyfrifiadurol a chod maleisus.
***



RE: metrics/ratios

2009-03-04 Thread John Lauro
A combination of weight and maxconn work well along with balance leastconn
to keep the ratios in sync, assuming they scale the same.

There are more options if weight/maxconn isn't good enough.

 

> -Original Message-
> From: Michal Krajcirovic [mailto:mic...@krajcirovic.cz]
> Sent: Wednesday, March 04, 2009 6:15 AM
> To: haproxy@formilux.org
> Subject: metrics/ratios
> 
> Nice day from Central Europe,
> I would like to ask whether it is possible in some way haproxy set
> metrics/ratios.
> I have a few powerful servers, but some weaker, and at the same ratio
> of
> requirements to get to a large burden on the weaker, which is not good.
> 
> Thanks a lot for the tips, nice day.
> 
> Michal Krajcirovic




metrics/ratios

2009-03-04 Thread Michal Krajcirovic

Nice day from Central Europe,
I would like to ask whether it is possible in some way haproxy set 
metrics/ratios.
I have a few powerful servers, but some weaker, and at the same ratio of 
requirements to get to a large burden on the weaker, which is not good.


Thanks a lot for the tips, nice day.

Michal Krajcirovic