Round robining using Heartbeat and Ldirectord

Louis Bohm lbohm@lightbridge.com
Wed, 20 Nov 2002 07:54:33 -0500


Well I have found my problem.  Thanks to Horms for posting some=20
suggestions.  ldirectord does not seem to be loading.  Not sure why=20
yet.  It is complaining about its config.  I am sure I will have figured it=
=20
out before some one replies but here it is anyway.

Louis

# Global Directives
checktimeout=3D3
checkinterval=3D10
#fallback=3D127.0.0.1:80
autoreload=3Dyes
logfile=3D/var/log/ha.log
#quiescent=3Dyes
#Fallback setting overides global
virtual=3D192.233.225.250:25
        real=3D192.233.225.254:25 gate
        real=3D192.233.225.253:25 gate
        fallback=3D127.0.0.1:25
        service=3Dsmtp
        scheduler=3Drr
        persistent=3D600
        protocol=3Dtcp


At 07:40 AM 11/20/2002, Louis Bohm wrote:
>Ok.  Sorry I did not respond to anyone yesterday.  I was very=20
>sick.  Anyway.  To answer all your questions:
>         1. I cannot do as listed bellow.  Why because I am replacing a=20
> single smtp server and most of the machines using it are production=20
> machines who do NOT use DNS.  Why are they not using DNS because of=20
> speed.  Though I will be doing the bellow for all machines using DNS.
>         2. Why am I load balancing smtp?  Because I cannot except having=
=20
> a machine sitting doing nothing.  At least if it is doing something I=20
> know all is working and I can double my performance.
>         3. Fail-over is working between both machines very well.  And no=
=20
> I am ONLY using 2 machines.  Both machines are running heartbeat +=20
> ldirectord + smtp.  What I see is the machine who is the master at the=20
> time is receiving ALL the smtp traffic.  When fail-over happens then the=
=20
> other machine receives all traffic.  Even if I wait the persistence time=
=20
> out I still do not hit the other machine.
>
>What other information can I provide to you all to help me diagnose=20
>this?  As it stands right now failover is working fantastically.  I just=20
>want to get round robining working before I put it in production.
>
>Thanks,
>Louis
>
>At 06:15 AM 11/19/2002, Rob Dawson wrote:
>>Er, perhaps I'm missing something here, but why loadbalance smtp? put both
>>servers into the DNS as MX with equal priority, and set your DNS server to
>>RR.
>>
>>Sure, it's not perfect loadbalancing, but it'll do it, unless your servers
>>are closer to being overloaded than you really want...
>>
>>Is there some reason you can't have that sort of service? It's that=
 critical
>>to have mail going?
>>
>>
>>Rob Dawson
>>Systems Administrator
>>Investis
>>www.investis.com
>>
>>85 Clerkenwell Road
>>London EC1R 5AR
>>T. +44 (0)20 7071 8513
>>F. +44 (0)20 7071 8501
>>M. +44 (0)778 9172195
>>
>>The contents of this email including its attachments (if any) are
>>confidential and may be privileged. If you are not the intended recipient
>>you should not copy it or use it for any purpose nor disclose its contents
>>to any other person. Please notify the person named above if this email=
 has
>>been sent to you in error. Registered office: address as above; registered
>>in England and Wales: number 3930926.
>>
>>
>> > -----Original Message-----
>> > From: Louis Bohm [mailto:lbohm@lightbridge.com]
>> > Sent: 18 November 2002 19:51
>> > To: linux-ha@muc.de
>> > Subject: Round robining using Heartbeat and Ldirectord
>> >
>> >
>> > I have two machines running Redhat 8.0 and the newest
>> > Heartbeat+ldirectord.  Everything is working great except I
>> > can not round
>> > robin between the two boxes.
>> >
>> > Maybe I am missing something but what I would like is two
>> > machines offering
>> > smtp service on one ip and round robining between them for load
>> > balancing.  Since I am not really putting a load on them at
>> > all while I am
>> > testing maybe it is working but I am not seeing it.  The
>> > scheduler is set
>> > to rr which to my mind when I telnet to port 25 first time I will get
>> > machine A the next time machine B.
>> >
>> > What have I got wrong???
>> >
>> > Louis
>> >
>> > --
>> > =A4=A4=BA=B0`=B0=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8=F8=A4=BA=B0`=
=B0=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8=F8=A4=BA=B0`=B0=BA=A4
>> > =A4=B0`=B0Lightbridge, Inc
>> > =A4=B0`=B067 South Bedford St.
>> > =A4=B0`=B0Burlington MA 01802
>> > =A4=B0`=B0781.359.4795 mailto:lbohm@lightbridge.com
>> > =A4=B0`=B0http://www.lightbridge.com
>> > =A4=A4=BA=B0`=B0=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8=F8=A4=BA=B0`=
=B0=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8=F8=A4=BA=B0`=B0=BA=A4
>> >
>
>--
>=A4=A4=BA=B0`=B0=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8=F8=A4=BA=B0`=B0=
=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8=F8=A4=BA=B0`=B0=BA=A4
>=A4=B0`=B0Lightbridge, Inc
>=A4=B0`=B067 South Bedford St.
>=A4=B0`=B0Burlington MA 01802
>=A4=B0`=B0781.359.4795 mailto:lbohm@lightbridge.com
>=A4=B0`=B0http://www.lightbridge.com
>=A4=A4=BA=B0`=B0=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8=F8=A4=BA=B0`=B0=
=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8=F8=A4=BA=B0`=B0=BA=A4
>

--
=A4=A4=BA=B0`=B0=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8=F8=A4=BA=B0`=B0=
=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8=F8=A4=BA=B0`=B0=BA=A4
=A4=B0`=B0Lightbridge, Inc
=A4=B0`=B067 South Bedford St.
=A4=B0`=B0Burlington MA 01802
=A4=B0`=B0781.359.4795 mailto:lbohm@lightbridge.com
=A4=B0`=B0http://www.lightbridge.com
=A4=A4=BA=B0`=B0=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8=F8=A4=BA=B0`=B0=
=BA=A4=F8,=B8=B8,=F8=A4=BA=B0`=B0=BA=A4=F8=F8=A4=BA=B0`=B0=BA=A4