[Pacemaker] Slowing down resource migration

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Jan 19 11:47:05 UTC 2011


Hi,

On Wed, Jan 19, 2011 at 11:22:23AM +0100, Robert van Leeuwen wrote:
> Hi,
> 
> Is it possible to slow down migration of resources?
> 
> In this case a large amount of resources (vservers) are managed by Pacemaker. 
> The resource is started within a second, however a resource will create a tremendous load on on the backend storage.
> 
> Is there anyway to configure Pacemaker to migrate a resource at a rate of 1 resource every 2 minutes e.g.?

No. But you could modify the resource agent and insert a 2 minute
sleep in the start action. If you do that, put the resource
agent under your own provider so it doesn't get overwritten on
update.

> batch-limit will stop multiple resource migration processing in parallel but can you set the interval between batch-limit?

There's also a lrmd parameter called max-children which limits
the number of actions run in parallel on one node. The
batch-limit limits the number of cluster actions.

HTH,

Dejan

> Thanks,
> Robert van Leeuwen
> 
> _______________________________________________
> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker




More information about the Pacemaker mailing list