[Pacemaker] on fail standby with migration-threshold

Andrew Beekhof andrew at beekhof.net
Tue Feb 16 20:21:28 UTC 2010


On Tue, Feb 16, 2010 at 12:41 PM,  <rvm at free.fr> wrote:
> Hi all,
>
> I'm trying to have this configuration on my 2 nodes test cluster :
> * After two failures on a resource, standby the node and move the resource away. In fact this :
>
> primitive APACHE ocf:me:apache \
>        params url="http://localhost/server-status" \
>        op monitor interval="10s" timeout="30s" \
>        meta target-role="Started" migration-threshold="2" on-fail="standby"
>
> With this conf, the node goes directly in standby mode...

Yeah, that would be expected.
Good idea for an enhancement though... feel like creating a bugzilla entry?
   http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

>
> or if it's impossible :
> * After two failures on a resource, move the resource away and _never_ go back even if the new node fails.
> => colocation ?

Just what you have (without the on-fail setting) should be sufficient for that.




More information about the Pacemaker mailing list