[Pacemaker] Detecting a lost network connection

Simon Lavigne-Giroux simon.lg at gmail.com
Tue May 18 09:08:31 EDT 2010


Is it possible to ping the router with this :

<clone id="Connected">
   <primitive id="ping" provider="pacemaker" class="ocf" type="ping">
    <instance_attributes id="ping-attrs">
      <nvpair id="pingd-dampen" name="dampen" value="5s"/>
      <nvpair id="pingd-multiplier" name="multiplier" value="1000"/>
      <nvpair id="pingd-hosts" name="host_list" value="_routerip_"/>
    </instance_attributes>
    <operations>
      <op id="ping-monitor-60s" interval="60s" name="monitor"/>
    </operations>
   </primitive>
  </clone>


Then make a rule when the connectivity is lost.

<rsc_location id="WebServer-no-connectivity" rsc="Webserver">
   <rule id="ping-exclude-rule" score="-INFINITY" >
    <expression id="ping-exclude" attribute="pingd" operation="not_defined"/>
   </rule>
  </rsc_location>


Simon

On Tue, May 18, 2010 at 5:52 AM, Dejan Muhamedagic <dejanmm at fastmail.fm>wrote:

> Hi,
>
> On Mon, May 17, 2010 at 03:56:54PM -0400, Vadym Chepkov wrote:
> >
> > On May 17, 2010, at 11:56 AM, Simon Lavigne-Giroux wrote:
> >
> > > Hi,
> > >
> > > I have 2 servers running Pacemaker. When the router fails,
> > > both nodes become primary. Is it possible for Pacemaker on
> > > the secondary server to detect that the network connection is
> > > not available and not become primary.
> > >
> >
> >
> http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/ch09s03s03s02.html
>
> That won't help since it looks like the router is in the
> heartbeat path. You need redundant communications in the cluster.
>
> Thanks,
>
> Dejan
>
> >
> >
> >
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100518/26c317e7/attachment-0001.html>


More information about the Pacemaker mailing list