Re: LVS backup router not taking role

Khapare Joshi <[email protected]> Wed, 18 Jan 2012 15:58:56 +0000
Newsgroups gmane.linux.redhat.piranha
Message-ID <CABHhH+sAbAjtK83fUxVU2wYiXg2gY=bdZ3_33++x-jEF8n-XoQ@mail.gmail.com>
--===============8787617445641536531==
Content-Type: multipart/alternative; boundary=f46d040839556de9e704b6cf860e

--f46d040839556de9e704b6cf860e
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Jan 18, 2012 at 1:59 PM, Ranjith Rajaram <[email protected]>wrote:

> **
>
>
> On 01/18/2012 07:22 PM, Khapare Joshi wrote:
>
> Hi, all,
>
> first time poster. I recently deployed lvs (primary and backup) with
> piranh and ran into few issues. I turned off the primary lvs to see backup
> lvs will take over. However it does not take over right a way seem require
> restart pulse. How does this fail over works if primary goes down ? should
> not this be happen right a way if primary lvs goes down ?
>
> If primary goes, secondary has to take it over
>
> It depends on deadtime
>
>  deadtime = n
>               Length of time before a node is declared dead and IP
> takeover occurs.
>
> lvs.cf needs to be checked together with system configuration.  Look at
> /var/log/messages
>
>
>
> I configured these parameter as this  :
>
Heartbeat interval (seconds):   Assume dead after (seconds):   Heartbeat
runs on port:   Monitor NIC links for failures:   Syncdaemon:
and copied lvs.cf to redudant server as well.

>
>
> And I have four real server- and it sees if one goes down whole system is
> unavailable (httpd service). Then I restart pulse and get  the httpd
> service. I do not think this is right. could be please guide me in right
> direction to make reliable.
>
>
> Do you have separate boxes for LVS directors and real server's ? [Are you
> running pulse on any of the two real server's ?]
>

I have two servers for lvs i.e lvs1 lvs2 and configured using piranha tool.
I started pulse on these two machines. Rest of other four server I only
started httpd not the pulse

>
> check the output of ipvsadm -L -n from the active lvs server [paste it
> here]
>
>
> PS: I use direct routing and have
>
> net.ipv4.conf.lo.arp_ignore = 1
> net.ipv4.conf.lo.arp_announce = 2
>
> in /etc/sysctl.conf
>
> sorry for too many question.
>
> Thanks
>
>
> _______________________________________________
> Piranha-list mailing [email protected]://www.redhat.com/mailman/listinfo/piranha-list
>
>
>
> _______________________________________________
> Piranha-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/piranha-list
>

--f46d040839556de9e704b6cf860e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Wed, Jan 18, 2012 at 1:59 PM, Ranjith=
 Rajaram <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">rraja=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>

 =20
   =20
 =20
  <div bgcolor=3D"#ffffff" text=3D"#000000"><div class=3D"im">
    <br>
    <br>
    On 01/18/2012 07:22 PM, Khapare Joshi wrote:
    <blockquote type=3D"cite">
     =20
      Hi, all,<br>
      <br>
      first time poster. I recently deployed lvs (primary and backup)
      with piranh and ran into few issues. I turned off the primary lvs
      to see backup lvs will take over. However it does not take over
      right a way seem require restart pulse. How does this fail over
      works if primary goes down ? should not this be happen right a way
      if primary lvs goes down ?<br>
    </blockquote></div>
    If primary goes, secondary has to take it over<br>
    <br>
    It depends on deadtime<br>
    <br>
    =A0deadtime =3D n<br>
    =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Length of time before a node is=
 declared dead and IP
    takeover occurs.<br>
    <br>
    <a href=3D"http://lvs.cf" target=3D"_blank">lvs.cf</a> needs to be chec=
ked together with system configuration.=A0 Look
    at /var/log/messages<div class=3D"im"><br>
    <br>
    <br>
    I configured these parameter as this=A0 :<br></div></div></blockquote><=
div><table><tbody><tr><td>Heartbeat interval (seconds):</td>
			<td><input name=3D"hb_interval" size=3D"5" value=3D"2" type=3D"TEXT">
			</td>
		</tr>
		<tr>
			<td>Assume dead after (seconds):</td>
			<td><input name=3D"dead_after" size=3D"5" value=3D"10" type=3D"TEXT">			=
</td>
		</tr>
		<tr>
			<td>Heartbeat runs on port:</td>
			<td><input name=3D"hb_port" size=3D"5" value=3D"539" type=3D"TEXT">			</=
td>
		</tr>
		<tr>
			<td>Monitor NIC links for failures:</td>
			<td><input name=3D"monitor_links" checked type=3D"checkbox">			</td>
		</tr>
		<tr>
			<td>Syncdaemon:</td>
			<td><input name=3D"syncdaemon" checked type=3D"checkbox"></td></tr></tbo=
dy></table><br>and copied <a href=3D"http://lvs.cf">lvs.cf</a> to redudant =
server as well. <br></div><blockquote class=3D"gmail_quote" style=3D"margin=
:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"=
>
<div bgcolor=3D"#ffffff" text=3D"#000000"><div class=3D"im">
    <br>
    <blockquote type=3D"cite">
      <br>
      And I have four real server- and it sees if one goes down whole
      system is unavailable (httpd service). Then I restart pulse and
      get=A0 the httpd service. I do not think this is right. could be
      please guide me in right direction to make reliable.<br>
      <br>
    </blockquote>
    <br></div>
    Do you have separate boxes for LVS directors and real server&#39;s ?
    [Are you running pulse on any of the two real server&#39;s ?]<br></div>=
</blockquote><div><br>I have two servers for lvs i.e lvs1 lvs2 and configur=
ed using piranha tool. I started pulse on these two machines. Rest of other=
 four server I only started httpd not the pulse=A0 <br>
</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor=3D"#ff=
ffff" text=3D"#000000">
    <br>
    check the output of ipvsadm -L -n from the active lvs server [paste
    it here]<br>
    <br>
    <br>
    <blockquote type=3D"cite"><div class=3D"im">PS: I use direct routing an=
d have <br>
      <br>
      net.ipv4.conf.lo.arp_ignore =3D 1<br>
      net.ipv4.conf.lo.arp_announce =3D 2<br>
      <br>
      in /etc/sysctl.conf<br>
      <br>
      sorry for too many question.<br>
      <br>
      Thanks
      </div><pre><fieldset></fieldset>
_______________________________________________
Piranha-list mailing list
<a href=3D"mailto:[email protected]" target=3D"_blank">Piranha-list@r=
edhat.com</a>
<a href=3D"https://www.redhat.com/mailman/listinfo/piranha-list" target=3D"=
_blank">https://www.redhat.com/mailman/listinfo/piranha-list</a></pre>
    </blockquote>
    <br>
    <pre cols=3D"72"></pre>
  </div>

<br>_______________________________________________<br>
Piranha-list mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"https://www.redhat.com/mailman/listinfo/piranha-list" target=3D"=
_blank">https://www.redhat.com/mailman/listinfo/piranha-list</a><br></block=
quote></div><br>

--f46d040839556de9e704b6cf860e--


--===============8787617445641536531==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Piranha-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/piranha-list
--===============8787617445641536531==--