[Lift] Re: apache proxy_balancer

2009-09-17 Thread David Pollak
Jon,

We can do some URL rewriting or cookie rewriting to help with session
affinity if Nginx has a plugin that does simpler logic.

Thanks,

David

On Wed, Sep 16, 2009 at 11:53 PM, jon  wrote:

>
> I was able to get things working and am now fairly confident that I
> have enough power on my front end to completely melt my database.   I
> think the real benefits will be failover and the ability to stage
> releases.
>
> Btw, as far as I can tell, apache proxy_balancer is the only open
> source choice for load balancing with sticky sessions. Is anyone aware
> of other options?  I would much rather be using nginx.  I'm aware that
> there's a third party module for session stickyness, but not sure if
> it's at a usable stage: http://code.google.com/p/nginx-upstream-jvm-route/
>
> I'm actually not sure what the problem was with the config below,
> though the duplicate "ProxyPass / balancer://cluster/" was probably
> not helping
>
> - Jon
>
> On Sep 16, 7:05 pm, jon  wrote:
> > Hi,
> >
> > Is anyone running lift behind apache with proxy_balancer?  I'm trying
> > to get that setup, but seeing a really odd problem where the
> > javascript on the page seems to cause continuous reloading on some
> > pages.  I haven't yet fully investigated the problem, but am wondering
> > if anyone has some pointers for getting that setup correctly.
> >
> > Here's what I'm doing:
> >
> > In my apache config:
> >
> > ProxyPass /balancer !
> > ProxyPass / balancer://cluster/ stickysession=jsessionid|JSESSIONID
> > nofailover=On
> >
> > 
> > BalancerMemberhttp://serveroneloadfactor=50 route=n2
> > BalancerMemberhttp://servertwoloadfactor=50 route=n1
> > 
> > ProxyRequests Off
> >
> > 
> > Order deny,allow
> > Allow from all
> > 
> > ProxyPreserveHost On
> > ProxyPass / balancer://cluster/
> >
> > And in each of my jetty.xml files, something like this:
> >
> > 
> >  
> > n2
> >  
> > 
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: apache proxy_balancer

2009-09-16 Thread jon

I was able to get things working and am now fairly confident that I
have enough power on my front end to completely melt my database.   I
think the real benefits will be failover and the ability to stage
releases.

Btw, as far as I can tell, apache proxy_balancer is the only open
source choice for load balancing with sticky sessions. Is anyone aware
of other options?  I would much rather be using nginx.  I'm aware that
there's a third party module for session stickyness, but not sure if
it's at a usable stage: http://code.google.com/p/nginx-upstream-jvm-route/

I'm actually not sure what the problem was with the config below,
though the duplicate "ProxyPass / balancer://cluster/" was probably
not helping

- Jon

On Sep 16, 7:05 pm, jon  wrote:
> Hi,
>
> Is anyone running lift behind apache with proxy_balancer?  I'm trying
> to get that setup, but seeing a really odd problem where the
> javascript on the page seems to cause continuous reloading on some
> pages.  I haven't yet fully investigated the problem, but am wondering
> if anyone has some pointers for getting that setup correctly.
>
> Here's what I'm doing:
>
> In my apache config:
>
> ProxyPass /balancer !
> ProxyPass / balancer://cluster/ stickysession=jsessionid|JSESSIONID
> nofailover=On
>
> 
>     BalancerMemberhttp://serveroneloadfactor=50 route=n2
>     BalancerMemberhttp://servertwoloadfactor=50 route=n1
> 
> ProxyRequests Off
>
> 
>         Order deny,allow
>         Allow from all
> 
> ProxyPreserveHost On
> ProxyPass / balancer://cluster/
>
> And in each of my jetty.xml files, something like this:
>
> 
>      
>         n2
>      
> 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---