[ClusterLabs] Custom resource agent

Oyvind Albrigtsen oalbrigt at redhat.com
Tue Jul 14 04:40:53 EDT 2020


You should be able to make your custom agent by following this doc:
https://github.com/ClusterLabs/resource-agents/blob/master/doc/dev-guides/ra-dev-guide.asc

Oyvind

On 13/07/20 10:08 +0200, Sim wrote:
>Hi,
>I need to create a cluster with these characteristics:
>
>NODE1 (Master)
>NODE2 (Slave)
>
>Example sequence to moving the role from NODE1 to NODE2:
>
>- NODE1: stopped a process with "systemctl stop"
>- NODE1: executed a script with parameter "slave"
>- NODE1: executed again the process with "systemctl start"
>- NODE2: stopped a process with "systemctl stop"
>- NODE2: executed a script "master"
>- NODE2: executed again the process with "systemctl start"
>
>I only found ocf_heartbeat_anything but I don't know if it's right for me.
>Any suggestions?
>
>Regards
>Sim

>_______________________________________________
>Manage your subscription:
>https://lists.clusterlabs.org/mailman/listinfo/users
>
>ClusterLabs home: https://www.clusterlabs.org/



More information about the Users mailing list