Andrew Beekhof escribió:
then you want:

default_resource_failure_stickiness=-INFINITY (if it fails, move
immediately), and

default_resource_stickiness=INFINITY (dont move it unless it fails or
the node is shutting down or similar)
But If I assign default_resource_stickiness=INFINITY , the resource group executes in the first heartbeat node available no ??

I want to execute a resource in one node and then it network fails or resource fails, the resource group must be moved to the secondary node.

Now I assign a 200 score to a node by a rule, could be this rule the problem ?? The rule is:

      <rsc_location id="my_resource:connected" rsc="MySQL_GROUP">
        <rule id="my_resource:prefer:portatil" score="200">
<expression id="my_resource:prefer:portatil:expr" attribute="#uname" operation="eq" value="portatil"/>
        </rule>
<rule id="my_resource:connected:rule" score="-INFINITY" boolean_op="or"> <expression id="my_resource:connected:expr:undefined" attribute="pingd" operation="not_defined"/> <expression id="my_resource:connected:expr:zero" attribute="pingd" operation="lte" value="0"/>
        </rule>
      </rsc_location>

(It will test your theory now..)


To do that I configure in cib the next:

default_resource_failure_stickiness=-INFINITY -> with this the resource
doesn't execute in any node.

has it failed once on every node?
No, I think not..
you'll need to clear out the failcount before it will be allowed to
run there again
This is to execute the resource in a node wich has a failcount > 0 not ?? How can I know failcount value for a node ??

How can do that ?? I read this email:

"I read somewhere in the list that the score of a total group is the
score multiplied by the count of the members in that group. (Can't find
an information about that in the docu and why it is like that), as far
as I can remember. So, in your case you have default_resource_stickiness
=500
and default_resource_failure_stickiness=-100. That means: 500*3 =1500,
1500/abs(-100)=15. "

I my case, I have two resources and a rule to assign a score to the
resource group. The resource is 200. need I to assign
default_resource_failure_stickiness to a -400 value ?? I tested it and
happens the same, the resource goes back to the master node.

What can I do ?? I want permit only one fail on one resource.

Best regards, Adrián!

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Best regards, Adrián!
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to