cancel
Showing results for 
Search instead for 
Did you mean: 
hvonderheyde
Mission Specialist
Mission Specialist
  • 3,715 Views

How to create a custom pacemaker application resource

Jump to solution

Hello,

does anyone know how to create a custom application resource like weblogic or mq series in pacemaker ?

As a comparison in veritas cluster server you have an application resource agent which is suitable for any application. You only have to provide start, stop and monitorscripts to create the resource. It looks like in pacemaker I have to create my own resource agent, right ? Or is there any other possiblity ?

Any help would be very much appreciated.

regards Hendrik

 

 

 

Labels (3)
2 Solutions

Accepted Solutions
hvonderheyde
Mission Specialist
Mission Specialist
  • 3,683 Views

Hello,

many thanks for your response!

I have tried this with systemd service and put it under pacemaker control. The stop and start is working fine but the cluster doesn't recognise when the qmanager is down. Is there any way to provide the systemd service a custom monitoring script ? 

View solution in original post

  • 3,402 Views

Hi

I'll help you within my knowledge.

 

pacemaker can configure custom resources by creating an lsb script.
Basically, start, monitor, and stop Fraction can be written in one script, stored in the /etc/init.d/ path, and then generated in the lsb method when registering resources.
If you check the official Redhat guide document, you'll see how to generate resources using the lsb method.

View solution in original post

4 Replies
Fran_Garcia
Starfighter Starfighter
Starfighter
  • 3,710 Views

You can just the systemd resource type. You need to develop a reguar systemd service that starts/stops/monitor you application as if it was regular systemd unit and have pacemaker manage it as required.

 

Some more details in https://access.redhat.com/solutions/7003531 .

hvonderheyde
Mission Specialist
Mission Specialist
  • 3,684 Views

Hello,

many thanks for your response!

I have tried this with systemd service and put it under pacemaker control. The stop and start is working fine but the cluster doesn't recognise when the qmanager is down. Is there any way to provide the systemd service a custom monitoring script ? 

  • 3,403 Views

Hi

I'll help you within my knowledge.

 

pacemaker can configure custom resources by creating an lsb script.
Basically, start, monitor, and stop Fraction can be written in one script, stored in the /etc/init.d/ path, and then generated in the lsb method when registering resources.
If you check the official Redhat guide document, you'll see how to generate resources using the lsb method.

will111
Cadet
Cadet
  • 3,292 Views

Hi,

You know in the pacemaker  there are two type of resources.

The first is lsb. That means some service file for systemd.

Another is ocf .  You create your ocf resource. Just to implement some function.Such as 

start、stop、monitor、validate、meta-data  funcitons.

Below is the typical ocf resource example:

https://github.com/ClusterLabs/resource-agents/blob/main/heartbeat/ocivip

 

At most time. I prefer the lsb. Cz this is more easy.

 

 

 

 

 

 

 

Join the discussion
You must log in to join this conversation.