[ClusterLabs] Antw: Interacting with Pacemaker from my code

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Tue Jul 16 02:03:43 EDT 2019

>>> Nishant Nakate <technonsquare at gmail.com> schrieb am 16.07.2019 um 05:37 in
<CANTAVSkfNnx=ZQv+UftaKs76Htk3VU+kO=bqHrOj4ssZx+Ou4A at mail.gmail.com>:
> Hi All,
> I am new to this community and HA tools. Need some guidance on my current
> handling pacemaker.
> For one of my projects, I am using pacekmaker for high availability.
> Following the instructions provided in setup document, I am able to create
> a new cluster with three nodes. Tested the failover and it works as
> expected. Now, I need to run our own code on this nodes. I am going to use
> Active-Pasive topology for our system architecture.
> I would like to know, how can I detect from my code if DC has changed ? So
> that tools running on new DC can take over the controll of application
> logic.

Why would you need that? crm_mon shows where ther DC is.

> Also, how to configure my processes (tools) as resources so that Pacemaker
> can make them HA.

You'll have to write an RA (resource agent) at least, but more importantly the application has the be designed for HA to be effective.

> Please let me know if you need any clarification or any other information.
> Thanks in advance !!!

More information about the Users mailing list