On Monday 18 February 2002 09:34 am, Jeff Johnson wrote:
> Most of our websites use sessions to store a variable like
> loggedInUserID to track who is logged in.  To handle the load from
> advertising campaigns, I've setup two computers with Apache and
> Webkit running on each.  I then use round robin DNS so hopefully an
> individual user will go to the same web server and get the same
> session and remain logged on.  This works pretty well but we get
> several complaints a day from people that can't stay logged on which
> I assume means they are going to the other web server and getting a
> different session.
>
> I'm thinking maybe I should stop using sessions and just store some
> form of the UserID in a cookie which should work no matter which
> server they go to for each request.

I had heard at one point that there are load balancers that can keep 
redirecting to the same machine based on a cookie (eg, _SID_). But 
you'd have to investigate and you'd have to purchase one.

On a whim, I searched Google for:
        load balancer cookie session same machine

And came up with this real quick:
        http://support.zeus.com/doc/zlb/changes.html
----------------------------------------------------------------
* Added cookie session persistence. The Load Balancer can now be 
configured to recognise a set cookie as 'sticky', so that further web 
page requests from a client with an identical cookie value are sent to 
the same back-end. This can simplify balancing web applications that 
are not cluster-aware.
----------------------------------------------------------------

That's exactly what you need. And I'm sure there are other products as 
well. Check 'em out and let us know if you end up using one.


> It would really be nice if I could run Apache on one machine, and run
> Webkit on the other but I don't think it would improve performance
> much and maybe even make it worse since Apache would have to talk to
> WebKit across the LAN.
>
> Does anyone have any advice?  Does splitting the web server and
> application server onto two machines have much impact?

I doubt that it helps, but the ultimate answer would be to test it and 
find out.

Heh. That was useful.  :-)


Assuming you can make the purchase, I think your shortest path to 
happiness is to purchase a bona fide load balancer with the 
aforementioned feature.

Glad to hear you are getting that much traffic!


-Chuck

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to