I have a large dynamic forum, and trying to use load balancing to split load on to more than just one server. Dedicated web server for apache+ dedicated database server for mysql does not work well. The apache server always has load as high as 100, and mysql load is always below 1 :confused:
So, I am trying to do load balancing apache on both server, and mysql on one of them. But the problem came as how do I synchronize the uploaded or dynamically generated html pages? I am trying to use rsync, but might need it as often as every minute, and bidirection.
It seems to adds lots of load to server to use rsync to synchronize contents from both ends at 1 minute frequency, as the directory that rsync needs to scan are quite large.
Anybody has any better idea?
Or can I at least let two server run rsync at different time? Using syntax like the following
*/2 * * * * root rsync ....
Seems to cause both server always tries to run at the same time.
Any advice appreciated,
Thanks,