[ClusterLabs] Custom resource agent

Sim simvirus at gmail.com
Tue Jul 14 06:06:49 EDT 2020


Hi Oyvind,
thank you for reply!

Iinteresting, but not simple...
I did some tests with ocf_heartbeat_anything and the simple start and stop
seems to work correctly.
Would it be possible to create two opposite "services" with this ocf?

Example:

NODE1 (Master)   service-master (START) & service-slave (STOP)
NODE2 (Slave)     service-master (STOP) & service-slave (START)

"Service-master" puts down "service-slave" and does the opposite in the
second node.

Regards
Sim

Il giorno mar 14 lug 2020 alle ore 10:41 Oyvind Albrigtsen <
oalbrigt at redhat.com> ha scritto:

> 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/
>
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20200714/ab296778/attachment.htm>


More information about the Users mailing list