Comment 4 for bug 1312177

Revision history for this message
Dmitry Ilyin (idv1985) wrote :

Resource stickiness is the measure of how much a resource wants to stay where it is. Or you can think about it as a cost of resource movement to another server. If there is no stickness defined pacemaker will move any resource at will to achive what it thinks optimal placement is and it's usually pretty much random. Usually pacemaker doesn't move resources during the normal operation doing so only when cluster state changes.

If stickiness is defined resource will be moved only if there is a rule with more score then the stickness value that wants to move the resource. For example, colocation can have infinity score and it will be more important then any finite stickiness and resource will be moved. Or there could be colocation with negative infinity meaning that resources will never be together.

It's very common to set stickiness for every resource using resource-defaults because no one wants the resources to move around. Usually people set score to 100 like in CLuster From Scratch manual.

Setting stickiness to 1 for some resources? Why? Let's just set stickness using resource-defaults for all resources.