Discussion:
[LinuxFailSafe] 2 node cluster
Dan Goscomb
2003-05-15 16:34:38 UTC
Permalink
Hi,

I would like to configure a 2 node cluster where each machine has a
unique IP address and both are accessible at the same time (via round
robin DNS).

I would like it so that if one machine went down the other would take
over its IP address... this, i would imagine, would involve 2
clusters... one with machine 1 as the primary and machine 2 secondary,
and one with machine 2 as the primary and machine 1 secondary.

Is this possible and if so could someone send me an example config?

Cheers,

Dan.

--
Dan Goscomb <dang at cashcade.co.uk>
Dan Goscomb
2003-05-15 16:53:40 UTC
Permalink
thats what i thought i had explained i wanted!


On Thu, 2003-05-15 at 17:42, Michael Gesundheit wrote:
> Why should you use ip aliasing??
> You can have the survived server alias the dead server IP until it
> will be fixed or whatever.
>
> -Michael
>
> Dan Goscomb <dang at cashcade.co.uk> wrote:
> Hi,
>
> I would like to configure a 2 node cluster where each machine
> has a
> unique IP address and both are accessible at the same time
> (via round
> robin DNS).
>
> I would like it so that if one machine went down the other
> would take
> over its IP address... this, i would imagine, would involve 2
> clusters... one with machine 1 as the primary and machine 2
> secondary,
> and one with machine 2 as the primary and machine 1 secondary.
>
> Is this possible and if so could someone send me an example
> config?
>
> Cheers,
>
> Dan.
>
> --
> Dan Goscomb
>
> _______________________________________________
> LinuxFailSafe mailing list
> LinuxFailSafe at lists.community.tummy.com
> http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
>
>
> Thanks,
>
> -Michael
>
>
>
> ______________________________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
--
Dan Goscomb <dang at cashcade.co.uk>
Dan Goscomb
2003-05-15 18:11:13 UTC
Permalink
i do not want to use any load directors... believe me i've looked at
everything and i would prefer an app switch, but cost is a major issue
here. i have 2 machines to work with, and that is it.


On Thu, 2003-05-15 at 19:09, an unknown sender wrote:
> Em Quinta 15 Maio 2003 13:53, Dan Goscomb escreveu:
>
> Maybe what you're looking for is ldirectord, it's more reliable than round
> robin DNS and far easier to set up than failsafe:
>
> http://www.vergenet.net/linux/ldirectord/
>
> rgrds,
> Br?ulio Gergull
> GetNet Comunica??es Ltda.
> http://www.getnet.com.br/
> http://www.suse-brasil.com.br/
>
> > thats what i thought i had explained i wanted!
> >
> > On Thu, 2003-05-15 at 17:42, Michael Gesundheit wrote:
> > > Why should you use ip aliasing??
> > > You can have the survived server alias the dead server IP until it
> > > will be fixed or whatever.
> > >
> > > -Michael
> > >
> > > Dan Goscomb <dang at cashcade.co.uk> wrote:
> > > Hi,
> > >
> > > I would like to configure a 2 node cluster where each machine
> > > has a
> > > unique IP address and both are accessible at the same time
> > > (via round
> > > robin DNS).
> > >
> > > I would like it so that if one machine went down the other
> > > would take
> > > over its IP address... this, i would imagine, would involve 2
> > > clusters... one with machine 1 as the primary and machine 2
> > > secondary,
> > > and one with machine 2 as the primary and machine 1 secondary.
> > >
> > > Is this possible and if so could someone send me an example
> > > config?
> > >
> > > Cheers,
> > >
> > > Dan.
> > >
> > > --
> > > Dan Goscomb
> > >
> > > _______________________________________________
> > > LinuxFailSafe mailing list
> > > LinuxFailSafe at lists.community.tummy.com
> > > http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
> > >
> > >
> > > Thanks,
> > >
> > > -Michael
> > >
> > >
> > >
> > > ______________________________________________________________________
> > > Do you Yahoo!?
> > > The New Yahoo! Search - Faster. Easier. Bingo.
--
Dan Goscomb <dang at cashcade.co.uk>
Kashif Shaikh
2003-05-15 19:10:47 UTC
Permalink
Have you checked out www.linux-ha.org?

If you just want to have the IP as 'highly available', then I suggest
you check out heartbeat(available on the linux-ha website).

If one machine fails, another machine would take over the IP address.

Kashif


