<br><tt><font size=2>> > My environment consists of multiple servers
(~40), each with one or more<br>
> > cpu-cores. I have two application-types called A and B (services
like eg.<br>
> > apache), that each use one cpu core. A is mission critical, B
is optional.<br>
> > So what i want to express is that there should be 20 A's and
the remaining<br>
> > cpu's may be used by B's. When a node executing A's fails, it
is perfectly<br>
> > ok to shut down B's to make cpu cores available for A's to be
started.<br>
> ><br>
> > Any idea how to do this?<br>
> <br>
> In pacemaker resources have a meta_attribute "priority".
If there are not <br>
> enough nodes available ton run all resources the resources with higher
<br>
> priority are run.<br>
> <br>
> so make a clone of to start 20  times A. Resource A has a priority
<br>
> of 20. Make a clone of B with B having a priority of 10.</font></tt>
<br>
<br><tt><font size=2>Your suggestion is to do something like (xml totally
untested and for sure with syntax-errors.. :-)</font></tt>
<br>
<br><tt><font size=2><clone id="A" clone-max="20"
priority="20"></font></tt>
<br><tt><font size=2>        ...</font></tt>
<br><tt><font size=2></clone></font></tt>
<br><tt><font size=2><clone id="B clone-max="60" priority="10"></font></tt>
<br><tt><font size=2>        ...</font></tt>
<br><tt><font size=2></clone></font></tt>
<br>
<br><tt><font size=2>Right?</font></tt>
<br><tt><font size=2>But how do i constraint the sum of A and B's running
on one node to the number of cpu-cores available? </font></tt>
<br>
<br><tt><font size=2>best regards,</font></tt>
<br><tt><font size=2>Jens Braeuer</font></tt>