On 3/29/07, Mohler, Eric (EMOHLER) <[EMAIL PROTECTED]> wrote:
Andrew,

Thanks for your reply. Please refer to <--'s below.

The resulting behavior is that the app only restarts on the same node,
never ping-pong.


**************************************************************


i assume "ON" and "OFF" refer to the resource state? <--YES YOU ARE
RIGHT

try:
rsc_location(your_resource, BOX1, 10000) rsc_location(your_resource,
BOX2, 10000) default_resource_failure_stickiness = 100
default_resource_stickiness = 10

that should let it ping-pong (due to failures) between your nodes 200
times before we'll give up

<--- YES ping-pong in response to successive app failures is exactly
what I'm after. See mods below:


I CHANGED STICKINESS VALUES:

<nvpair id="cib-bootstrap-options-default_resource_stickiness"
name="default_resource_stickiness" value="10"/>
<nvpair id="cib-bootstrap-options-default_resource_failure_stickiness"
name="default_resource_failure_stickiness" value="100"/>


I ADDED rsc_location CONSTRAINTS <-- DID I DO THIS RIGHT?????????

no, you only specified scores for one node

<------- QUESTION #1
IS IS OK TO APPLY rsc_location with rsc_colocation CONSTRAINTS
<------- QUESTION #2
ANY IDEAS WHY I'M NOT GETTING ONLY GETTING RESTART BEHAVIOR AND NOT
PING-PONG BEHAVIOR  <------- QUESTION #3

<constraints>
  <rsc_colocation id="HaGrpColocation" from="IpGrp" to="SrGrp"
score="INFINITY"/>
  <rsc_colocation id="App1GrpColocation" from="SrGrp" to="CapGrp"
score="INFINITY"/>
  <rsc_colocation id="App2GrpColocation" from="CapGrp" to="SfcGrp"
score="INFINITY"/>
  <rsc_location id="run_HaGrp" rsc="HaGrp"/>
  <rule id="pref_run_HaGrp" score="10000"/>
  <expression attribute="#uname" operation="eq" value="ha-gmp2"
id="6a0136c9-ed70-4d85-bbcf-6847d2ef2ddc"/>
  <rsc_location id="run_App1Grp" rsc="App1Grp"/>
  <rule id="pref_run_App1Grp" score="10000"/>
  <expression attribute="#uname" operation="eq" value="ha-gmp2"
id="24f0effc-53bb-44ea-bfad-79397d89549a"/>
  <rsc_location id="run_App2Grp" rsc="App2Grp"/>
  <rule id="pref_run_App2Grp" score="10000"/>
  <expression attribute="#uname" operation="eq" value="ha-gmp2"
id="0b4ad49c-9082-4fe9-8808-ff54f0f0b447"/>
</constraints>


HERE'S THE WHOLE CIB.XML FILE:

 <cib have_quorum="true" admin_epoch="0" epoch="2" num_updates="53"
generated="true" ccm_transition="2" num_peers="2"
cib_feature_revision="1.3"
dc_uuid="bd0ed1e3-0544-4bab-ae96-954bbeb53331" cib-last-written="Thu Mar
29 15:42:53 2007">
   <configuration>
     <crm_config>
       <cluster_property_set id="cib-bootstrap-options">
         <attributes>
           <nvpair id="cib-bootstrap-options-default_action_timeout"
name="default_action_timeout" value="15s"/>
           <nvpair id="cib-bootstrap-options-symmetric_cluster"
name="symmetric_cluster" value="true"/>
           <nvpair id="cib-bootstrap-options-stonith_action"
name="stonith_action" value="reboot"/>
           <nvpair id="cib-bootstrap-options-stop_orphan_resources"
name="stop_orphan_resources" value="true"/>
           <nvpair id="cib-bootstrap-options-stop_orphan_actions"
name="stop_orphan_actions" value="true"/>
           <nvpair id="cib-bootstrap-options-remove_after_stop"
name="remove_after_stop" value="true"/>
           <nvpair id="cib-bootstrap-options-is_managed_default"
name="is_managed_default" value="true"/>
           <nvpair id="cib-bootstrap-options-short_resource_names"
name="short_resource_names" value="true"/>
           <nvpair
