<div dir="ltr"><div><span style="font-size:12.8px">Phanidhar,</span><br></div><div><span style="font-size:12.8px"><br></span></div>If you don't have any location rules in your cluster, you can try setting "resource-stickiness=1" or "resource-stickiness=100".<div>That will do the same job as INFINITY if there is no other location rules in the cluster.</div><div>Also, there is a way to see current state of scores in the cluster, which helps a lot =).</div><div>Try this command:</div><div><br><div>    # crm_simulate -Ls<br></div></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Thank you,<div>Kostia</div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Nov 18, 2016 at 12:01 PM, phanidhar prattipati <span dir="ltr"><<a href="mailto:p.phanidhar@gmail.com" target="_blank">p.phanidhar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for the prompt reply Ken.<div><br></div><div>In my configuration none of my resource have any node priorities set but in 3 node when one nodes goes down and is added back to the cluster some times resources are getting struck between newly added node and on other node where it is presently running after setting resource stickiness to INFINITY and also sometimes i am getting CPU struck for 30 seconds error message and reboots the other node.</div><div><br></div><div>So want sure if its right way of doing it.</div><div><br></div><div>Thanks,</div><div>Phanidhar</div><div><br></div><div><br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Fri, Nov 18, 2016 at 1:16 AM, 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"><div class="m_9171725252166177413HOEnZb"><div class="m_9171725252166177413h5">On 11/17/2016 06:41 PM, phanidhar prattipati wrote:<br>
> Good Morning All,<br>
><br>
> I have configured HA on 3 nodes and in order to disable automatic fail<br>
> over i need to set resource stickiness value and not sure how to<br>
> calculate it. Currently i set it o INFINITY which i believe is not the<br>
> right way of doing it. Any pointers how to calculate based on the<br>
> environment set up will be really great help?<br>
><br>
><br>
> --<br>
> Thanks,<br>
> Phanidhar<br>
<br>
</div></div>INFINITY is fine -- many people use that for stickiness.<br>
<br>
It's simply a matter of preference. How it matters is when weighing<br>
against other scores in your configuration.<br>
<br>
For example, let's say you have a resource R with a location constraint<br>
preferring node N, and you have resource stickiness.<br>
<br>
If N crashes or is shut down, R will move to another node. When N comes<br>
back, R will stay on the other node, if the resource stickiness is<br>
higher than the location constraint's score; it will move back to N, if<br>
the location constraint's score is higher.<br>
<br>
A score of INFINITY means never move back, as long as the new node stays up.<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman<wbr>/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<wbr>/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"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_9171725252166177413gmail_signature" data-smartmail="gmail_signature">Thanks,<br>Phanidhar<br>07725162795</div>
</font></span></div></div>
<br>______________________________<wbr>_________________<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/<wbr>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/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br></div>