migration-threshold=N
for a resource and it will migrate to a new node after N failures. There is no threshold defined by default. To determine the resource's current failure status and limits, use crm_mon --failcounts
crm_failcount
(after hopefully first fixing the failure's cause). However it is possible to expire them by setting the resource's failure-timeout
option.
migration-threshold=2
and failure-timeout=60s
would cause the resource to move to a new node after 2 failures and potentially allow it to move back (depending on the stickiness and constraint scores) after one minute.
INFINITY
and thus always cause the resource to move immediately.
[9] The naming of this option was unfortunate as it is easily confused with true migration, the process of moving a resource from one node to another without stopping it. Xen virtual guests are the most common example of resources that can be migrated in this manner.