PHP Newby
Load Balance by alternating links?
Moderator: General Moderators
-
mccommunity
- Forum Commoner
- Posts: 62
- Joined: Mon Oct 07, 2002 8:55 am
Load Balance by alternating links?
I would like to rotate through links 1-4 when someone hits the page to load balance. For example the first person to hit the page would go to link1 the second person would have link2 showing and could click it to go to link2 the third person would have link3 showing and would click it to enter link 3 and so on. Any ideas? Thanks a lot of any input.
PHP Newby
PHP Newby
If you code makes use of sessions, you will have to have a central place to store the session data or sessions will be lost at the user travels from one server to the next. However if you still want to setup something like that, look into round-robin DNS. That way you don't need to handle the load balancing in your code.