This is not strictly related to MON (MON and Heartbeat only come into play once you have the architecture mounted and configured), but here's an idea to get started:
Use virtual IPs with your applications. Your machine, say node1, will have its primary interface (eth0, for example) assigned the address, say, 192.168.1.10. Node2 will have the address 192.168.1.11. Assign a virtual IP address for use by your webserver on machine1 and machine2: say, 192.168.1.12. Configure the virtual interface eth0:1 and your webserver on *both* node1 and node2 with this IP address, but activate the interface and webserver only on node1. If your webserver fails on machine1, then all you have to do is: ifconfig eth0:1 down (on machine1) ifconfig eth0:1 up (on machine 2) /etc/init.d/apache start (on machine 2) and you're back in business. (You may need to do a ping to the virtual IP to force a refresh of ARP tables). Of course, this short example assumes your machines are on the same subred. Assign a distinct IP and virtual interface for each application with fallback: Oracle, etc. HTH, -- Scott Scott Prater Dpto. Sistemas [EMAIL PROTECTED] SERVICOM 2000 Av. Primado Reig, 189 entlo. 46020 Valencia - Spain Tel. (+34) 96 332 12 00 Fax. (+34) 96 332 12 01 www.servicom2000.com > -----Mensaje original----- > De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > nombre de david heliang > Enviado el: martes, 25 de marzo de 2003 10:34 > Para: [EMAIL PROTECTED] > CC: [EMAIL PROTECTED] > Asunto: about failover and takeover service in package of MON and > Heartbeat > > > Hello MON and Heartbeat: > Recently, I am going to try to using MON and Heartbeat to build a > complete > HA system. The following is my purpose: > 1. There are two server: active server(node1) and backup > server(node2) > 2. Active server provides cluster-protected resources(imn my case, > HTTP && Oracle)for client to access via specific network > identities > (e.g., an active IP address or a computer alias name). Of > course,an > active server can also be the backup server of another active > server. > The cluster software will monitor the availability of the active > server > and two services. If any one of them should become > unavailable, the > services running in active server will be interrupted. The cluster > software will trigger a pre-designated backup server to resume the > interrupted services originally provided by the active server. > 3. Backup server will takeover the active server when the > active server > is > down or unavailable. Or when anyone of two services running on the > active server is considered unavailable, the cluster software will > notify the backup server to takeover this services. > Backup servers > can > be standby and active operation modes. > > I really have no idea whether MON and Heartbeat can meet my > requirement or > not. > Also no idea how to switch one interrupted service to backup > server. using > ifconfig and route add/del ? Can someone point me in the right > direction? > If making this work, what part shall I modify? If someone has the similar > experience, your advice is welcome!!! Thanks a lots!!!! > > Best regard! > > > > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > mon mailing list > [EMAIL PROTECTED] > http://linux.kernel.org/mailman/listinfo/mon > _______________________________________________ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon
