<div dir="ltr"><div>hi..<br><br></div>on-fail="restart" is not working.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 29, 2015 at 7:26 PM, Ken Gaillot <span dir="ltr"><<a href="mailto:kgaillot@redhat.com" target="_blank">kgaillot@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 07/29/2015 08:05 AM, Vijay Partha wrote:<br>
> Hi.<br>
><br>
> Victor, Whatever you said i had tried and got it working. Thank you.<br>
><br>
> Could you guys answer the following questions please?<br>
><br>
> 1.) I have 2 apache services running on the same node. If the services go<br>
> down can pacemaker restart it?<br>
<br>
</span>Yes, that's what pacemaker is for :)<br>
<br>
If by two services you mean two server instances of apache, then you<br>
would configure two apache resources in pacemaker. If you mean two web<br>
apps running in one apache server, you'd configure one apache resource<br>
in pacemaker.<br>
<br>
You would also need a monitor operation, which tells pacemaker to<br>
periodically check the health of the service.<br>
<br>
The migration-threshold and on-fail options determine what the cluster<br>
does on failure. See the documentation for possible values, but the<br>
default behavior is to try to restart the service on the same node.<br>
<br>
The documentation for all the options is at<br>
<a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Explained/index.html" rel="noreferrer" target="_blank">http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Explained/index.html</a><br>
<span class=""><br>
> 2.) I have 2 apache services running on different nodes. Can i control both<br>
> the resources from a single node by making use of pacemaker?<br>
<br>
</span>The various cluster tools work from any node, to affect any or all<br>
nodes. Most commonly you'd use one of the high-level cluster shells<br>
(crmsh or pcs). They have commands to enable/disable a resource, move a<br>
resource to a different node, put a node in standby mode, etc.<br>
<br>
_______________________________________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>With Regards<br></div>P.Vijay<br></div></div>
</div>