Quote:
Originally Posted by businessgeeks
Here are my questions.
1. Can you provide references on how to setup heartbeat, carp (what is carp anyway?) in a freebsd system?
2. Are there alternatives to replication, I friend told me to check out DBRD but says its linux only.
Im also looking into building a High Availability and Hi performance Web Server, and I hear this can be done with heartbeat alone, is this correct? will this setup work with lighttpd?
Regards,
BusinessGeeks
|
heartbeat; installs from ports
(Version 2 is not really what you need if not using python client)
install it on both servers and then set this minimum in ha.cf
file /usr/local/etc/ha.cf:
logfile /var/log/ha-log
keepalive 2
deadtime 10
bcast eth0 # name of the ETH you have
# you should have 2 ETH so that HA controls don't go on service's ETH
node server2
node server1
edit /etc/hosts
# handle so that the 2 severs know each other
ip_srv_2 server2
ip_srv_1 server1
handle so that Apache binds on cluster's IP (Apache will only run if the node is set as active) later you could sync the apache's files in /var/www or /usr/home's dirs. I suggest to use csync2 to do this.
edit haresources
server1 192.168.0.100 (this is the cluster's ip) apache (or apache2)
start heartbeat on both servers.
that's all. Later you could handle it better ie:daemonizing logs, adding services, etc.
Don't know if LighHttpd works.