piranha fos setup
Brian Beaver <[email protected]> Thu, 4 Dec 2003 16:23:18 -0500
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <2AB39DC75CB1D5119A4700B0D0218A0506A5F494@RSWMS02> |
Trying to setup a piranha fos cluster that provides high-availability for a
db application. These boxes will not have apache/httpd installed. It
appears that fos wants to monitor port 80 for cluster health, even though
I've omitted this port designation and am using send_program within my
lvs.cf Thanks in advance for any guidance.
Here's the config files for my test setup:
lvs.cf:
primary = X.X.X.101
primary_private = 1.1.1.1
service = fos
rsh_command = ssh
backup_active = 1
backup = X.X.X.102
backup_private = 1.1.1.2
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
reservation_conflict_action = preempt
debug_level = 9
failover REP {
address = X.X.X.100 eth0:1
vip_nmask = 255.255.255.0
active = 1
timeout = 6
send_program = "/etc/sysconfig/ha/test_ha.sh"
expect = "OK"
start_cmd = "/bin/touch /tmp/primary"
stop_cmd = "/bin/rm /tmp/primary"
}
test_ha.sh:
#!/bin/sh
if [ -f /tmp/primary ]; then
echo "OK"
else
echo "FAIL"
fi