On Thu, 2003-05-15 at 14:11, Dan Goscomb wrote:
> i do not want to use any load directors... believe me i've looked at
> everything and i would prefer an app switch, but cost is a major issue
> here. i have 2 machines to work with, and that is it.
>
>
> On Thu, 2003-05-15 at 19:09, an unknown sender wrote:
> > Em Quinta 15 Maio 2003 13:53, Dan Goscomb escreveu:
> >
> > Maybe what you're looking for is ldirectord, it's more reliable than round
> > robin DNS and far easier to set up than failsafe:
> >
> > http://www.vergenet.net/linux/ldirectord/
> >
> > rgrds,
> > Br?ulio Gergull
> > GetNet Comunica??es Ltda.
> > http://www.getnet.com.br/
> > http://www.suse-brasil.com.br/
> >
> > > thats what i thought i had explained i wanted!
> > >
> > > On Thu, 2003-05-15 at 17:42, Michael Gesundheit wrote:
> > > > Why should you use ip aliasing??
> > > > You can have the survived server alias the dead server IP until it
> > > > will be fixed or whatever.
> > > >
> > > > -Michael
> > > >
> > > > Dan Goscomb <dang at cashcade.co.uk> wrote:
> > > > Hi,
> > > >
> > > > I would like to configure a 2 node cluster where each machine
> > > > has a
> > > > unique IP address and both are accessible at the same time
> > > > (via round
> > > > robin DNS).
> > > >
> > > > I would like it so that if one machine went down the other
> > > > would take
> > > > over its IP address... this, i would imagine, would involve 2
> > > > clusters... one with machine 1 as the primary and machine 2
> > > > secondary,
> > > > and one with machine 2 as the primary and machine 1 secondary.
> > > >
> > > > Is this possible and if so could someone send me an example
> > > > config?
> > > >
> > > > Cheers,
> > > >
> > > > Dan.
> > > >
> > > > --
> > > > Dan Goscomb
> > > >
> > > > _______________________________________________
> > > > LinuxFailSafe mailing list
> > > > LinuxFailSafe at lists.community.tummy.com
> > > > http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
> > > >
> > > >
> > > > Thanks,
> > > >
> > > > -Michael
> > > >
> > > >
> > > >
> > > > ______________________________________________________________________
> > > > Do you Yahoo!?
> > > > The New Yahoo! Search - Faster. Easier. Bingo.
> --
> Dan Goscomb <dang at cashcade.co.uk>
>
> _______________________________________________
> LinuxFailSafe mailing list
> LinuxFailSafe at lists.community.tummy.com
> http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
Dan Goscomb
2003-05-15 18:59:48 UTC
Permalink
however, i need, as explained, both machines active at the same time...
active-active... not active-standby


On Thu, 2003-05-15 at 20:10, Kashif Shaikh wrote:
> Have you checked out www.linux-ha.org?
>
> If you just want to have the IP as 'highly available', then I suggest
> you check out heartbeat(available on the linux-ha website).
>
> If one machine fails, another machine would take over the IP address.
>
> Kashif
>
>
> On Thu, 2003-05-15 at 14:11, Dan Goscomb wrote:
> > i do not want to use any load directors... believe me i've looked at
> > everything and i would prefer an app switch, but cost is a major issue
> > here. i have 2 machines to work with, and that is it.
> >
> >
> > On Thu, 2003-05-15 at 19:09, an unknown sender wrote:
> > > Em Quinta 15 Maio 2003 13:53, Dan Goscomb escreveu:
> > >
> > > Maybe what you're looking for is ldirectord, it's more reliable than round
> > > robin DNS and far easier to set up than failsafe:
> > >
> > > http://www.vergenet.net/linux/ldirectord/
> > >
> > > rgrds,
> > > Br?ulio Gergull
> > > GetNet Comunica??es Ltda.
> > > http://www.getnet.com.br/
> > > http://www.suse-brasil.com.br/
> > >
> > > > thats what i thought i had explained i wanted!
> > > >
> > > > On Thu, 2003-05-15 at 17:42, Michael Gesundheit wrote:
> > > > > Why should you use ip aliasing??
> > > > > You can have the survived server alias the dead server IP until it
> > > > > will be fixed or whatever.
> > > > >
> > > > > -Michael
> > > > >
> > > > > Dan Goscomb <dang at cashcade.co.uk> wrote:
> > > > > Hi,
> > > > >
> > > > > I would like to configure a 2 node cluster where each machine
> > > > > has a
> > > > > unique IP address and both are accessible at the same time
> > > > > (via round
> > > > > robin DNS).
> > > > >
> > > > > I would like it so that if one machine went down the other
> > > > > would take
> > > > > over its IP address... this, i would imagine, would involve 2
> > > > > clusters... one with machine 1 as the primary and machine 2
> > > > > secondary,
> > > > > and one with machine 2 as the primary and machine 1 secondary.
> > > > >
> > > > > Is this possible and if so could someone send me an example
> > > > > config?
> > > > >
> > > > > Cheers,
> > > > >
> > > > > Dan.
> > > > >
> > > > > --
> > > > > Dan Goscomb
> > > > >
> > > > > _______________________________________________
> > > > > LinuxFailSafe mailing list
> > > > > LinuxFailSafe at lists.community.tummy.com
> > > > > http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
> > > > >
> > > > >
> > > > > Thanks,
> > > > >
> > > > > -Michael
> > > > >
> > > > >
> > > > >
> > > > > ______________________________________________________________________
> > > > > Do you Yahoo!?
> > > > > The New Yahoo! Search - Faster. Easier. Bingo.
> > --
> > Dan Goscomb <dang at cashcade.co.uk>
> >
> > _______________________________________________
> > LinuxFailSafe mailing list
> > LinuxFailSafe at lists.community.tummy.com
> > http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
>
--
Dan Goscomb <dang at cashcade.co.uk>
Kashif Shaikh
2003-05-15 20:17:46 UTC
Permalink
heartbeat can be configured active-active, no?

