[MediaWiki-l] synchronizing two MW servers
lsilverman at trackabout.com
Fri Oct 31 17:18:47 UTC 2014
I've seen Unison <http://www.cis.upenn.edu/~bcpierce/unison/> mentioned
frequently in the same breath as rsync. I'm much more familiar with rsync
Check me on this, but I think rsync is a one-way sync tool. Seems to me
that's not going to work out to keep multiple wiki nodes in sync unless
only one is writable and the rest are just read-only mirrors. Unison is, I
believe, bi-directional. This is going to matter to you if each wiki node
has the ability to save uploaded files.
Bi-directional syncing has its issues when merge conflicts arise. Someone
uploads a file by the exact same name to two different nodes at exactly the
same time. Unlikely? Yes. But if it happens, Unison's going to create some
kind of merge conflict.
Chief Technology Officer
On Fri, Oct 31, 2014 at 9:45 AM, Bill Traynor <btraynor at gmail.com> wrote:
> Forget the SAN question, apparently that's not shareable either. So I
> think I'm stuck with implementing an rsync script to keep my app
> servers synced.
> On Fri, Oct 31, 2014 at 10:43 AM, Bill Traynor <btraynor at gmail.com> wrote:
> > I've been told that NFS is NOT allowed in the environment where I'm
> > configuring my wiki. Can the /images directory reside on shared SAN
> > mount? Or, am I better off just writing an rsync script to keep the
> > application servers synced?
> > Thanks
> > Bill
> > On Thu, Oct 23, 2014 at 2:21 PM, Dave Humphrey <dave at uesp.net> wrote:
> >> We (www.uesp.net) have a similar MediaWiki setup and here is roughly
> how we
> >> have set it up (whether it is a "good" design is another question):
> >> - Multiple content servers running Apache with identical copies of
> >> MediaWiki PHP files
> >> - Squid load balancer in front of the content servers
> >> - All content servers use the same memcached server for cache
> >> - PHP sessions shared via NFS
> >> - Images shared via NFS (./images/ linked to NFS shared directory )
> >> - Local file cache turned off
> >> The files shared via NFS are on a different server. This has worked well
> >> for us and there is only very rarely an issue with the cached content of
> >> certain pages (usually cleared up with a purge for that page).
> >> On 23 October 2014 12:09, Bill Traynor <btraynor at gmail.com> wrote:
> >>> I have 2 application servers behind a load-balancer that both point to
> >>> a 3rd server where the database lives. I'm curious if there are any
> >>> best practices around keeping the two MediaWiki servers synchronized?
> >>> I found Extension:WikiSync
> >>> (http://www.mediawiki.org/wiki/Extension:WikiSync) but it doesn't look
> >>> like it's still developed.
> >>> I assume Wikimedia does this now, anyone know how?
> >>> Thanks
> >>> Bill
> >>> _______________________________________________
> >>> MediaWiki-l mailing list
> >>> To unsubscribe, go to:
> >>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >> --
> >> Dave Humphrey -- dave at uesp.net
> >> Founder/Server Admin of the Unofficial Elder Scrolls Pages --
> >> www.viud.net - Building the world's toughest USB drive
> >> _______________________________________________
> >> MediaWiki-l mailing list
> >> To unsubscribe, go to:
> >> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> MediaWiki-l mailing list
> To unsubscribe, go to:
More information about the MediaWiki-l