Click to See Complete Forum and Search --> : load balancing


jasongonella
10-14-2002, 11:35 AM
The horrible world of apache modules:

When a request hits 'server a', if I want to redirect half of the users to another server while keeping the url the same in the browser, I think I'd use mod_rewrite.
i.e. I want one website to be using 2 or more servers.

Am I barking up the right tree? More specifically, do you know what apache directives are needed for this? I've read copious amounts of apache documentation, but there's so much there, and it's not easy. If I can tip-toe around the modules and achieve the desired goal, then this would be great.

Many thanks if you can assist.

Regards,

Jason

dotwebbie
10-14-2002, 12:03 PM
I know of a couple of php scripts if you want to go that way instead . . . If not, give me a little time and I'll do some exploring.

jasongonella
10-14-2002, 12:06 PM
php script approach will be far slower, as apache will have to access the relevant directory and then redir to another dir on another server.

This problem should be solved from the apache level I think.

dotwebbie
10-14-2002, 12:16 PM
Okay. Let me do some exploring then and I'll let you know asap.