Phanidhar,

If you don't have any location rules in your cluster, you can try setting
"resource-stickiness=1" or "resource-stickiness=100".
That will do the same job as INFINITY if there is no other location rules
in the cluster.
Also, there is a way to see current state of scores in the cluster, which
helps a lot =).
Try this command:

    # crm_simulate -Ls


Thank you,
Kostia

On Fri, Nov 18, 2016 at 12:01 PM, phanidhar prattipati <
p.phanid...@gmail.com> wrote:

> Thanks for the prompt reply Ken.
>
> 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.
>
> So want sure if its right way of doing it.
>
> Thanks,
> Phanidhar
>
>
>
> On Fri, Nov 18, 2016 at 1:16 AM, Ken Gaillot <kgail...@redhat.com> wrote:
>
>> On 11/17/2016 06:41 PM, phanidhar prattipati wrote:
>> > Good Morning All,
>> >
>> > I have configured HA on 3 nodes and in order to disable automatic fail
>> > over i need to set resource stickiness value and not sure how to
>> > calculate it. Currently i set it o INFINITY which i believe is not the
>> > right way of doing it. Any pointers how to calculate based on the
>> > environment set up will be really great help?
>> >
>> >
>> > --
>> > Thanks,
>> > Phanidhar
>>
>> INFINITY is fine -- many people use that for stickiness.
>>
>> It's simply a matter of preference. How it matters is when weighing
>> against other scores in your configuration.
>>
>> For example, let's say you have a resource R with a location constraint
>> preferring node N, and you have resource stickiness.
>>
>> If N crashes or is shut down, R will move to another node. When N comes
>> back, R will stay on the other node, if the resource stickiness is
>> higher than the location constraint's score; it will move back to N, if
>> the location constraint's score is higher.
>>
>> A score of INFINITY means never move back, as long as the new node stays
>> up.
>>
>> _______________________________________________
>> Users mailing list: Users@clusterlabs.org
>> http://clusterlabs.org/mailman/listinfo/users
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://bugs.clusterlabs.org
>>
>
>
>
> --
> Thanks,
> Phanidhar
> 07725162795
>
> _______________________________________________
> Users mailing list: Users@clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
>
_______________________________________________
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to