Thanks Ken.We realized that agent's monitor still needs to be implemented.
So, we are implementing a mechanism of sending fail/restore events from
external monitoring service to the resource agent.From: Ken Gaillot
<[email protected]>Sent: Mon, 13 Apr 2020 19:31:19To: Cluster Labs -
All topics related to open-source clustering welcomed
<[email protected]>Subject: Re: [ClusterLabs] Integrate external
alerts with pcs clusterOn 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 ser
vice. 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 tostart and stop the
resource, but you want monitors to happen only viathe external service. In that
case your approach is good.However you still need the probe action to work. The
normal agent'smonitor should still be able to successfully detect running
or notrunning when run once. Pacemaker will do this on every node
beforedeciding 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 <[email protected]>
_______________________________________________Manage your
subscription:https://lists.clusterlabs.org/mailman/listinfo/usersClusterLabs
home: https://www.clusterlabs.org/
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users
ClusterLabs home: https://www.clusterlabs.org/