[Pacemaker] Why Pacemaker 1.1.8 starts Apache service?

David Vossel dvossel at redhat.com
Wed Jun 12 14:23:14 UTC 2013





----- Original Message -----
> From: "Michael Furman" <michael_furman at hotmail.com>
> To: pacemaker at oss.clusterlabs.org
> Sent: Wednesday, June 12, 2013 9:08:22 AM
> Subject: [Pacemaker] Why Pacemaker 1.1.8 starts Apache service?
> 
> 
> 
> Hi all!
> 
> 
> We are working according to this documents:
> http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html-single/Clusters_from_Scratch/index.html#_update_the_configuration
> 
> https://github.com/ClusterLabs/pacemaker/blob/master/doc/pcs-crmsh-quick-ref.md
> 
> We have added Apache using the following command:
> 
> pcs resource create WebSite ocf:heartbeat:apache params
> configfile=/etc/httpd/conf/httpd.conf op monitor interval=20s
> 
> Then, to test the failover we stop Apache using the following command:
> service httpd stop
> 
> We see that Apache service is started again.

You manually stopped apache outside of pacemaker... pacemaker detects this and recovers the resource.  If you want to test failover, put a node in standby or fence it.  You could also set the migration-threshold.

> 
> 
> We suppose that Pacemaker starts it, since if we do not add it to the
> Pacemaker resources it will not start.
> Questions:
> 1) Is it Pacemaker starts Apache service?

yes.

> 2) Why Pacemaker starts Apache service?

because you configured it to.

-- Vossel

> Thanks for your help!
> 
> Michael
> 
> _______________________________________________
> 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
> 




More information about the Pacemaker mailing list