RE: Failover IP router



RHCS is not a reinstall it is just a few RPMS. Your web servers don't have to change at all, just install piranha and ipvsadm from cluster suite and start piranha to configure your load balancer, and you're set.

On Tue, 27 Nov 2007, Steven Buehler wrote:

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-
bounces@xxxxxxxxxx] On Behalf Of Barry Brimer
Sent: Tuesday, November 27, 2007 3:35 PM
To: General Red Hat Linux discussion list
Subject: Re: Failover IP router

Quoting Steven Buehler <steve@xxxxxxxxxxxx>:

I have been googleing for this, but can't seem to find the right
answer.
What I am trying to do is to create a failover router on a redhat
box.
1. website.com will be on 2 servers
2. website.com has one IP address
3. redhat box router will have the 1 IP address for website.com on
it.
4. website.com server1 will be on 192.168.1.10
5. website.com server2 will be on 192.168.1.11
6. If website.com server1 fails, website.com server2 will take over.

We are not worried about cookies that have been set on server1 to be
moved
to server2. We are just worried about the second machine taking
over. What
would be better is if it could be a load balancing setup so that it
will use
both servers, but if one fails, people will not notice it because the
other
server will then be taking all of the requests.

I have googled for "Linux failover iptables router" and a few other
combinations of words, but what I keep finding is failover for the
outbound
connections. Having 3 Nic cards 1 going to one ISP, 1 going to
another ISP
and one going to the internal network. Maybe I am just using the
wrong
wording. Any url links for instructions would be appreciated.

Thank You
Steve

I believe that you are looking for the load balancing portion of Red
Hat Cluster
Suite <http://www.redhat.com/cluster_suite/>

Barry

I found a page at http://linuxgazette.net/108/odonovan.html that says to use
the following in the iptables:
-A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m nth
--counter 0 --every 4 --packet 0 \
-j DNAT --to-destination 192.168.0.5:80
-A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m nth
--counter 0 --every 4 --packet 1 \
-j DNAT --to-destination 192.168.0.6:80
-A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m nth
--counter 0 --every 4 --packet 2 \
-j DNAT --to-destination 192.168.0.7:80
-A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m nth
--counter 0 --every 4 --packet 3 \
-j DNAT --to-destination 192.168.0.8:80

But I get errors because of the "-m nth". Because the servers are already
setup, I was hoping that I wouldn't need to redo them for something like the
RedHat Cluster Suit. That would require a re-install of the OS wouldn't it?
I have never done the RH CS before and they are wanting this all done for a
demo on Monday. Because of time constraints for the demo, I was hoping on
something like the above that could just go into my iptables firewall.
After the demo, we could go for something more elaborate like an appliance.

Thanks
Steve

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

!DSPAM:474ccd6c253151850110527!



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: Windows 2003 Network Load Balancing Problem
    ... Sadly my servers websites were configured with specific IPs and host ... I find it very strange why the NLB driver can receive on a virtual IP ... he set his IIS website to use ALL UNASSIGNED addresses rather than ... specifically pointing it at the single virtual cluster address. ...
    (microsoft.public.windows.server.clustering)
  • Re: upgrading sql2k cluster to sql2005
    ... that databases get locked off in the current cluster and then properly ... I maintain many SQL servers as ... Who is going to track down all of the applications that need to have ...
    (microsoft.public.sqlserver.clustering)
  • Re: Load Balanced TS Servers and Unicast Flooding
    ... Remove each on of your tse servers from the cluster, ... Start adding them back to the NLB Cluster. ... > NICs. ...
    (microsoft.public.windows.terminal_services)
  • Re: question regarding NTP configuration for clusters, and "cluster time" stability
    ... cluster ranging in size from 4 to over 100 nodes. ... external NTP servers nor any hardware based time sources. ... NTP server or servers, those nodes with external connections were ... to have each node peer with a small number of other nodes (four each ...
    (comp.protocols.time.ntp)
  • Re: High Availability FreeBSD www cluster
    ... So I am a bit lost and i am wanting to learn how to cluster freebsd ... A means to detect failed / out of service machines and redirect traffic to alternative servers ... or you have to store the session state in a way ...
    (freebsd-questions)