[Cialug] instant replication with rsync

Jeffrey Ollie jeff at ocjtech.us
Tue Jan 13 11:46:40 CST 2009


On Tue, Jan 13, 2009 at 11:37 AM, Matthew Nuzum <newz at bearfruit.org> wrote:
> Is there a way to use rsync (or a similar tool) to get near instant replication?
>
> Scenario, you have a website that allows users to upload images. Files
> are uploaded several times per day at unpredictable intervals. You
> want the images to appear instantly regardless of which webserver they
> were uploaded on.
>
> Setting rsync to run at 1min intervals would not do this because if
> you upload an image you want to see it right away. Also, on a busy day
> there may be 10 - 20 images uploaded. If you have multiple servers
> running rsync at one min intervals it would be a bit wasteful.

I would either push the images from the upload server to the rest or I
would trigger a pull using some lightweight mechanism like an xml-rpc
call or something like that.

-- 
Jeff Ollie

"You know, I used to think it was awful that life was so unfair. Then
I thought, wouldn't it be much worse if life were fair, and all the
terrible things that happen to us come because we actually deserve
them? So, now I take great comfort in the general hostility and
unfairness of the universe."

	-- Marcus to Franklin in Babylon 5: "A Late Delivery from Avalon"


More information about the Cialug mailing list