LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-13-2012, 08:58 AM   #1
tomatopancake
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
Managing content in a cluster


I'm trying to work out a cluster for personal experimenting. I think I have a pretty good understanding on how to set it up (router servers, nodes, and IP configs), but how would I manage the actual data on the nodes?

So if it's a cluster balancing http service, if I make a change to the site, how can I make the change once and have it propagate to all nodes? I feel like I'm missing some critical element of a load balancing cluster.

Thanks!
 
Old 07-13-2012, 09:17 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
We do the following, we have one web server designated as the "upload" server. Any changes to the website are uploaded to a folder structure on that machine, let's call it /home/upload/html

We then have a sync script we run manually on each of the three main web servers in a specific order, the first sync script is on the "local" machine with the update, this then does a local rsync from /home/upload/html to /var/www/html, then other two machines then do an rsync from the first's /var/www/html

You could always fully automate this process and have the other servers rsync on a timed basis (hourly, 5 minutes, 1 minute, your choice) from the "upload" server.
 
Old 07-13-2012, 09:19 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Indeed, if you were to automate it you could run a single "PUSH" rsync from the upload server to the other servers and have this on a cron job or trigger it manually from a shell.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cman service stucks during booting of cluster node (RedHat Cluster Suite) zama Linux - Software 0 07-09-2012 08:50 AM
LXer: Linux Terminal Server Project Cluster Edition (LTSP-Cluster) LXer Syndicated Linux News 0 02-07-2010 03:50 AM
Apache serving content after the content is removed? jrbush82 Linux - Software 6 05-05-2004 04:39 AM
looking for help (css, html, graphics) ; content managing systems markus1982 General 8 06-24-2003 05:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration