On 2 Jun 2014, at 7:05 pm, Riccardo Murri <riccardo.mu...@gmail.com> wrote:

> Hi Andrew,
> 
> thanks for your explanations.  One more question:
> 
> On 30 May 2014 02:38, Andrew Beekhof <and...@beekhof.net> wrote:
>> 
>> On 29 May 2014, at 9:19 pm, Riccardo Murri <riccardo.mu...@gmail.com> wrote:
>> 
>>> - or rather does the `ping` RA trigger failure events when even one of
>>> the nodes cannot be pinged?
>> 
>> both.  it always triggers events when something changes and its up
>> to the policy engine to look at your constraints and decide if
>> things should be moved.
> 
> Would the following be the correct configuration snippet to have
> pacemaker ignore occasional ping failures and only react when *no*
> hosts can be pinged?
> 
>    primitive ping ocf:pacemaker:ping \
>        params name=ping dampen=5s multiplier=10 host_list="..." \
>        op start timeout=120 \
>        op monitor timeout=60 interval=10 on-fail=ignore
>                                          ^^^^^^^^^^^^^^

Not really.  monitor failures are different from "i could only reach N out of M 
hosts"
The rule below is the correct part, but we'll still poke the PE to be sure 
everything is ok.

> 
>    clone ping_clone ping \
>        meta globally-unique=false clone-node-max=1
> 
>    [...]
> 
>    location mgt-location mgt \
>      rule -INFINITY: not_defined ping or ping number:lte 0
> 
> Thanks,
> Riccardo
> 
> --
> Riccardo Murri
> http://www.gc3.uzh.ch/people/rm
> 
> Grid Computing Competence Centre
> University of Zurich
> Winterthurerstrasse 190, CH-8057 Zürich (Switzerland)
> Tel: +41 44 635 4222
> Fax: +41 44 635 6888
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker@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
> Bugs: http://bugs.clusterlabs.org

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Pacemaker mailing list: Pacemaker@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
Bugs: http://bugs.clusterlabs.org

Reply via email to