Hi there
I suggest you do following instead:
1) Run Squid on both servers, listening on port 80 (for example) on
0.0.0.0
2) Use Heartbeat to let a Interface IP Address (which maybe registed
in DNS) failover between two servers.
Heartbeat's IPaddr2 resource is quite stable than others you write
yourself.
And, there's another better way which can use both servers at the same
time:
1) Run Squid on both servers,
2) Choose your another two servers to run heartbeat/LVS (ldirectord
resource). LVS can make both squid being used, and if one of your
squid down, the ldirectord script will automatically disconnect it.
Both way I'm using right now.
Regards,
Chun Tian (binghe)
I am new to Heartbeat all over a couple days.
Goal: Two Squid cache servers running in failover mode. When the
squid process dies on one server, failover to the other.
OS: RHEL5
Squid: 2.6Stable18
Heartbeat: 2.1.3 compiled from source
Server #1
Name: Squid1
eth0 = IP address on the local LAN, this is the IP that people
should use for squid, lets say 10.95.1.1 (this should be the same IP
as the failover, yes?)
eth1 = interface for heartbeats to the failover. This is using a x-
over cable to the eth1 on the other server. 192.168.1.1 /24
Server #2
Name: Squid2
eth0 = IP address on the local LAN, this is the IP that people
should use for squid, lets say 10.95.1.1 (this should be the same IP
as the failover, yes?)
eth1 = interface for heartbeats to the failover. This is using a x-
over cable to the eth1 on the other server. 192.168.1.2 /24
Both servers can ping each other over the xover
I currently have heartbeat fully running as per Alan's first
"Installing Heartbeat" screencast
ha.cf
use_logd yes
bcast eth1
node squid1 squid2
crm on
My haresources is blank for now , until i know how to do what I need.
crm_mon says:
============
Last updated: Fri Apr 18 14:50:58 2008
Current DC: squid1 (1691d699-2a81-4545-8242-b00862431514)
2 Nodes configured.
0 Resources configured.
============
Node: squid1 (1691d699-2a81-4545-8242-b00862431514): online
Node: squid2 (2422b230-22f2-451b-aa95-0b783eccab8d): online
If i start and stop heartbeat randomly on the servers crm_mon
changes as it should.
I have squid running on both servers.....How do I configure (based
on my info above) heartbeat to listen on each server and when squid
process stops to failover. Also, dont the IP's that my clients have
to access the squid server need to be the same on both servers? Any
help would be huge!
Thanks,
Nick
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems