Re: The gap between ``Total'' and ``LbTot'' in stats page

2009-03-22 Thread Willy Tarreau
On Thu, Mar 19, 2009 at 11:14:48PM -0700, James Satterfield wrote:
> I just recently upgraded my LBs to 1.3.15.8 from 1.2.something and  
> noticed those stats. I was wondering about them as well. In my setup  
> those numbers only seem to differ where I'm using cookies for  
> persistence.

Normally the difference is caused by persistence cookies. But there
is another case too. If all servers are full and the request is queued
in the backend's queue, then one server will pick the requests once
available, regardless of the LB algorithm, so lbtot will not be
incremented.

Willy




Re: The gap between ``Total'' and ``LbTot'' in stats page

2009-03-19 Thread James Satterfield
I just recently upgraded my LBs to 1.3.15.8 from 1.2.something and  
noticed those stats. I was wondering about them as well. In my setup  
those numbers only seem to differ where I'm using cookies for  
persistence.


James.

On Mar 19, 2009, at 10:35 PM, Sun Yijiang wrote:

All our backend servers share cookie info from one memcached server,  
so we don't use HAProxy to handle any cookie stuff.


2009/3/20 James Satterfield 
Are you using cookies to maintain client to server persistence?

James.

On Mar 19, 2009, at 1:16 AM, Sun Yijiang wrote:

Raised the limit and restarted HAProxy.  No down time or limit  
reaching, but LbTot is still only about 15% of Total sessions.  Any  
possible reason for this?


2009/3/18 Sun Yijiang 
Backend servers were down about 2 hours during the 37 hour up  
time.  Session limits have been reached for frontend and all  
backend servers.  Retr 138, Redis 0 for Backend.


2009/3/17 John Lauro 

Mine don’t appear to have that much difference.  Are any of the  
servers down, or maybe reaching their session limits?  What’s your  
retr and redis look like?



From: Sun Yijiang [mailto:sunyiji...@gmail.com]
Sent: Tuesday, March 17, 2009 3:18 AM
To: kuan...@mail.51.com
Cc: haproxy@formilux.org
Subject: Re: The gap between ``Total'' and ``LbTot'' in stats page


Yeah, that's clear, thanks.  I just wonder why ``LbTot'' is much  
smaller than ``Total''.


2009/3/17 FinalBSD 

check it here: http://haproxy.1wt.eu/download/1.3/doc/configuration.txt

30. lbtot: total number of times a server was selected


On Tue, Mar 17, 2009 at 1:56 PM, Sun Yijiang   
wrote:


Hi you guys,

I noticed that there's a huge gap between ``Total'' and ``LbTot''  
numbers in the stats page.  LbTot is only about 25% of Total  
sessions for backend server.  Is this the normal case?  What do  
they mean exactly?  I've read the source code for a while but could  
not find a clear answer.


Thanks in advance.


Steve












Re: The gap between ``Total'' and ``LbTot'' in stats page

2009-03-19 Thread Sun Yijiang
All our backend servers share cookie info from one memcached server, so we
don't use HAProxy to handle any cookie stuff.

2009/3/20 James Satterfield 

> Are you using cookies to maintain client to server persistence?
> James.
>
> On Mar 19, 2009, at 1:16 AM, Sun Yijiang wrote:
>
> Raised the limit and restarted HAProxy.  No down time or limit reaching,
> but LbTot is still only about 15% of Total sessions.  Any possible reason
> for this?
>
> 2009/3/18 Sun Yijiang 
>
>> Backend servers were down about 2 hours during the 37 hour up time.
>> Session limits have been reached for frontend and all backend servers.  Retr
>> 138, Redis 0 for Backend.
>>
>> 2009/3/17 John Lauro 
>>
>>  Mine don’t appear to have that much difference.  Are any of the servers
>>> down, or maybe reaching their session limits?  What’s your retr and redis
>>> look like?
>>>
>>>
>>> *From:* Sun Yijiang [mailto:sunyiji...@gmail.com]
>>> *Sent:* Tuesday, March 17, 2009 3:18 AM
>>> *To:* kuan...@mail.51.com
>>> *Cc:* haproxy@formilux.org
>>> *Subject:* Re: The gap between ``Total'' and ``LbTot'' in stats page
>>>
>>>
>>> Yeah, that's clear, thanks.  I just wonder why ``LbTot'' is much smaller
>>> than ``Total''.
>>>
>>> 2009/3/17 FinalBSD 
>>>
>>> check it here: http://haproxy.1wt.eu/download/1.3/doc/configuration.txt
>>>
>>> 30. lbtot: total number of times a server was selected
>>>
>>>
>>>
>>>  On Tue, Mar 17, 2009 at 1:56 PM, Sun Yijiang 
>>> wrote:
>>>
>>> Hi you guys,
>>>
>>> I noticed that there's a huge gap between ``Total'' and ``LbTot'' numbers
>>> in the stats page.  LbTot is only about 25% of Total sessions for backend
>>> server.  Is this the normal case?  What do they mean exactly?  I've read the
>>> source code for a while but could not find a clear answer.
>>>
>>> Thanks in advance.
>>>
>>>
>>> Steve
>>>
>>>
>>>
>>
>>
>
>


