Re: a few concepts
mixo <[email protected]>
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <[email protected]> |
Mike McLean wrote:
> mixo wrote:
>
>>
>> I have been trying to setup failover services for a couple of days
>> (on and off).
>> Initially I was using 3 machines, a primary node, a backup node and 1
>> real (web) server, and then changed to just having having 2, a
>> primary node and a server.
>
>
> You seem to be mixing up Piranha's failover service with it's
> load-balancing service.
>
> With a failover service, there are only two nodes. The primary node
> runs services and the backup node steps in to provide those same
> services should the primary fail. With failover service the term
> 'real server' is not used.
This is from my initial setup, where I was trying to configure
load-balancing ("lvs").
>
>> ++++++++++++++++++++++/etc/rc.d/rc.lvs+++++++++++++++++++++++++++++++++++++++
>>
>> #!/bin/sh
>>
>> iptables -t nat -F -v
>> echo 1 >/proc/sys/net/ipv4/ip_forward
>> modprobe iptable_nat
>> iptables -v -t nat -A POSTROUTING -s 192.168.1.0/24 -j MASQUERADE
>> ipvsadm -A -t NODE_1_IP:80 -s rr
>
>
> Ok, there is *no* LVS in a piranha failover service. Furthermore, even
> in a piranha load balancing service, you should let piranha handle the
> ipvsadm commands for you.
>
>
Like I wrote earlier on, I was trying to setup "lvs".
Thanks, I will remove the "ipvsadm" from the script, just in case I have
to setup lvs.