Linode Forum Index Linode Forum
Linode Community Forums
 


Question about maintaining files on distributed nodes

Click here to go to the original topic

 
       Linode Forum Index -> Linux Networking
Author Message
shadyhill



Joined: 20 Mar 2010
Posts: 6

Posted: Mon Sep 05, 2011 8:27 pm    Post subject: Question about maintaining files on distributed nodes  

One of my client's is paranoid about the traffic they might get on their site. While I run a dozen or so clients on a single 512 linode, they have requested that I setup a new system just for them that includes a node-balancer with two 512 linodes behind it sharing the bandwidth.

I have set up this configuration, and to get started I cloned one 512 to another. But as updates happen over the course of time – to the file system and the database – how do I make sure that each linode gets updated? Is it possible to push updates to the first one and have that automagically pushed to the second?

I'd appreciate any advice on maintaining file systems for distributed nodes.

By the way, I have a dev, stage, live environment established, I'm just concerned about the live site being propagated in multiple places.

I'm running a LAMP (PHP-MySQL) stack on Debian 6.

Thanks.
Back to top  
obs



Joined: 07 Mar 2010
Posts: 1403
Location: Earth

Posted: Mon Sep 05, 2011 9:10 pm    Post subject:  

Use rsync to update your files from one server to another, you could set up a cron or if you use git/svn you could set up a hook.
Back to top  
Vance



Joined: 18 Jan 2009
Posts: 354

Posted: Tue Sep 06, 2011 5:11 am    Post subject:  

You could also use inotifywait or a similar tool to watch for changes and trigger rsync.
Back to top  
Bartzy



Joined: 06 Sep 2011
Posts: 8

Posted: Tue Sep 06, 2011 5:45 am    Post subject:  

You can use csync2: http://oss.linbit.com/csync2/

It was created just for that use :)
You can also use some kind of VCS and deploy the files from it.
Back to top  
 
       Linode Forum Index -> Linux Networking
Page 1 of 1