httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ali Majdzadeh <ali.majdza...@gmail.com>
Subject Re: [users@httpd] session synchronization (replication) between two httpd servers configured as load balancers
Date Thu, 12 Sep 2013 05:07:17 GMT
Igor,
Hi
Thanks for your reply. Yes, I was talking about the peer option in HAProxy;
but I think that option is appropriate in a situation that the two load
balancers are configured to use the sticky table as the mechanism to
maintain active sessions; is that right? In other words, if the cookie
method is used, there is no need to synchronize the sticky table between
two load balancers; do you agree?
Now, is the same situation valid for Apache? I mean, if we configure two
apache servers using mod_proxy_balancer as load balancers and also
configure the back-end web server to set the cookie, in a case when one of
the load balancers fails, is the session maintained using the other active
balancer?
By the way, suppose that there is only one back-end web server.
Thanks again.

Warm Regards,
Ali Majdzadeh Kohbanani




2013/9/11 Igor Cicimov <icicimov@gmail.com>

> On Wed, Sep 11, 2013 at 2:45 PM, Igor Cicimov <icicimov@gmail.com> wrote:
>
>>
>>  I would like to know, if there exists any solution in order to
>>> synchronize (replicate) sessions between two httpd servers which are
>>> configured as load balancers using mod_proxy_balancer?
>>>
>>
>> Store the session information in a cookie as explained in the
>> mod_proxy_balancer documentation. In that way the client will provide the
>> session info to apache, no matter which one it lands on (assuming both of
>> them are configured identically). This implies usage of sticky sessions. As
>> far as I'm aware this is the way HAProxy does it as well. Can you please
>> elaborate on which HAProxy (different) functionality you are talking about
>> in regards of sticky table synchronization?
>>
>
> Ah, you are talking about peers option in HAP. I'm afraid there isn't
> option like that in apache.
>

Mime
View raw message