[wp-hackers] Load Balancing | Media Uploads to Multiple Servers
Tim Schoffelman
tim at silentgap.com
Wed Jul 29 15:33:34 UTC 2009
Actually, I think (and I'm not the sysadmin but the developer) our rsync set
up functions differently than what was communicated earlier (previous
intention was to paint a picture of the benifits of rsync, but since it
seems we all know that now, I can probably explain further). The description
below "should" help paint a clear (or atleast better) picture.
Right now we have a 2-Way sync set up.
1) Common Sync dir (On Disk Copy)
/....../sync-uploads/$siteName/PATH
on our Admin box a symbolic link will be created from the "upload dir" to
the sync-uploads dir. All uploaded content will live in sync-uploads and
will sync (single RSYNC) to the NFS mount.
Example
/....../sitename/wp-content/uploads
becomes a symbolic link
ln -s /....../sync-uploads/sitename/wp-content/uploads/ uploads
2) NFS Mount - /../sitesync
/../sitesync and /....../sync-uploads are a mirror of each other the NFS
mount allows all files to be pulled and pushed across multiple nodes. The
Actual content is served off the local sync-uploads copy.
Hope this helps stir on some ideas.
~tim
On Wed, Jul 29, 2009 at 9:58 AM, Steve Pellham <spellham at gmail.com> wrote:
> Simon, is the sync real-time as content is uploaded or nightly (or other
> frequency) as suggested by Tim?
>
> Tim - if you only update nightly... are your servers used for backup only
> or
> real-time load balancing? Again, the concern is viewing a post on a server
> where an image is not available.
>
> On Wed, Jul 29, 2009 at 9:02 AM, Simon Wheatley
> <simon at sweetinteraction.com>wrote:
>
> > The load balanced solution I'm deploying to as I type has file syncing
> > in the OS File System. Perhaps worth looking at as well as a WP
> > solution?
> >
> > S
> >
> >
> > On Wed, Jul 29, 2009 at 3:00 PM, Steve Pellham<spellham at gmail.com>
> wrote:
> > > Is anyone aware of an existing plugin for the post editor pages and/or
> > media
> > > gallery that would push uploaded media (images, video, etc....) to
> > multiple
> > > servers in cases where a WP installation is load balanced?
> > >
> > > DB changes are handled via local and wan replication, but I'm looking
> for
> > a
> > > solution for keeping other media in sync as new images/videos are added
> > to
> > > the gallery, inside posts, etc... I can think of ways to accomplish
> this
> > > (ftp, rsync...), but I haven't yet found an existing plugin for this.
> > Don't
> > > want to reinvent the wheel unless absolutely necessary.
> > >
> > > Thanks, Steve
> > > _______________________________________________
> > > wp-hackers mailing list
> > > wp-hackers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> >
> >
> >
> > --
> > Simon Wheatley
> > Sweet Interaction Ltd
> > Web Interaction Design & Development
> > Tel: 07971 687295
> >
> > Consulting for Stephen Fry: http://stephenfry.com/
> > Blog functionality for DfID - http://blogs.dfid.gov.uk/
> > House of Illustration site - http://houseofillustration.org.uk/
> > Blog for the Royal Navy - http://jackspeak.royalnavy.mod.uk/
> >
> > ---
> > Sweet Interaction Ltd is Registered in England/Wales, no. 6610741
> > Registered office: 7 Malton Av, Manchester, M21 8AT
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list