[ClusterLabs] Hawk vs pcs Web UI

2017-11-07 Thread David Kent
Hello,

What is the difference between Hawk and the pcs Web UI? (Why are there two
projects, not one? Are they targeting different use cases?)

I was surprised to see two Web UI implementations under the same
ClusterLabs umbrella. I assume there's a reason, but I can't find it. I'm
running Pacemaker on RHEL, so the pcs Web UI works out of the box. Hawk
looks like it could run on RHEL with a little work building from source,
but it's been tricky. I'm trying to figure out if it's worth the time, and
what I might be missing out on.

Thanks,
David
___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


[ClusterLabs] How to stop resource after N failures?

2017-10-27 Thread David Kent
Hello,

Is there any way to configure a pacemaker cluster so that a resource will
restart N times and then stop?

This is essentially a mix of migration-threshold and on-failure=stop. Let
me describe my setup and what I've tried.

My cluster is a set of independent apps sharing a VIP (all apps are
co-located with the VIP). If an app fails, I want to try a restart since
the issue might have been ephemeral. For safety, I don't want to keep
restarting indefinitely; three attempts is a reasonable max. I also don't
want one app to cause everything (VIP and all apps) to move. This would
interrupt all established connections. It makes more sense the leave the
one app down and let the working apps stay put.

If I use on-failure=stop, Pacemaker won't attempt a restart. If I use
migration-threshold, one app failing causes all apps and the VIP to move.
I've read through all the documentation, man pages, and message boards I
can find, but I don't see a solution. Any ideas? Is this setup possible in
Pacemaker or do I need to pick between on-failure=stop and
migration-threshold=3?
___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org