On Thu, 2003-05-15 at 14:59, Dan Goscomb wrote:
> however, i need, as explained, both machines active at the same time...
> active-active... not active-standby
>
>
> On Thu, 2003-05-15 at 20:10, Kashif Shaikh wrote:
> > Have you checked out www.linux-ha.org?
> >
> > If you just want to have the IP as 'highly available', then I suggest
> > you check out heartbeat(available on the linux-ha website).
> >
> > If one machine fails, another machine would take over the IP address.
> >
> > Kashif
> >
> >
> > On Thu, 2003-05-15 at 14:11, Dan Goscomb wrote:
> > > i do not want to use any load directors... believe me i've looked at
> > > everything and i would prefer an app switch, but cost is a major issue
> > > here. i have 2 machines to work with, and that is it.
> > >
> > >
> > > On Thu, 2003-05-15 at 19:09, an unknown sender wrote:
> > > > Em Quinta 15 Maio 2003 13:53, Dan Goscomb escreveu:
> > > >
> > > > Maybe what you're looking for is ldirectord, it's more reliable than round
> > > > robin DNS and far easier to set up than failsafe:
> > > >
> > > > http://www.vergenet.net/linux/ldirectord/
> > > >
> > > > rgrds,
> > > > Br?ulio Gergull
> > > > GetNet Comunica??es Ltda.
> > > > http://www.getnet.com.br/
> > > > http://www.suse-brasil.com.br/
> > > >
> > > > > thats what i thought i had explained i wanted!
> > > > >
> > > > > On Thu, 2003-05-15 at 17:42, Michael Gesundheit wrote:
> > > > > > Why should you use ip aliasing??
> > > > > > You can have the survived server alias the dead server IP until it
> > > > > > will be fixed or whatever.
> > > > > >
> > > > > > -Michael
> > > > > >
> > > > > > Dan Goscomb <dang at cashcade.co.uk> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I would like to configure a 2 node cluster where each machine
> > > > > > has a
> > > > > > unique IP address and both are accessible at the same time
> > > > > > (via round
> > > > > > robin DNS).
> > > > > >
> > > > > > I would like it so that if one machine went down the other
> > > > > > would take
> > > > > > over its IP address... this, i would imagine, would involve 2
> > > > > > clusters... one with machine 1 as the primary and machine 2
> > > > > > secondary,
> > > > > > and one with machine 2 as the primary and machine 1 secondary.
> > > > > >
> > > > > > Is this possible and if so could someone send me an example
> > > > > > config?
> > > > > >
> > > > > > Cheers,
> > > > > >
> > > > > > Dan.
> > > > > >
> > > > > > --
> > > > > > Dan Goscomb
> > > > > >
> > > > > > _______________________________________________
> > > > > > LinuxFailSafe mailing list
> > > > > > LinuxFailSafe at lists.community.tummy.com
> > > > > > http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
> > > > > >
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > -Michael
> > > > > >
> > > > > >
> > > > > >
> > > > > > ______________________________________________________________________
> > > > > > Do you Yahoo!?
> > > > > > The New Yahoo! Search - Faster. Easier. Bingo.
> > > --
> > > Dan Goscomb <dang at cashcade.co.uk>
> > >
> > > _______________________________________________
> > > LinuxFailSafe mailing list
> > > LinuxFailSafe at lists.community.tummy.com
> > > http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
> >
> --
> Dan Goscomb <dang at cashcade.co.uk>
>
> _______________________________________________
> LinuxFailSafe mailing list
> LinuxFailSafe at lists.community.tummy.com
> http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
Christian Hammers
2003-05-16 07:10:10 UTC
Permalink
On Thu, May 15, 2003 at 07:11:13PM +0100, Dan Goscomb wrote:
> i do not want to use any load directors... believe me i've looked at
> everything and i would prefer an app switch, but cost is a major issue
> here. i have 2 machines to work with, and that is it.

