[Pacemaker] failover after killing a process monitored by a resource ?

Sébastien ROHAUT sebastien.rohaut at free.fr
Sat Feb 18 23:39:19 CET 2012


Thank you !

Le 18/02/2012 23:28, Serge Dubrouski a écrit :
>
> http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/s-failure-migration.html
>
>
> On Sat, Feb 18, 2012 at 3:21 PM, Sébastien ROHAUT 
> <sebastien.rohaut at free.fr <mailto:sebastien.rohaut at free.fr>> wrote:
>
>     Hi,
>
>     I have a very basic pacemaker conf, with two resources (ipaddr2
>     and apache) in the same group.
>
>     If I kill my httpd process, the cluster respawn it on the same node :
>
>     Feb 18 23:06:15 node1 pengine: [1173]: notice:
>     common_apply_stickiness: apacheServer can fail 999999 more times
>     on node2 before being forced off
>     ...
>     Feb 18 23:06:16 node1 crmd: [1174]: info: match_graph_event:
>     Action apacheServer_start_0 (10) confirmed on node2 (rc=0)
>
>     Is it possible to make the resource automatically move to the
>     other node when process is killed ? How ?
>
>     My conf :
>     node node1
>     node node2
>     primitive apacheIP ocf:heartbeat:IPaddr \
>            params ip="192.168.1.80" cidr_netmask="32" nic="eth0" \
>            op monitor interval="30s" \
>            meta target-role="Started"
>     primitive apacheServer ocf:heartbeat:apache \
>            params httpd="/usr/sbin/httpd"
>     configfile="/etc/httpd/conf/httpd.conf" \
>            op monitor interval="60s" start="40s" stop="60s" \
>            meta target-role="Started"
>     group webserver apacheIP apacheServer
>     property $id="cib-bootstrap-options" \
>          
>      dc-version="1.1.6-4.fc16-89678d4947c5bd466e2f31acd58ea4e1edb854d5" \
>            cluster-infrastructure="openais" \
>            expected-quorum-votes="2" \
>            stonith-enabled="false" \
>            no-quorum-policy="ignore" \
>            last-lrm-refresh="1329602712"
>     rsc_defaults $id="rsc-options" \
>            resource-stickiness="100"
>
>     Thanks for your help.
>
>     _______________________________________________
>     Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>     <mailto: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://bugs.clusterlabs.org
>
>
>
>
> -- 
> Serge Dubrouski.
>
>
> _______________________________________________
> 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://bugs.clusterlabs.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.clusterlabs.org/pipermail/pacemaker/attachments/20120218/d5633570/attachment-0001.html>


More information about the Pacemaker mailing list