On Tue, Nov 10, 2009 at 11:50 AM, abhishek agrawal
<[email protected]> wrote:
> I was trying to define time based rule to stop a resource in a certain
> period. I want a granularity on a minute basis. like stopeed between
> 9-10.30 daily..
>
> for this there is no support of minutes in HA. i was trying fractional
> hours as following:
>
> <meta_attributes id="core-hours" score="10">
>          <rule id="core-hour-rule" score="100">
>            <date_expression id="myrule" operation="date_spec">
>              <date_spec id="daytime" hours="9-10.5"/>
>            </date_expression>
>          </rule>
>          <nvpair id="core-hour-role" name="target-role" value="stopped"/>
>   </meta_attributes>
>
>
>
> should it work ..Will 10.5 correspond to 10:30 .

No. But it would be a worthy feature request in bugzilla.
You could use two expressions (one with operation=gt the other with
lt) to achieve the desired result.
_______________________________________________
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