Did you take a look at http://www.backhand.org/wackamole/ ?

"Wackamole is quite unique in that it operates in a completely
peer-to-peer mode within the cluster. Other products that provide the
same high-availability guarantees use a "VIP" method. A networking
appliance assumes a single virtual IP address and "maps" requests to
that IP address to the machines in the cluster. This networking
appliance is a single point of failure by itself, so most industry
accepted solutions incorporate classic master-slave failover or bonding
between two identical appliances."

Apart from that I've once implemented a 2-host failover scenario where
both hosts where active at the same time. I used drbd+nfs to share data
between them and self written scripts+fake to get the other one's IP.
The major problem here is the case where both machines are failing due
to a broken internet link or a broken external LDAP server etc.
If you use fake, both machines have to be in the same subnet.
I'm don't know yet how to use two redundant load directors :-(

hope that helps

bye,

-christian-

--
Christian Hammers WESTEND GmbH | Internet-Business-Provider
Technik CISCO Systems Partner - Authorized Reseller
L?tticher Stra?e 10 Tel 0241/701333-11
ch at westend.com D-52064 Aachen Fax 0241/911879
BrĂ¡ulio Gergull
2003-05-15 18:09:10 UTC
Permalink
Em Quinta 15 Maio 2003 13:53, Dan Goscomb escreveu:

Maybe what you're looking for is ldirectord, it's more reliable than round
robin DNS and far easier to set up than failsafe:

http://www.vergenet.net/linux/ldirectord/

rgrds,
Br?ulio Gergull
GetNet Comunica??es Ltda.
http://www.getnet.com.br/
http://www.suse-brasil.com.br/

> thats what i thought i had explained i wanted!
>
> On Thu, 2003-05-15 at 17:42, Michael Gesundheit wrote:
> > Why should you use ip aliasing??
> > You can have the survived server alias the dead server IP until it
> > will be fixed or whatever.
> >
> > -Michael
> >
> > Dan Goscomb <dang at cashcade.co.uk> wrote:
> > Hi,
> >
> > I would like to configure a 2 node cluster where each machine
> > has a
> > unique IP address and both are accessible at the same time
> > (via round
> > robin DNS).
> >
> > I would like it so that if one machine went down the other
> > would take
> > over its IP address... this, i would imagine, would involve 2
> > clusters... one with machine 1 as the primary and machine 2
> > secondary,
> > and one with machine 2 as the primary and machine 1 secondary.
> >
> > Is this possible and if so could someone send me an example
> > config?
> >
> > Cheers,
> >
> > Dan.
> >
> > --
> > Dan Goscomb
> >
> > _______________________________________________
> > LinuxFailSafe mailing list
> > LinuxFailSafe at lists.community.tummy.com
> > http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
> >
> >
> > Thanks,
> >
> > -Michael
> >
> >
> >
> > ______________________________________________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo.
Dan Goscomb
2003-05-15 18:06:16 UTC
Permalink
so how do you suggest i find out when one machine has died and how to
release the IP when it comes back up?


On Thu, 2003-05-15 at 18:37, Michael Gesundheit wrote:
> Sorry, I meant "...why shouldn't you use IP aliasing".
> If you that what you want then do it. What the problem then?
>
> -Michael
>
> Dan Goscomb <dang at cashcade.co.uk> wrote:
> thats what i thought i had explained i wanted!
>
>
> On Thu, 2003-05-15 at 17:42, Michael Gesundheit wrote:
> > Why should you use ip aliasing??
> > You can have the survived server alias the dead server IP
> until it
> > will be fixed or whatever.
> >
> > -Michael
> >
> > Dan Goscomb wrote:
> > Hi,
> >
> > I would like to configure a 2 node cluster where each
> machine
> > has a
> > unique IP address and both are accessible at the same time
> > (via round
> > robin DNS).
> >
> > I would like it so that if one machine went down the other
> > would take
> > over its IP address... this, i would imagine, would involve
> 2
> > clusters... one with machine 1 as the primary and machine 2
> > secondary,
> > and one with machine 2 as the primary and machine 1
> secondary.
> >
> > Is this possible and if so could someone send me an example
> > config?
> >
> > Cheers,
> >
> > Dan.
> >
> > --
> > Dan Goscomb
> >
> > _______________________________________________
> > LinuxFailSafe mailing list
> > LinuxFailSafe at lists.community.tummy.com
> >
> http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
> >
> >
> > Thanks,
> >
> > -Michael
> >
> >
> >
> >
> ______________________________________________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo.
> --
> Dan Goscomb
>
> _______________________________________________
> LinuxFailSafe mailing list
> LinuxFailSafe at lists.community.tummy.com
> http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
>
>
> Thanks,
>
> -Michael
>
>
>
> ______________________________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
--
Dan Goscomb <dang at cashcade.co.uk>
Horms
2003-05-16 01:16:05 UTC
Permalink
On Thu, May 15, 2003 at 07:06:16PM +0100, Dan Goscomb wrote:
> so how do you suggest i find out when one machine has died and how to
> release the IP when it comes back up?

If heartbeat (www.linux-ha.org) doesn't meet you requirements
you may want to look at keepalived (keepalived.sourceforge.net)
wich implements VRRP. It is primarily geared towards use in
conjunction with LVS. But you can just use the VRRP component.

--
Horms
Michael Gesundheit
2003-05-15 16:42:04 UTC
Permalink
Why should you use ip aliasing??
You can have the survived server alias the dead server IP until it will be fixed or whatever.

-Michael

Dan Goscomb <dang at cashcade.co.uk> wrote:
Hi,

I would like to configure a 2 node cluster where each machine has a
unique IP address and both are accessible at the same time (via round
robin DNS).

I would like it so that if one machine went down the other would take
over its IP address... this, i would imagine, would involve 2
clusters... one with machine 1 as the primary and machine 2 secondary,
and one with machine 2 as the primary and machine 1 secondary.

Is this possible and if so could someone send me an example config?

Cheers,

Dan.

--
Dan Goscomb

_______________________________________________
LinuxFailSafe mailing list
LinuxFailSafe at lists.community.tummy.com
http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe


Thanks,

-Michael





---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.community.tummy.com/pipermail/linuxfailsafe/attachments/20030515/cee0ac6c/attachment.html>
Michael Gesundheit
2003-05-15 17:37:03 UTC
Permalink
Sorry, I meant "...why shouldn't you use IP aliasing".
If you that what you want then do it. What the problem then?

-Michael

Dan Goscomb <dang at cashcade.co.uk> wrote:
thats what i thought i had explained i wanted!


On Thu, 2003-05-15 at 17:42, Michael Gesundheit wrote:
> Why should you use ip aliasing??
> You can have the survived server alias the dead server IP until it
> will be fixed or whatever.
>
> -Michael
>
> Dan Goscomb wrote:
> Hi,
>
> I would like to configure a 2 node cluster where each machine
> has a
> unique IP address and both are accessible at the same time
> (via round
> robin DNS).
>
> I would like it so that if one machine went down the other
> would take
> over its IP address... this, i would imagine, would involve 2
> clusters... one with machine 1 as the primary and machine 2
> secondary,
> and one with machine 2 as the primary and machine 1 secondary.
>
> Is this possible and if so could someone send me an example
> config?
>
> Cheers,
>
> Dan.
>
> --
> Dan Goscomb
>
> _______________________________________________
> LinuxFailSafe mailing list
> LinuxFailSafe at lists.community.tummy.com
> http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe
>
>
> Thanks,
>
> -Michael
>
>
>
> ______________________________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
--
Dan Goscomb

_______________________________________________
LinuxFailSafe mailing list
LinuxFailSafe at lists.community.tummy.com
http://lists.community.tummy.com/mailman/listinfo/linuxfailsafe


Thanks,

-Michael





---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.community.tummy.com/pipermail/linuxfailsafe/attachments/20030515/981bccff/attachment.html>
Loading...