This was discussed on the mailing list a while back -- "load balancing"
or something was the subject.

With your current setup, you'll do better to have a third server (or
dual use for one of your current servers), and have it redirect people
round-robin-style to www1.whatever, www2.whatever, etc.  Then users will
always go back to the same computer for their session.  This is what you
want, but round-robin DNS won't ensure they always go back to the same
server.

I don't know if mod_rewrite has a randomizing thing in it -- I'd be
surprised if it didn't -- so you could probably implement this as a
single rewrite rule.

A fairly simple extension to the adapters has been suggested, where an
adapter would do the load balancing for you.  But that's not
implemented.

On Mon, 2002-02-18 at 11:34, 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.
> 
> 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?
> 
> Thanks,
> Jeff
> 
> 
> 
> 
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
> 



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

Reply via email to