Re: The gap between ``Total'' and ``LbTot'' in stats page

2009-03-19 Thread James Satterfield

Are you using cookies to maintain client to server persistence?

James.

On Mar 19, 2009, at 1:16 AM, Sun Yijiang wrote:

Raised the limit and restarted HAProxy.  No down time or limit  
reaching, but LbTot is still only about 15% of Total sessions.  Any  
possible reason for this?


2009/3/18 Sun Yijiang 
Backend servers were down about 2 hours during the 37 hour up time.   
Session limits have been reached for frontend and all backend  
servers.  Retr 138, Redis 0 for Backend.


2009/3/17 John Lauro 

Mine don’t appear to have that much difference.  Are any of the  
servers down, or maybe reaching their session limits?  What’s your  
retr and redis look like?



From: Sun Yijiang [mailto:sunyiji...@gmail.com]
Sent: Tuesday, March 17, 2009 3:18 AM
To: kuan...@mail.51.com
Cc: haproxy@formilux.org
Subject: Re: The gap between ``Total'' and ``LbTot'' in stats page


Yeah, that's clear, thanks.  I just wonder why ``LbTot'' is much  
smaller than ``Total''.


2009/3/17 FinalBSD 

check it here: http://haproxy.1wt.eu/download/1.3/doc/ 
configuration.txt


30. lbtot: total number of times a server was selected


On Tue, Mar 17, 2009 at 1:56 PM, Sun Yijiang   
wrote:


Hi you guys,

I noticed that there's a huge gap between ``Total'' and ``LbTot''  
numbers in the stats page.  LbTot is only about 25% of Total  
sessions for backend server.  Is this the normal case?  What do they  
mean exactly?  I've read the source code for a while but could not  
find a clear answer.


Thanks in advance.


Steve









Re: The gap between ``Total'' and ``LbTot'' in stats page

2009-03-19 Thread Sun Yijiang
Raised the limit and restarted HAProxy.  No down time or limit reaching, but
LbTot is still only about 15% of Total sessions.  Any possible reason for
this?

2009/3/18 Sun Yijiang 

> Backend servers were down about 2 hours during the 37 hour up time.
> Session limits have been reached for frontend and all backend servers.  Retr
> 138, Redis 0 for Backend.
>
> 2009/3/17 John Lauro 
>
>   Mine don’t appear to have that much difference.  Are any of the servers
>> down, or maybe reaching their session limits?  What’s your retr and redis
>> look like?
>>
>>
>>
>> *From:* Sun Yijiang [mailto:sunyiji...@gmail.com]
>> *Sent:* Tuesday, March 17, 2009 3:18 AM
>> *To:* kuan...@mail.51.com
>> *Cc:* haproxy@formilux.org
>> *Subject:* Re: The gap between ``Total'' and ``LbTot'' in stats page
>>
>>
>>
>> Yeah, that's clear, thanks.  I just wonder why ``LbTot'' is much smaller
>> than ``Total''.
>>
>> 2009/3/17 FinalBSD 
>>
>> check it here: http://haproxy.1wt.eu/download/1.3/doc/configuration.txt
>>
>> 30. lbtot: total number of times a server was selected
>>
>>
>>
>>  On Tue, Mar 17, 2009 at 1:56 PM, Sun Yijiang 
>> wrote:
>>
>> Hi you guys,
>>
>> I noticed that there's a huge gap between ``Total'' and ``LbTot'' numbers
>> in the stats page.  LbTot is only about 25% of Total sessions for backend
>> server.  Is this the normal case?  What do they mean exactly?  I've read the
>> source code for a while but could not find a clear answer.
>>
>> Thanks in advance.
>>
>>
>> Steve
>>
>>
>>
>>
>>
>
>


