[Seaside] ProxyPass and the P Option

Boris Popov boris at deepcovelabs.com
Tue Nov 6 15:32:41 UTC 2007


You could add route identifying cookie to each app, say its hostname plus port number although I recall seeing solutions to use mod balancer without modding existing apps with mod_headers, google some.

 
Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: seaside-bounces at lists.squeakfoundation.org <seaside-bounces at lists.squeakfoundation.org>
To: Seaside - general discussion <seaside at lists.squeakfoundation.org>
Sent: Tue Nov 06 06:28:51 2007
Subject: Re: [Seaside] ProxyPass and the P Option

I guess I can do something like this:

<VirtualHost 192.168.1.101:443>
RewriteEngine       on
ProxyRequests       off
ProxyPreserveHost   on
SSLEngine           on
SSLCertificateFile  /etc/apache2/ssl/apache.pem
DocumentRoot        /var/www/ssl
ProxyPass           /seaside/go  balancer://seaside_cluster
stickysession=MYCOOKIE  nofailover=on
ProxyPassReverse    /seaside/go  balancer://seaside_cluster
<Proxy balancer://seaside_cluster>
    BalancerMember  http://localhost:9090/seaside/go  route=A_
    BalancerMember  http://localhost:9091/seaside/go  route=B_
    BalancerMember  http://localhost:9092/seaside/go  route=C_
</Proxy>
RewriteRule  ^/$  balancer://seaside_cluster [P,L]
</VirtualHost>


Apparently, the format of the cookie name is something like
'somename.someroute'. I think in the above example, somename would be
MYCOOKIE and someroute would be A_ or B_ or C_. Am I understanding
correctly?

But do I need to setup cookies in Seaside? If so, do I need to setup the
cookie name format, as well? If so, how?

Thanks,
Richard

--------
How do you ensure session affinity?

It looks like you are using a round-robin strategy. I guess this is
what Apache does by default. You have to ensure that only the first
request goes to a random image, subsequent requests should go to the
same image.

Lukas


_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20071106/4b630789/attachment-0001.htm


More information about the seaside mailing list