[Pacemaker] Resource stickiness during working hours
Dejan Muhamedagic
dejanmm at fastmail.fm
Wed Oct 7 10:45:03 EDT 2009
Hi,
On Wed, Oct 07, 2009 at 01:58:30PM +0200, Andrew Beekhof wrote:
> On Fri, Sep 25, 2009 at 11:21 AM, Johan Verrept <Johan.Verrept at able.be> wrote:
> >
> > Hi,
> >
> > I have seen this mentioned in the "Configuration Explained" manual and
> > it listed the rules to use, but it didn't specify how to actually apply
> > that rule to the stickiness attribute. I have looked with google and
> > through the crm help but that didn't do me much good either.
>
> > Can I create this with the crm command and how?
>
> I'm not sure. Dejan would know.
Sorry, no rules yet in meta-attributes. Though I didn't look into
it yet, given the language spec, it may be difficult to devise.
Thanks,
Dejan
> > If not, how do I go about it?
>
> Copy the following xml to blah.xml.
>
> <configuration>
> <rsc_defaults>
> <meta_attributes id=”core-hours” score=”2”>
> <rule id="core-hour-rule">
> <date_expression id="nine-to-five-Mon-to-Fri" operation="date_spec">
> <date_spec id=”nine-to-five-Mon-to-Fri-spec” hours="9-17"
> days="1-5"/>
> </date_expression>
> </rule>
> <nvpair id="core-stickiness" name="resource-stickiness" value="INFINITY"/>
> </meta_attributes>
> <meta_attributes id=”after-hours” score=”1” >
> <nvpair id="after-stickiness" name="resource-stickiness" value="0"/>
> </instance_attributes>
> </rsc_defaults>
> </configuration>
>
> Then run: cibadmin -M --xml-file blah.xml
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
More information about the Pacemaker
mailing list