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
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 ?
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.
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 .
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 ?
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.
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.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.