mottwsc Posted January 22, 2013 Share Posted January 22, 2013 I'm putting up a beta site on a few VPS servers. Server 1 is for log in. When a user hits Server 1, a need to have a simple program to look at things like the CPU utilization, memory usage, and bandwidth utilization at that point on Server 2 and Server 3 and send the user to either Server 2 or Server 3 depending on which server has lower usage. I will have full root / administrative access to the servers. > Does anyone have simple PHP programs similar to this that I could modify? > Where is the best place for this to sit on Server 1? Thanks for any suggestions! Link to comment https://forums.phpfreaks.com/topic/273492-setting-up-simple-load-balancing/ Share on other sites More sharing options...
.josh Posted January 22, 2013 Share Posted January 22, 2013 load balancing isn't usually done w/ php... Link to comment https://forums.phpfreaks.com/topic/273492-setting-up-simple-load-balancing/#findComment-1407528 Share on other sites More sharing options...
mottwsc Posted January 22, 2013 Author Share Posted January 22, 2013 After some additional research, it looks like it could be done pretty easily in apache using mod_proxy_balancer (https://blogs.oracle.com/oswald/entry/easy_http_load_balancing_with), although this doesn't account for actual load on the servers; it just gives assignments based on counters. Have others used this method with success? Also, I did see some options looking at SourceForge Distributor, balance and pen. Trying to keep the software and implementation costs down as I prove out the concept... Link to comment https://forums.phpfreaks.com/topic/273492-setting-up-simple-load-balancing/#findComment-1407542 Share on other sites More sharing options...
shlumph Posted January 22, 2013 Share Posted January 22, 2013 What OS are your servers? As mentioned, this isn't related to PHP. And load balancing clusters can be very complex. I would suggest looking up high availability / clustering software to install on your servers. Link to comment https://forums.phpfreaks.com/topic/273492-setting-up-simple-load-balancing/#findComment-1407562 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.