views:

43

answers:

0

Some background: on Linux HA, resources and groups have scores, i.e. score=(preference + stickness - failure stickness*fail counter). When a backup node has score greater than that of the current node, the resource will move to the backup node.

I need to check, for a given resource/node, if that score is negative.

It is easy to get fail counter. How do I get the rest of the items, or the resulting score

1) for a resource 2) for a group?

Thanks!