[Pacemaker] Antwort: Re: Constraining clones per node
Jens.Braeuer at rohde-schwarz.com
Jens.Braeuer at rohde-schwarz.com
Mon Nov 30 13:40:19 UTC 2009
> > My environment consists of multiple servers (~40), each with one or
more
> > cpu-cores. I have two application-types called A and B (services like
eg.
> > apache), that each use one cpu core. A is mission critical, B is
optional.
> > So what i want to express is that there should be 20 A's and the
remaining
> > cpu's may be used by B's. When a node executing A's fails, it is
perfectly
> > ok to shut down B's to make cpu cores available for A's to be started.
> >
> > Any idea how to do this?
>
> In pacemaker resources have a meta_attribute "priority". If there are
not
> enough nodes available ton run all resources the resources with higher
> priority are run.
>
> so make a clone of to start 20 times A. Resource A has a priority
> of 20. Make a clone of B with B having a priority of 10.
Your suggestion is to do something like (xml totally untested and for sure
with syntax-errors.. :-)
<clone id="A" clone-max="20" priority="20">
...
</clone>
<clone id="B clone-max="60" priority="10">
...
</clone>
Right?
But how do i constraint the sum of A and B's running on one node to the
number of cpu-cores available?
best regards,
Jens Braeuer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091130/5f871892/attachment-0002.htm>
More information about the Pacemaker
mailing list