[Pacemaker] Resource capacity limit

Yan Gao ygao at novell.com
Thu Nov 5 02:49:03 EST 2009


Hi,

Lars Marowsky-Bree wrote:
> On 2009-11-03T19:15:59, Yan Gao <ygao at novell.com> wrote:
> 
>> XML sample:
>> ..
>>     <nodes>
>>       <node id="yingying" type="normal" uname="yingying">
>>         <utilization id="nodes-yingying-utilization">
>>           <nvpair id="nodes-yingying-memory" name="memory" value="150"/>
>>           <nvpair id="nodes-yingying-cpu" name="cpu" value="1"/>
>>         </utilization>
>>       </node>
>>     </nodes>
>> ..
>>     <resources>
>>       <primitive class="ocf" id="Dummy0" provider="heartbeat" type="Dummy">
>>         <utilization id="Dummy0-utilization">
>>           <nvpair id="Dummy0-utilization-memory" name="memory" value="90"/>
>>           <nvpair id="Dummy0-utilization-cpu" name="cpu" value="1"/>
>>         </utilization>
>>       </primitive>
>>       <primitive class="ocf" id="Dummy1" provider="heartbeat" type="Dummy">
>>         <utilization id="Dummy1-utilization">
>>           <nvpair id="Dummy1-utilization-memory" name="memory" value="60"/>
>>           <nvpair id="Dummy1-utilization-cpu" name="cpu" value="1"/>
>>         </utilization>
>>       </primitive>
>>     </resources>
>> ..
>>
>> Please kindly review it...
>> Any suggestions are appreciated!
> 
> I think this is exactly what we need. Great job!
> 
> Code looks good too.
> 
> Andrew?
> 
> 
> For added kicks, which may be something Andrew can add more readily, I
> wonder if utilization should also be subject to time-based evaluation.
> Think of a database needing more horsepower on weekdays - but perhaps
> that is something that should wait until dynamic load balancing
> happens.
As the "unpack_instance_attributes()" function which is exploited already
considers the rules of attributes sets. So we could add rules contain
date_expressions for an "utilization" to achieve that. And yes, I've tested
it.

Thanks,
  Yan
-- 
ygao at novell.com
Software Engineer
China Server Team, OPS Engineering

Novell, Inc.
Making IT Work As One™




More information about the Pacemaker mailing list