homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

Need help with a rsync script

5+ Year Member

Msg#: 3177843 posted 7:27 pm on Dec 4, 2006 (gmt 0)

Here's my problem... I have a site on a load balanced system that splits requests to the site half and half to server 1 and server 2. My problem is that I have a client who edits a page (/sell/index.html) with a wysiwyg editor that. The problem is the client could either be editing the file on server 1 or server 2. So when viewer looked at the file the client modified, there would be a 50% chance they would be looking at an out of date file.

What I was thinking was that I would setup an rsync job in my cron files, to sync updates for this file between servers, so I wouldn't have this problem. Does anybody know if this would work, and if so, how I could implement this?



WebmasterWorld Senior Member 10+ Year Member

Msg#: 3177843 posted 5:56 am on Dec 21, 2006 (gmt 0)

This isn't straightforward as you don't know which server you should be rsyncing from and which to! But there may not even be a right answer... What happens if your user does one edit on server1 and then logs on an hour later and does another edit on server2?

You really need to find a better system. Either the two servers should share common storage, or you need a staging server of some kind. Having changes loaded to a random server in a load balancing set is just asking for trouble.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved