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

Sébastien ROHAUT sebastien.rohaut at free.fr
Sat Feb 18 22:21:32 UTC 2012


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.




More information about the Pacemaker mailing list