mw-experimental
Appearance
mw-experimental is a MediaWiki On Kubernetes deployment in WikiKube, for ad-hoc testing via WikimediaDebug.
Design
Each data center runs one mw-experimental pod from a dedicated wikikube-worker node, reachable to you by SSH.
These mw-experimental pods run the same mediawiki-multiversion-debug docker images as mwdebug pods, but with MediaWiki code mounted from the host's /srv/mediawiki directory, rather than the code found in the container. This allows you to edit the files for ad-hoc testing.
This service replaces mwdebug (more info on task T276994)
Using the service
- SSH to the Deployment server and restart the
mw-experimentalpod in Kubernetes for your chosen data center. This applies the latest docker images, matching the rest of production mw-on-k8s. Scap skips restarting of mw-experimental pods during deployments. While code under/srv/mediawikiis updated dynamically, the underlying docker image may be several days behind on infrastructure changes until you restart it (e.g. Puppet, Debian packages, Apache config, PHP settings):deploy:$ cd /srv/deployment-charts/helmfile.d/services/mw-experimental deploy:$ helmfile -e eqiad -i apply or deploy:$ helmfile -e codfw -i apply
- SSH to mw-experimental.eqiad.wmnet or mw-experimental.codfw.wmnet
- There is timer updating
/srv/mediawikievery hour. You can check when it last ran:systemctl status mw-experimental-mediawiki-image-update.timer
- Despite this, if you want to update it again, you may run the timer on demand (takes ~3mins):
wikikube-worker-exp1001:~$ sudo systemctl restart mw-experimental-mediawiki-image-update.service
- Make your changes in
/srv/mediawikias usual. Files are editable as any user in thedeploymentgroup; changes to PHP files should take effect immediately (no need to restart php-fpm or anything like that). - Go to WikimediaDebug and choose
k8s-mw-experimental-eqiadork8s-mw-experimental-codfw
Notes:
- We have a timer updating
/srv/mediawikievery hour - To prevent code refreshing, you may run
wikikube-worker-exp1001:~$ /usr/local/sbin/mw-experimental-mediawiki-image-update --lock wikikube-worker-exp1001:~$ /usr/local/sbin/mw-experimental-mediawiki-image-update --unlock
- If you would like to discard your changes quickly and start over, you do not need to run helmfile again, unless some breaking changes have been deployed in the meantime. Restarting
mw-experimental-mediawiki-image-update.serviceshould be enough. - Image versions used on mw-experimental can be found either on the experimental hosts themselves or the deployment server under
/etc/helmfile-defaults/mediawiki/release/mw-experimental-pinkllama.yaml
Dashboards
- Same url as before on logstash
- mw-experimental on grafana