Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

How to put minutes in time based rule

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


agrawal.tech at gmail

Nov 10, 2009, 2:50 AM

Post #1 of 2 (503 views)
Permalink
How to put minutes in time based rule

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 .


abhishek
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


andrew at beekhof

Nov 16, 2009, 6:27 AM

Post #2 of 2 (438 views)
Permalink
Re: How to put minutes in time based rule [In reply to]

On Tue, Nov 10, 2009 at 11:50 AM, abhishek agrawal
<agrawal.tech [at] gmail> 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
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.