[Pacemaker] how can i define service so that switch all other services to onother node if one service failed?
Dan Frincu
df.cluster at gmail.com
Mon Feb 28 07:27:10 EST 2011
Hi,
On 02/28/2011 02:00 PM, Thomas Elsäßer wrote:
> Dear all,
>
> i have read the clusterbook, but i have not understand how can i
> configure example three services so that if one service failed, all
> three services switch to another node.
>
> Example:
>
> primitive ServiceAmavis lsb:amavis op monitor interval="10" timeout="20s"
> primitive ServiceApache lsb:apache2 op monitor interval="10"
> primitive ServiceCyrus lsb:cyrus2.2 op monitor interval="10" timeout="20s"
>
> what must i configure if i kill example apache process, that switch all
> three to another node?
You need to configure groups so that all resources run together or not
at all
http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/ch-advanced-resources.html#group-resources
But also take a look at ordering
http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/s-resource-ordering.html#id2003768
and colocation
http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/s-resource-colocation.html#id1993383
And also check whether the init scripts are LSB compliant
http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
And for apache please use the ocf:heartbeat:apache resource agent
http://linux-ha.org/doc/man-pages/re-ra-apache.html
HTH,
Dan
> Thanks
> Thomas
>
>
>
> _______________________________________________
> 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
--
Dan Frincu
CCNA, RHCE
More information about the Pacemaker
mailing list