The Little Guy Posted November 9, 2008 Share Posted November 9, 2008 Is it possible to have a file overload, where a file is accessed so many times during a small period of time where the file gets overloaded, similar to the way a server gets overloaded? On that note, if I make say 4 different "home.php" pages (home1.php, home2.php, home3.php, home4.php), could I direct the traffic to one of the four pages to lighten the load, or would that be next to pointless? Link to comment https://forums.phpfreaks.com/topic/131980-load-balancing/ Share on other sites More sharing options...
corbin Posted November 9, 2008 Share Posted November 9, 2008 It would be pointless if you had 1 page redirecting it. What exactly is the problem with the file? Link to comment https://forums.phpfreaks.com/topic/131980-load-balancing/#findComment-685827 Share on other sites More sharing options...
Mchl Posted November 9, 2008 Share Posted November 9, 2008 If the file was accessed so often, server's OS would probably load it into some cache memory. Link to comment https://forums.phpfreaks.com/topic/131980-load-balancing/#findComment-685874 Share on other sites More sharing options...
Daniel0 Posted November 9, 2008 Share Posted November 9, 2008 What would the point be? The server load would be the same regardless because it's still the same server that has to handle the request whether it's file 1, 2, 3, or 4 that's being served. Link to comment https://forums.phpfreaks.com/topic/131980-load-balancing/#findComment-685899 Share on other sites More sharing options...
The Little Guy Posted November 9, 2008 Author Share Posted November 9, 2008 The server load would be the same regardless So, why does php.net do it? sometimes it's: us1.php.net, or us2.php.net, or us3.php.net Link to comment https://forums.phpfreaks.com/topic/131980-load-balancing/#findComment-686281 Share on other sites More sharing options...
trq Posted November 9, 2008 Share Posted November 9, 2008 Um.. they are different servers (mirrors). Link to comment https://forums.phpfreaks.com/topic/131980-load-balancing/#findComment-686293 Share on other sites More sharing options...
corbin Posted November 9, 2008 Share Posted November 9, 2008 A subdomain and a page are 2 waaaaayyyyyyyyyyyyyyy different things. Link to comment https://forums.phpfreaks.com/topic/131980-load-balancing/#findComment-686319 Share on other sites More sharing options...
awpti Posted November 11, 2008 Share Posted November 11, 2008 PHP.net does it via round-robin based upon your 'guessed' geolocation. Most hosts (ex, digg.com, cnn.com) utilize load-balancing. One head server redirects traffic via a piece of hardware or software to numerous other servers to handle the load. The load-balancer handles the incoming and outgoing flow of traffic, from what I recall. Just having multiple files on a single server is pointless and does nothing - server load is affected by the number of processes running and how demanding they are on the server. 200 apache processes is still 200 apache processes. Link to comment https://forums.phpfreaks.com/topic/131980-load-balancing/#findComment-687492 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.