[ClusterLabs] question about equal resource distribution
deceiver.g at gmail.com
Fri Feb 17 02:58:06 EST 2017
Ilia Sokolinski <ilia at clearskydata.com> writes:
> Suppose I have a N node cluster where N > 2 running m*N resources. Resources don’t have preferred nodes, but since resources take RAM and CPU it is important to distribute them equally among the nodes.
> Will pacemaker do the equal distribution, e.g. m resources per node?
> If a node fails, will pacemaker redistribute the resources equally too, e.g. m * N/(N-1) per node?
> I don’t see any settings controlling this behavior in the documentation, but perhaps, pacemaker tries to be “fair” by default.
Yes, pacemaker tries to allocate resources evenly by default, and will
move resources when nodes fail in order to maintain that.
There are several different mechanisms that influence this behaviour:
* Any placement constraints in general influence where resources are
* You can set resource-stickiness to a non-zero value which determines
to which degree Pacemaker prefers to leave resources running where
they are. The score is in relation to other placement scores, like
constraint scores etc. This can be set for individual resources or
* If you have an asymmetrical cluster, resources have to be manually
allocated to nodes via constraints, see 
> Ilia Sokolinski
> Users mailing list: Users at clusterlabs.org
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
// Kristoffer Grönlund
// kgronlund at suse.com
More information about the Users