I'm running HB 2.1.4. Does the following resource location  
constraint work?

        <rsc_location id="run_fsN" rsc="fsN">
          <rule id="pref_run_fsN" score="100">
            <expression attribute="#uname" operation="eq" value="fsN"  
id="run_fsN_expression"/>
          </rule>
          <rule id="balance_run_fsN" score="80" score_attribute="loadd">
            <expression attribute="#uname" operation="ne" value="fsN"  
id="balance_run_fsN_expression"/>
          </rule>
        </rsc_location>

   where 'loadd' is an node instance variable.

        <transient_attributes id="0edd3c83-707f-4f61-85dc-2571e9a389e6">
          <instance_attributes  
id="status-0edd3c83-707f-4f61-85dc-2571e9a389e6">
            <attributes>
              <nvpair id="status-0edd3c83-707f-4f61-85dc-2571e9a389e6- 
pingd" name="pingd" value="800"/>
              <nvpair id="status-0edd3c83-707f-4f61-85dc-2571e9a389e6- 
loadd" name="loadd" value="-20"/>
              <nvpair id="status-0edd3c83-707f-4f61-85dc-2571e9a389e6- 
probe_complete" name="probe_complete" value="true"/>
            </attributes>
          </instance_attributes>
        </transient_attributes>

   I want 'loadd' to modulate the score="80" part so machines with the  
"higher" load will subtract more
from the score. I'm using attrd_updater to update the 'loadd' attribute.

thanks,
kevin
_______________________________________________
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