Re: The gap between ``Total'' and ``LbTot'' in stats page

2009-03-17 Thread Sun Yijiang
Backend servers were down about 2 hours during the 37 hour up time.  Session
limits have been reached for frontend and all backend servers.  Retr 138,
Redis 0 for Backend.

2009/3/17 John Lauro 

>  Mine don’t appear to have that much difference.  Are any of the servers
> down, or maybe reaching their session limits?  What’s your retr and redis
> look like?
>
>
>
> *From:* Sun Yijiang [mailto:sunyiji...@gmail.com]
> *Sent:* Tuesday, March 17, 2009 3:18 AM
> *To:* kuan...@mail.51.com
> *Cc:* haproxy@formilux.org
> *Subject:* Re: The gap between ``Total'' and ``LbTot'' in stats page
>
>
>
> Yeah, that's clear, thanks.  I just wonder why ``LbTot'' is much smaller
> than ``Total''.
>
> 2009/3/17 FinalBSD 
>
> check it here: http://haproxy.1wt.eu/download/1.3/doc/configuration.txt
>
> 30. lbtot: total number of times a server was selected
>
>
>
>  On Tue, Mar 17, 2009 at 1:56 PM, Sun Yijiang 
> wrote:
>
> Hi you guys,
>
> I noticed that there's a huge gap between ``Total'' and ``LbTot'' numbers
> in the stats page.  LbTot is only about 25% of Total sessions for backend
> server.  Is this the normal case?  What do they mean exactly?  I've read the
> source code for a while but could not find a clear answer.
>
> Thanks in advance.
>
>
> Steve
>
>
>
>
>


RE: The gap between ``Total'' and ``LbTot'' in stats page

2009-03-17 Thread John Lauro
Mine don't appear to have that much difference.  Are any of the servers
down, or maybe reaching their session limits?  What's your retr and redis
look like?

 

From: Sun Yijiang [mailto:sunyiji...@gmail.com] 
Sent: Tuesday, March 17, 2009 3:18 AM
To: kuan...@mail.51.com
Cc: haproxy@formilux.org
Subject: Re: The gap between ``Total'' and ``LbTot'' in stats page

 

Yeah, that's clear, thanks.  I just wonder why ``LbTot'' is much smaller
than ``Total''.

2009/3/17 FinalBSD 

check it here: http://haproxy.1wt.eu/download/1.3/doc/configuration.txt

30. lbtot: total number of times a server was selected





On Tue, Mar 17, 2009 at 1:56 PM, Sun Yijiang  wrote:

Hi you guys,

I noticed that there's a huge gap between ``Total'' and ``LbTot'' numbers in
the stats page.  LbTot is only about 25% of Total sessions for backend
server.  Is this the normal case?  What do they mean exactly?  I've read the
source code for a while but could not find a clear answer.

Thanks in advance.


Steve

 

 



Re: The gap between ``Total'' and ``LbTot'' in stats page

2009-03-17 Thread Sun Yijiang
Yeah, that's clear, thanks.  I just wonder why ``LbTot'' is much smaller
than ``Total''.

2009/3/17 FinalBSD 

> check it here: http://haproxy.1wt.eu/download/1.3/doc/configuration.txt
>
> 30. lbtot: total number of times a server was selected
>
>
>
>
> On Tue, Mar 17, 2009 at 1:56 PM, Sun Yijiang  wrote:
>
>> Hi you guys,
>>
>> I noticed that there's a huge gap between ``Total'' and ``LbTot'' numbers
>> in the stats page.  LbTot is only about 25% of Total sessions for backend
>> server.  Is this the normal case?  What do they mean exactly?  I've read the
>> source code for a while but could not find a clear answer.
>>
>> Thanks in advance.
>>
>>
>> Steve
>>
>>
>


Re: The gap between ``Total'' and ``LbTot'' in stats page

2009-03-16 Thread FinalBSD
check it here: http://haproxy.1wt.eu/download/1.3/doc/configuration.txt

30. lbtot: total number of times a server was selected




On Tue, Mar 17, 2009 at 1:56 PM, Sun Yijiang  wrote:

> Hi you guys,
>
> I noticed that there's a huge gap between ``Total'' and ``LbTot'' numbers
> in the stats page.  LbTot is only about 25% of Total sessions for backend
> server.  Is this the normal case?  What do they mean exactly?  I've read the
> source code for a while but could not find a clear answer.
>
> Thanks in advance.
>
>
> Steve
>
>