id="cib-bootstrap-options-default_resource_stickiness"
name="default_resource_stickiness" value="10"/>
           <nvpair
id="cib-bootstrap-options-default_resource_failure_stickiness"
name="default_resource_failure_stickiness" value="100"/>
           <nvpair id="cib-bootstrap-options-startup_fencing"
name="startup_fencing" value="true"/>
           <nvpair name="stonith_enabled"
id="cib-bootstrap-options-stonith_enabled" value="false"/>
           <nvpair id="cib-bootstrap-options-no_quorum_policy"
name="no_quorum_policy" value="ignore"/>
           <nvpair id="cib-bootstrap-options-pe-input-series-max"
name="pe-input-series-max" value="200"/>
           <nvpair id="cib-bootstrap-options-pe-error-series-max"
name="pe-error-series-max" value="-1"/>
           <nvpair id="cib-bootstrap-options-pe-warn-series-max"
name="pe-warn-series-max" value="400"/>
           <nvpair id="cib-bootstrap-options-last-lrm-refresh"
name="last-lrm-refresh" value="1175182973"/>
         </attributes>
       </cluster_property_set>
     </crm_config>
     <nodes>
       <node id="bd0ed1e3-0544-4bab-ae96-954bbeb53331" uname="ha-gmp1"
type="normal"/>
       <node id="337eb755-7416-4172-9e2e-9e0d8bfa472d" uname="ha-gmp2"
type="normal"/>
     </nodes>
     <resources>
       <group id="IpGrp">
         <primitive id="HaIp" class="ocf" type="IPaddr"
provider="heartbeat">
           <instance_attributes id="HaIpAttr">
             <attributes>
               <nvpair name="ip" value="172.18.3.6"
id="afdeba12-8591-480c-b3b9-3f7eacb0a13a"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </group>
       <group id="SrGrp">
         <primitive id="SrApp" class="ocf" type="srctrl"
provider="ARINC">
           <operations>
             <op id="SrMon" name="monitor" interval="20s"
timeout="30s"/>
           </operations>
           <instance_attributes id="SrAttr">
             <attributes>
               <nvpair id="SrTargetRole" name="target_role"
value="started"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </group>
       <group id="CapGrp">
         <primitive id="CapApp" class="ocf" type="capctrl"
provider="ARINC">
           <operations>
             <op id="CapMon" name="monitor" interval="20s"
timeout="30s"/>
           </operations>
           <instance_attributes id="CapAttr">
             <attributes>
               <nvpair id="CapTargetRole" name="target_role"
value="started"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </group>
       <group id="SfcGrp">
         <primitive id="SfcApp" class="ocf" type="sfcctrl"
provider="ARINC">
           <operations>
             <op id="SfcMon" name="monitor" interval="20s"
timeout="30s"/>
           </operations>
           <instance_attributes id="SfcAttr">
             <attributes>
               <nvpair id="SfcTargetRole" name="target_role"
value="started"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </group>
     </resources>
     <constraints>
       <rsc_colocation id="HaGrpColocation" from="IpGrp" to="SrGrp"
score="INFINITY"/>
       <rsc_colocation id="App1GrpColocation" from="SrGrp" to="CapGrp"
score="INFINITY"/>
       <rsc_colocation id="App2GrpColocation" from="CapGrp" to="SfcGrp"
score="INFINITY"/>
       <rsc_location id="run_HaGrp" rsc="HaGrp"/>
       <rule id="pref_run_HaGrp" score="10000"/>
       <expression attribute="#uname" operation="eq" value="ha-gmp2"
id="6a0136c9-ed70-4d85-bbcf-6847d2ef2ddc"/>
       <rsc_location id="run_App1Grp" rsc="App1Grp"/>
       <rule id="pref_run_App1Grp" score="10000"/>
       <expression attribute="#uname" operation="eq" value="ha-gmp2"
id="24f0effc-53bb-44ea-bfad-79397d89549a"/>
       <rsc_location id="run_App2Grp" rsc="App2Grp"/>
       <rule id="pref_run_App2Grp" score="10000"/>
       <expression attribute="#uname" operation="eq" value="ha-gmp2"
id="0b4ad49c-9082-4fe9-8808-ff54f0f0b447"/>
     </constraints>
   </configuration>
 </cib>
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to