You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ali Majdzadeh <al...@gmail.com> on 2013/09/10 21:11:43 UTC

[users@httpd] session synchronization (replication) between two httpd servers configured as load balancers

Hello List;
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? Considering HAProxy, the same
functionality exists; it is possible to synchronize the stick table between
HAProxy instances. Does mod_proxy_balancer use stick table? Is it possible
to synchronize the stick table between two mod_proxy_balancer instances?
Thanks a lot.

Warm Regards,
Ali Majdzadeh Kohbanani

Re: [users@httpd] Handling of picture sizing / clipping

Posted by Hendrik Schmieder <he...@jedox.com>.
georg chambert schrieb:
> I have made a page where i have several frames with pictures displayed
> in each
> (the src= directive in the FRAME element used to point to .jpg file )
> however I have a problem, the pictures get truncated/clipped on some
> browsers/machines out there,
> I think I have concluded on the cause; my computer screen is set to a
> higher resolution in terms of pix width and hight,
> och my development machine, while the browers that clipp probably run on
> a lower setting for the screen (?)
> so what would be the rational to handle this, can PHP/HTTP or someone
> give me informatation on the pix settings
> on a requsting computer ? or some other good thing to do
> regards
> georg

I know that you can get this information via Javascript, but I doubt 
that any browser send this information to the server.

   Hendrik

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


Re: [users@httpd] Handling of picture sizing / clipping

Posted by Stefan Pielmeier <st...@symlinux.com>.
Hi Georg,

It sounds like the frame size is too small for your picture in some cases.

Maybe you can check if the frame size is in pixels and the picture is in pixels as well. If one of them is just relative in % or something like that, you could end up with a picture too large for the frame.

This you can do by reviewing the HTML code of the page you send to the client.

If that doesn't help, I would try to reproduce the problem in lab conditions. then check if the transfer of the pictures is completed by
-  checking the apache log
- using wireshark

Hope it helps,
Stefan.

Stefan Pielmeier
from mobile device


On 16 Sep 2013, at 13:06, "georg chambert" <ge...@telia.com> wrote:

> I have made a page where i have several frames with pictures displayed in each
>  
> (the src=  directive in the FRAME element used to point to .jpg file )
>  
>  
> however I have a problem, the pictures get  truncated/clipped on some browsers/machines out there,
>  
> I think I have concluded on the cause; my computer screen is set to a higher resolution in terms of pix width and hight,
> och my development machine, while the browers that clipp probably run on a lower setting for the screen (?)
>  
> so what would be the rational to handle this, can PHP/HTTP or someone give me informatation on the pix settings
> on a requsting computer ?  or some other good thing to do
>  
> regards
> georg
>  

[users@httpd] Handling of picture sizing / clipping

Posted by georg chambert <ge...@telia.com>.
I have made a page where i have several frames with pictures displayed in each 

(the src=  directive in the FRAME element used to point to .jpg file )


however I have a problem, the pictures get truncated/clipped on some browsers/machines out there,

I think I have concluded on the cause; my computer screen is set to a higher resolution in terms of pix width and hight,
och my development machine, while the browers that clipp probably run on a lower setting for the screen (?)

so what would be the rational to handle this, can PHP/HTTP or someone give me informatation on the pix settings
on a requsting computer ?  or some other good thing to do

regards 
georg

Re: [users@httpd] session synchronization (replication) between two httpd servers configured as load balancers

Posted by Ali Majdzadeh <al...@gmail.com>.
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 <ic...@gmail.com>

> On Wed, Sep 11, 2013 at 2:45 PM, Igor Cicimov <ic...@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.
>

Re: [users@httpd] session synchronization (replication) between two httpd servers configured as load balancers

Posted by Igor Cicimov <ic...@gmail.com>.
On Wed, Sep 11, 2013 at 2:45 PM, Igor Cicimov <ic...@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.

Re: [users@httpd] session synchronization (replication) between two httpd servers configured as load balancers

Posted by Igor Cicimov <ic...@gmail.com>.
> 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?