From Wikitech
Jump to navigation Jump to search

wikitech-static is an offsite, read-only backup of (Wikitech). It is maintained in order to provide emergency documentation in case of a site-wide outage affecting Wikimedia's production network.

If the primary datacenter (and, hence, Wikitech) is down and you need to search for a troubleshooting guide or look at a wiring diagram, will be there for you.

What content is on wikitech-static?

Wikitech-static gets a full dump of Wikitech once every day at around noon UTC.  It also attempts to sync image files but there is no guarantee that we're getting full-res versions of those images that are pulled in from commons.  When in doubt you should directly verify that the versions of critical diagrams have enough detail on wikitech-static. This dump includes the SAL, so the log will generally be up to date but (naturally) drifts a bit during the day.

Where is it?

Wikitech-static is hosted on a Rackspace Cloud instance.  It is physically located in Rackspace's Virginia datacenter, 'IAD,' which is in Northern Virgina.  That means we're not currently meteor-strike proof (given Eqiad as our primary dc), and we are investigating moving it to a different city (T164271).

What is wikitech-static running?

It's a basic Deban Jessie box running Apache and a stripped-down MediaWiki install from Git.  It is unaffected by Scap so it should live through any disastrous production deployments. MediaWiki updates are performed manually.

How do we maintain it?

Automatic content syncronization

A puppetized cron on wikitech runs /usr/local/sbin/ and /usr/local/sbin/ which back up the wiki to /a/backup/ and /a/backup/public.

A non-puppetized cron on wikitech-static runs /wikitech-static/wikitechsync/ which copies the files from wikitech and installs them.

Manual updates

The host can be accessed via ssh with a root login. The password is in the pwstore in the 'wikitech-static' file.

When updating the MediaWiki deploy on the host, update debs and then upgrade the git repos in /srv/mediawiki/w.

$ ssh
$ apt-get update && apt-get upgrade
$ cd /srv/mediawiki/w
$ git fetch origin
$ git branch -a
  # Look for the latest REL branch
$ git checkout -b <local branch> <upstream branch>
$ git submodule update --init --recursive
$ ./composer.phar update
$ php maintenance/update.php
$ service apache2 graceful

VM control

To access the rackspace admin panel that controls the wikitech-static host, visit and select Cloud Control Panel. The username and login are available in the Ops password repo in the file named 'rackspace'.

What alerts should we watch out for?

Wikitech-static will alert if the site goes offline, or if the MediaWiki version falls behind the official stable release as reported by  Labweb1001 and 1002 will alert if the Special:RecentChanges page on wikitech-static falls more than a couple of days behind the Special:RecentChanges page on wikitech.


External link