load balancing via symlink?

I have a very active image hosting server. We recently added another server so we could explore the option of load balancing between the two machines.

In a brief nutshell, it a cpanel box that has one site, and in that site's /home directory, /user directoryies are created by a script for each customer who needs image hosting. The main problem is we are using a lot of memory and other resources, causing loads to be high and the server to sometimes be unreliable.

We were considering a rewrite to the script that just creates the /user accounts on the other server and hosting them over an IP or other domain. My question is it possible to perhaps let one server process the PHP and mysql and the other to handle the Apache and the other "stuff"

Any thought or ideas are appreciated.

load balancing via symlink?

 

 

 

 

Top