[ClusterLabs] Integrate external alerts with pcs cluster

Ken Gaillot kgaillot at redhat.com
Mon Apr 13 09:57:01 EDT 2020


On Sat, 2020-04-11 at 11:04 +0000, Ajay Srivastava wrote:
> 
> Hi,
> In my environment I have a pacemaker cluster running which has
> various software services as resource agents.
> These services have dependency on some hardware components. There is
> a service which monitors the hardware and sends alerts if anything is
> wrong with the hardware.
> 
> My plan is to add a resource agent for each hardware component with
> proper dependencies and fail this resource agent if I get a critical
> alert from hardware monitoring service. Please note that I do not
> want to use monitor functionality of resource agent as there is a
> service which is already doing same thing. I have two queries here -
> 1) Does the approach look good ? Is there a better way to implement
> it in pacemaker cluster ?

If I understand correctly, you're using the "normal" resource agent to
start and stop the resource, but you want monitors to happen only via
the external service. In that case your approach is good.

However you still need the probe action to work. The normal agent's
monitor should still be able to successfully detect running or not
running when run once. Pacemaker will do this on every node before
deciding whether to start the resource.

> 2) I can find --fail option in crm_resource but not in pcs cli. What
> would be the equivalent command in pcs as I am using pcs cli to
> configure the cluster ?

That's crm_resource only.

> 
> 
> Regards,
> Ajay
-- 
Ken Gaillot <kgaillot at redhat.com>



More information about the Users mailing list