Notices
Non Scooby Related Anything Non-Scooby related

For all the gamblers, abusing odds for a computer problem :)

Thread Tools
 
Search this Thread
 
Old 19 November 2004, 11:25 PM
  #1  
Stueyb
Scooby Regular
Thread Starter
 
Stueyb's Avatar
 
Join Date: May 2002
Posts: 1,893
Likes: 0
Received 0 Likes on 0 Posts
Default For all the gamblers, abusing odds for a computer problem :)

Hi peeps,

Just a simple question I think. I have a server that is used for downloading films, at the moment its not in productions officially but its still maxing out at an average of 5 MBit/ S.

It actually works out cheaper to buy a new server and balance the load, but loads balancers are expensive. SO....

I want to use a algorythm to randomly choose the download server. Question is, asuming a total ramdomnes, will the odds end up averaging out around 50pc per server ?
Old 19 November 2004, 11:36 PM
  #2  
milo
Scooby Regular
 
milo's Avatar
 
Join Date: Nov 2001
Posts: 2,043
Likes: 0
Received 0 Likes on 0 Posts
Default

your algorithm will get 50% of requests routed to the right server. so you get 1000 requests, and 500 go to each. but whats to say that the 500 that go to server 1 disconnect after 5 seconds, and the 500 that go to server 2 all stay connected for an hour. request #1001 comes in, and there's a 50% chance it will go to the overused server 2, and a 50% chance it goes to the unused server 1.
Old 20 November 2004, 03:19 AM
  #3  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Default

You could use DNS round robin as a basic form of load balancing. If you need something a bit more complicated you could try Apache and mod_backhand.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Wish
Computer & Technology Related
3
30 September 2015 10:39 PM
Scooby_Lee101
General Technical
3
26 September 2015 12:04 AM



Quick Reply: For all the gamblers, abusing odds for a computer problem :)



All times are GMT +1. The time now is 10:30 AM.