Wikimedia binaries

From Wikitech
Revision as of 10:36, 10 September 2011 by Dzahn (Talk | contribs)

Jump to: navigation, search

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


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

  1. cd /home/wikipedia/bin on fenari
  2. (optionally) run ./sync-apache-simulated which just has an "-n" added to the rsync commands. (--dry-run | show what would have been transferred)
  3. if that looks fine, actually sync: ./sync-apache
  4. connect to a single random "srv" server and restart Apache there to check your change did not break things
  5. if that also looks fine, use apache-graceful-all to restart all Apaches
  6. Orange exclamation mark.svg 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.
  7. Orange exclamation mark.svg After this you might want to purge a URL from Squid cache. Also see Squids.
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox