Hi, On Mon, Jun 15, 2009 at 03:49:38PM -0500, Kevin Harms wrote: > > 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">
Can't recall very well, but I think that you can have either score_attribute or score, not both. > <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. Why do you need that score of 80? It's just a constant so you can account for it elsewhere if need be, right? Thanks, Dejan > thanks, > kevin > _______________________________________________ > 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
