[Pacemaker] Switching a Resource based on connectivity (ping)
Pavel Levshin
pavel at levshin.spb.ru
Fri Mar 18 16:28:36 UTC 2011
18.03.2011 2:52, tariq fillah:
> I meen this:
> crm configure primitive ping ocf:pacemaker:ping \
>
>
> op monitor depth="0" timeout="20s" interval="10"
>
> **********
> clone pingdClone ping \
>
>
> meta globally-unique="false" target-role="Started"
> ***********
> crm configure location pingjb ClusterIP \
>
> rule -inf: not_defined ping
>
>
First, define what to monitor.
primitive ping ocf:pacemaker:ping \
op monitor timeout="20" interval="10"
params host_list="192.168.0.1" multiplier=1000
Second, make ping resource run on every node.
clone c-ping ping
Then the value of attribute pingd will be used as score for the rule.
Best connectivity will win.
location pingjb ClusterIP \
rule pingd: defined pingd
2011/3/17 tariq fillah <tariqfcb at gmail.com <mailto:tariqfcb at gmail.com>>
>
> Hello the list,
>
> I want to add a switching condition for the resource ClusterIP
> based on connectivity, how can I do this. Will this work?
>
> crm configure primitive example_ping ocf:pacemaker:ping \
>
>
>
> op monitor depth="0" timeout="20s" interval="10"
>
>
> crm configure location pingjb ClusterIP \
> rule -inf: not_defined ping
>
> Thanks in advance
>
>
>
> _______________________________________________
> 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
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110318/5fef1092/attachment.htm>
More information about the Pacemaker
mailing list