I have this config (part of it):
With this values I have only one failure (with mathematical function) :
150 -100 +50 / abs(-100) = 1, only one failure (I think...) . The
resource moves all the time to node portatil1 when it is recovered.
After a portatil1 failure IP_ADDR goes to portatil2 and then when
portatil1 is recovered it goes again to portatil1, why ??
<cluster_property_set id="cib-bootstrap-options">
<attributes>
<nvpair id="cib-bootstrap-options-dc-version"
name="dc-version" value="2.1.3-node:
552305612591183b1628baa5bc6e903e0f1e26a3"/>
<nvpair
id="cib-bootstrap-options-default-resource-stickiness"
name="default-resource-stickiness" value="50"/>
<nvpair
id="cib-bootstrap-options-default-resource-failure-stickiness"
name="default-resource-failure-stickiness" value="-100"/>
</attributes>
</cluster_property_set>
Resource:
<master_slave id="IP_ADDR">
<instance_attributes id="IP_ADDR_1">
<attributes>
<nvpair id="IP_ADDR_nv1" name="clone_max" value="1"/>
<nvpair id="IP_ADDR_nv2" name="clone_node_max" value="1"/>
</attributes>
</instance_attributes>
<primitive class="ocf" provider="heartbeat" type="IPaddr"
resource_stickiness="0" id="IPaddr">
<operations>
<op id="4" interval="5s" name="monitor" timeout="5s"/>
<op id="5" name="start" timeout="5s"/>
<op id="6" name="stop" timeout="5s"/>
</operations>
<instance_attributes id="ia1">
<attributes>
<nvpair id="ip5" name="ip" value="192.168.18.1"/>
<nvpair id="ip6" name="netmask" value="24"/>
<nvpair id="ip7" name="gw" value="192.168.18.254"/>
<nvpair id="ip8" name="nic" value="ha1"/>
</attributes>
</instance_attributes>
<meta_attributes id="IPaddr:0_meta_attrs">
<attributes>
<nvpair name="target_role"
id="IPaddr:0_metaattr_target_role" value="started"/>
</attributes>
</meta_attributes>
<constraints>
<rsc_order id="order_transition_1" from="MySQL_Server"
action="start" type="before" to="IP_ADDR"/>
<rsc_location id="my_resource:loc:portatil" rsc="IP_ADDR">
<rule id="my_resource:master:portatil" score="150">
<expression id="my_resource:prefer:portatil:expr"
attribute="#uname" operation="eq" value="portatil1"/>
</rule>
<rule id="my_resource:master:portatil2" score="100">
<expression id="my_resource:prefer:portatil2:expr"
attribute="#uname" operation="eq" value="portatil2"/>
</rule>
<rule id="my_resource:connected:rl" 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>
</constraints>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems