Good morning people. This is my first post here. We set up a load balance environment for running php application. It use lvs as the load balancer (two machines) and a
set of machines for the apache/phps. We have a single database server (with one offline with drdb and heartbeat). We need to have the same code on all the servers. The direct rsync solution with a cron job looks promising, but way to heavy if we want the servers to be up to date (no more than one minute delay). I will really like to have a better tool for this work.
If any other way fails, a script will probably do it.
Please help. English is not my first language by the.
.
multiple servers one source code
Moderator: General Moderators
-
james.duncan.linch
- Forum Newbie
- Posts: 1
- Joined: Fri Feb 29, 2008 8:56 am
Re: multiple servers one source code
How often in the code changed? How are you currently managing your code? (svn,cvs etc)
You can simply make an update script that pulls the code from a different location on to both servers. So when you make an alteration, you change it in the one location. Which you would then run the update script to update both servers.
You can simply make an update script that pulls the code from a different location on to both servers. So when you make an alteration, you change it in the one location. Which you would then run the update script to update both servers.
Re: multiple servers one source code
Is your application doing something with files too (attachments, pictures)? You've mentioned you are going to use only one DB server which is ok. So I'm wondering if you want to synch only PHP source code ... which previous post explains ... or some other files as well? If you have attachment files then rsync would work but you will have some delays with that solution ...