You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Lenin <le...@gmail.com> on 2012/09/24 11:15:25 UTC

[users@httpd] How does mod_proxy_balancer know a session is still alive ?

Hi,

I set up a load balancing environment with mod_proxy_balancer, and use
'stickysession' to achieve session stickyness.

I know this module uses a cookie to keep sessions. The question is, how
does it know if a session is still alive ? For example, if there are two
servers behind the balancer, 100 sessions for each of them. If the 100
sessions of the first server have already been closed, will apache still
assume the first server is busy and throw new sessions to the other one ?

Thanks.

Re: [users@httpd] How does mod_proxy_balancer know a session is still alive ?

Posted by Lenin <le...@gmail.com>.
Thanks Eric, I got it.

2012/9/24 Eric Covener <co...@gmail.com>

> On Mon, Sep 24, 2012 at 5:15 AM, Lenin <le...@gmail.com> wrote:
> > Hi,
> >
> > I set up a load balancing environment with mod_proxy_balancer, and use
> > 'stickysession' to achieve session stickyness.
> >
> > I know this module uses a cookie to keep sessions. The question is, how
> does
> > it know if a session is still alive ? For example, if there are two
> servers
> > behind the balancer, 100 sessions for each of them. If the 100 sessions
> of
> > the first server have already been closed, will apache still assume the
> > first server is busy and throw new sessions to the other one ?
>
> mod_proxy_balancer doesn't keep track of how many sessions (in session
> cookie terms) are established.
>
> """
> At present, there are 3 load balancer scheduler algorithms available
> for use: Request Counting, Weighted Traffic Counting and Pending
> Request Counting. These are controlled via the lbmethod value of the
> Balancer definition. See the ProxyPass directive for more information.
> """
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
初从文,三年不第。遂习武,校场发一矢,中鼓吏,逐之出。后学医,有所成,自撰一良方,服之,卒。

Re: [users@httpd] How does mod_proxy_balancer know a session is still alive ?

Posted by Eric Covener <co...@gmail.com>.
On Mon, Sep 24, 2012 at 5:15 AM, Lenin <le...@gmail.com> wrote:
> Hi,
>
> I set up a load balancing environment with mod_proxy_balancer, and use
> 'stickysession' to achieve session stickyness.
>
> I know this module uses a cookie to keep sessions. The question is, how does
> it know if a session is still alive ? For example, if there are two servers
> behind the balancer, 100 sessions for each of them. If the 100 sessions of
> the first server have already been closed, will apache still assume the
> first server is busy and throw new sessions to the other one ?

mod_proxy_balancer doesn't keep track of how many sessions (in session
cookie terms) are established.

"""
At present, there are 3 load balancer scheduler algorithms available
for use: Request Counting, Weighted Traffic Counting and Pending
Request Counting. These are controlled via the lbmethod value of the
Balancer definition. See the ProxyPass directive for more information.
"""

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org