Add a server

From Wikitech
Revision as of 01:22, 29 April 2009 by Tim (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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
  • Add the server to /etc/pybal/apache on the LVS director for the apaches, currently lvs3. The weight should be proportional to the CPU count.
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox