[Linux-HA] use of pingd

Oren Nechushtan oren at forescout.com
Wed Sep 6 08:27:52 MDT 2006


I can suggest from my humble experience:

Preferring a node based on connectivity (based on http://www.linux-ha.org/v2/faq/pingd) 
Example Constraint
<rsc_location id="group_1:connected" rsc="group_1">
    <rule id="group_1:connected:rule" score_attribute="pingd" boolean_op="and">
       <expression id="group_1:connected:expr:defined"  attribute="pingd" operation="defined"/>
       <expression id="group_1:connected:expr:positive" attribute="pingd" operation="gt" value="100"/>
    </rule>
</rsc_location>

or

Not allowing nodes to run without connectivity 
<rsc_location id="group_1:connected" rsc="group_1">
 <rule id="group_1:connected:rule" score="-INFINITY" boolean_op="or">
   <expression id="group_1:connected:expr:defined"  attribute="pingd" operation="not_defined"/>
   <expression id="group_1:connected:expr:negative" attribute="pingd" operation="lte" value="0"/>
  </rule>
</rsc_location>


> -----Original Message-----
> From: linux-ha-bounces at lists.linux-ha.org 
> [mailto:linux-ha-bounces at lists.linux-ha.org]On Behalf Of 
> Philippe CAVAILLES
> Sent: Wednesday, September 06, 2006 3:14 PM
> To: linux-ha at lists.linux-ha.org
> Subject: [Linux-HA] use of pingd
> 
> 
> Dear all,
> I use heartbeat v2.0.7 + patch provided by Andrew Beekhof (Filter out 
> updates that arent for cluster members).
> 
> I have configured pingd pluging, as specified in 
> (http://www.linux-ha.org/v2/faq/pingd) and
> a group of 2 services that run on a symmetric cluster.
> 
> I want heartbeat to stop all the services of my group on the 
> node that 
> has lost the connection
> with the network reference (the ip address monitored by pingd) and to 
> restart them when
> the network reference come back (if they are not already 
> started on an 
> other node).
> 
> I am able to detect the if the network reference is reachable or not 
> with the
> command "crm_attribute -V -G -t status -U <node name> -n pingd"
> 
> But I don't know how to stop and restart how to specify some 
> stop/restart actions
> associated to the value of this attribute. Maybe with  some specifics 
> rules in the
> <constraint> block?
> 
> Does someone has an idea?
> 
> Please find attached the result of the command "cibadmin -Q"
> 
> Regards,
> Philippe
> 
> 
> 
> 
> 
> 
> 
> 


More information about the Linux-HA mailing list