Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This seems like a simple question, but one I can't seem to find the answer for despite going over the pacemaker documentation multiple times.

I've got corosync set up with pacemaker to share a virtual IP. All I want to do is to set a timeout value before the backup node takes over the resource. With network outages of <1-2 minutes I'd like pacemaker to just continue on as normal instead of triggering failover, but switch it over if the outage is over a certain number.

There is a timeout for a resource - but this seems to be a the timeout waiting for the resource to start, not for the cluster as a whole.

share|improve this question

1 Answer 1

It sounds like migration-threshold is what you're looking for.

Assumming that you have a resource which is setting op monitor interval to 20s:

primitive p_foo ocf:heartbeat:foo \
    params ...
    op monitor interval="20s"

and you want it doesn't migrate to a new node within 1 minute, so you should set migration-threshold to 3:

primitive p_foo ocf:heartbeat:foo \
    params ...
    op monitor interval="20s"
    meta target-role="Started" migration-threshold="3"
share|improve this answer
1  
At the moment I've got corosync with a 'token' of 4 minutes, which seems to do what I want. Assuming that works fine, would this any better? –  user705142 Aug 13 '12 at 0:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.