Wikimedia binaries
From Wikitech
See Heterogeneous deployment for now
Contents |
Operating on current server
- sync-common
- syncs /home/wikipedia/common -> /apache/common on this server
Operating on mediawiki-installation boxes via dsh
These scripts all sync to: apaches, image scalers, and misc other hosts running apache (search servers, live html snapshot browsers, the secure server, etc)
- sync-common-all
- syncs /home/wikipedia/common -> /apache/common
- sync-common-file
- syncs a given file from /home/wikipedia/common -> /apache/common
- sync-dblist
- syncs *.dblist from /home/wikipedia/common -> /apache/common
- sync-docroot
- syncs /home/wikipedia/common/docroot -> /apache/common/docroot
- sync-file
- Checks PHP syntax and syncs a given file from /home/wikipedia/common/wmf-deployment -> /apache/common/wmf-deployment
- scap
- Checks PHP syntax, rebuilds localization caches and texvc, and syncs /home/wikipedia/common/wmf-deployment -> /apache/common/wmf-deployment
Operating on apaches and image_scalers dsh groups
- sync-apache
- Syncs /home/wikipedia/conf/httpd to /apache/conf
- note these files are not in /home/wikipedia/common and are *not* copied by sync-common family
- Syncs /home/wikipedia/conf/httpd to /apache/conf
Mysterious or obsolete things?
- scap14, scap14-1, scap14-2
- obsolete from MediaWiki 1.4 days
- scap15, scap15-1, scap15-1skins
- 'scap15' is actual script for 'scap' currently; probably could use cleanup
- sync-file13, sync-file14
- sync-file-log14 ?
- sync-to-seoul
- sync-common-allphp
- sync-common-clean
- sync-common-it
- sync-common-php
- sync-common-php-x
No idea what these are
- sync-mirror-dag.sh
- sync-mirror-fedora.sh
- sync-users-and-groups.sh
- syncout
- sync-cgibin
Example apache sync
- cd
/home/wikipedia/binon fenari - (optionally) run
./sync-apache-simulatedwhich just has an "-n" added to the rsync commands. (--dry-run | show what would have been transferred) - if that looks fine, actually sync:
./sync-apache - connect to a single random "srv" server, confirm the expected change has arrived here, and restart Apache to check your change did not break things.
- if that also looks fine, use
apache-graceful-allto restart all Apaches
This is an example from a case that just added 2 redirects, so depooling/ repooling was not necessary but it might be in other cases. Make sure first and please add a link here that describes depooling / repooling.
After this you might want to purge a URL from Squid cache. Also see Squids.