View Full Version : Splitting up visitors between servers
dagaffer
03-07-2003, 08:36 PM
Is there a way that I can make, say, every 2nd visitor to my site go to a different server than the 1st visitor?
Its to cut down the bandwidth of the servers so I don't get cut off as much as i previously had.
Thanx, Gaffer:thumbsup:
Roy Sinclair
03-07-2003, 10:28 PM
Use Google and search for "Clustering".
be aware thou that you'll then need to modify your app's a bit.
espacially when you're working with cookies.
you'll need to make sure that the user stay on the same machine during a session etc.
(i've read somewhere in a debugging book, so if you need some more info, just let us know)
dagaffer
03-08-2003, 07:53 PM
Thanx, will do:thumbsup:
Leeus
03-09-2003, 09:24 PM
Clustering will not work!!! All a cluster will do is provide fault tollerence! You need to get a Load Balancer and 2 servers to do the job, we've used a Cisco Load Director, or the Watchguard VClass. Or you could use a DNS server to do the balancing! Both have their advantages and negatives. With windows servers however, and i'm assuming windows servers due to posting in the ASP forum, is that you will need to upload changes to both servers. You could then have an external SQL server/DB server that they can both share the data from but clustering will not work!!!!
dagaffer
03-09-2003, 09:51 PM
o..k.. maybe I should just stick with the high bandwidth...
Would it be possible to do something like... make a database and every time someone visits the main page the database will be changed to a different option & that person will be sent to one server; then when the next person comes it will change again back to the original (after reading the current option) & he is then sent to the other server.
(You would think that I would be able to explain myself better...)
Thanx, Gaffer:thumbsup:
Leeus
03-10-2003, 07:17 AM
You could but this would be quite slow, a RS would have to be read then the user bounced to different server.
Morgoth
03-10-2003, 08:55 AM
Graffer, a good idea would not be spliting on the server the user goes to, but the files they want to view would be on different servers.
Have a single host for html/ASP/TXT files, and make that your default site. Then when they click on something they want to download, it will link directly to the server that has that file..
When you do this, make sure you split up the pile of most downloaded between the hosts so you don't receive one server being down the most.
Understand?
dagaffer
03-10-2003, 07:50 PM
I had originally thought along that line but for reasons like (lazyness &) not actually knowing what is downloaded the most to split it evenly I had ruled it out, but it seems the best idea right now...:rolleyes:
Thanx!
whammy
03-11-2003, 12:12 AM
A file mirror? I've seen those someplace before. ;)
Morgoth
03-11-2003, 03:45 AM
Originally posted by whammy
A file mirror? I've seen those someplace before. ;)
At all those warez sites you go to whammy... that's where you saw them..
j/k... ;)
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.