Jump to content

Setting up simple load balancing


mottwsc

Recommended Posts

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

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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.