[Pacemaker] Solving a resource allocation problem

Andreas Mock andreas.mock at web.de
Thu Sep 19 10:12:31 UTC 2013


Hi Lars,

no you're not missing something. 
I just intermixed two acceptable solutions and
the way I asked for it.

So, for letting the resources stay where they are,
you're absolutly right.

For a solution where I like to push a certain resource
to the new node (this service interruption doesn't
hurt too much) while being sure that the other gets
started on the newly upcoming node I have to balance
the stickiness and negative constraint scores.
Therefore I would like to see the simulated scores.

Thank you for answering.

Best regards
Andreas Mock




-----Ursprüngliche Nachricht-----
Von: Lars Marowsky-Bree [mailto:lmb at suse.com] 
Gesendet: Donnerstag, 19. September 2013 11:08
An: The Pacemaker cluster resource manager
Betreff: Re: [Pacemaker] Solving a resource allocation problem

On 2013-09-19T10:20:07, Andreas Mock <andreas.mock at web.de> wrote:

> Hi all,
> 
> I need a hint how to solve a resource allocation problem
> on a two node cluster (pmck 1.1.11).
> 
> I have two resource blocks (some stacked resources colocation inf)
> which shall run on seperate nodes. I did this with a small negativ
> colocation constraint. This works so far.
> 
> But now I want to achieve the following. When one node is
> brought down all resources are moved correctly. But when I
> bring that node up again, than all resources which where
> on that node are pushed back because of that negative colocation.
> 
> I would like the cluster to leave the resources on that one node
> and manually migrate (rebalance) the resources avoiding another
> interrupt of service. 

Right, so your anti-colocation constraint is not actually a hard
requirement, you want it to be optional - scatter resources if possible,
but don't restart resources for it.

You can do this using the utilization feature,
placement-strategy="balanced" and resource-stickiness=inf.

Or am I missing something still?


Regards,
    Lars

-- 
Architect Storage/HA
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer,
HRB 21284 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde


_______________________________________________
Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org





More information about the Pacemaker mailing list