Add a server
From Wikitech
For any MediaWiki installation:
- Install Ubuntu
- Install wikimedia-task-appserver
- Add the hostname to /usr/local/dsh/node_groups/mediawiki-installation on the ssh bastion host (zwinger)
Additionally, for a non-apache batch server:
- Stop apache: /etc/init.d/apache2 stop
- Disable apache by running update-rc.d -f apache2 remove
- Add to ganglia with:
apt-get -y --no-remove install gmond ganglia-metrics cp -r /home/wikipedia/conf/gmond /etc rm /etc/gmond.conf ln -s gmond/misc.conf /etc/gmond.conf /etc/init.d/gmond restart /etc/init.d/gmetricd restart
Additionally, for a main pool apache server:
- Add the hostname to /usr/local/dsh/node_groups/apaches
- Add to nagios with cd /home/wikipedia/conf/nagios && ./sync
- Add to ganglia with:
apt-get install gmond ganglia-metrics cp -r /home/wikipedia/conf/gmond /etc rm /etc/gmond.conf /home/wikipedia/conf/gmond/make-apache-symlink /etc/init.d/gmond restart /etc/init.d/gmetricd restart