Index of /code/perl/takeover
Name Last modified Size Description
Parent Directory 11-Nov-2007 18:48 -
0.2.0/ 19-Jun-2006 19:52 -
Some thoughts about clustered servers
Some thoughts about clustered servers
Jani Reinikainen, devel (at) reinikainen.net
26. March 2003
Normal operation
- Master constantly mirrors to Backup using FAM/IMON/Rsync.
- MySQL handles itself in all cases, if two-way replication is used.
- rsync needs to be installed on ALL nodes in the cluster.
Switching over to a backup node
On backup node:
- Fake the IP (fake [master node IP])
- Check that FTPd is running
- Check that MTA is running
- Check that WWW server is running
- My Perl script here
Switching over from a backup node
On Master node:
- Check that FTPd is running
- Check that MTA is running
- Check that WWW server is running
On backup node:
- Close FTPd
- Close MTA
- Rsync changed data to Master
- Un-fake the IP (fake remove [master node IP])
- My Perl script here