multiple servers one source code

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
james.duncan.linch
Forum Newbie
Posts: 1
Joined: Fri Feb 29, 2008 8:56 am

multiple servers one source code

Post by james.duncan.linch »

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.

.
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: multiple servers one source code

Post by Zoxive »

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.
help-php
Forum Newbie
Posts: 3
Joined: Tue Mar 25, 2008 4:01 pm

Re: multiple servers one source code

Post by help-php »

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