[Pacemaker] Resource Agents in OpenVZ containers

Andrew Beekhof andrew at beekhof.net
Tue Feb 18 00:42:58 UTC 2014


On 17 Feb 2014, at 5:38 pm, emmanuel segura <emi2fast at gmail.com> wrote:

> example: colocation ipwithpgsql inf: virtualip psql:Master

Ah, so colocating with the host running the vm with the master inside it.
Thats not something we can do yet, sorry.

> 
> 
> 2014-02-17 6:25 GMT+01:00 Tomasz Kontusz <tomasz.kontusz at gmail.com>:
> 
> 
> Andrew Beekhof <andrew at beekhof.net> napisał:
> >
> >On 16 Feb 2014, at 6:53 am, emmanuel segura <emi2fast at gmail.com> wrote:
> >
> >> i think, if you use pacemaker_remote inside the container, the
> >container will be a normal node of you cluster, so you can run pgsql +
> >vip in it
> >>
> >>
> >> 2014-02-15 19:40 GMT+01:00 Tomasz Kontusz <tomasz.kontusz at gmail.com>:
> >> Hi
> >> I'm setting up a cluster which will use OpenVZ containers for
> >separating resource's environments.
> >> So far I see it like this:
> >>  * each node runs Pacemaker
> >>  * each container runs pacemaker_remote, and one kind of resource
> >(but there might be multiple containers providing the same resource)
> >>  * containers are started with VirtualDomain agent (I had to patch it
> >a bit to work around libvirt/OpenVZ issue),
> >>    each container resource is node-specific (and constrained to only
> >run on the right node)
> >>
> >> The problem I have is with running pgsql database with virtual IP in
> >such setup.
> >> I want to have IPaddr2 resource started on the node that holds
> >container with current pgsql master.
> >> How can I go about achieving something like that?
> >
> >Colocate the IP with the OpenVZ VM?
> 
> Won't work, because the containers are normally all running (psql01 on node 01, psql02 on node 02), and I want to collocate with current master.
> 
> >> Is the idea of using pacemaker_remote in such setup sensible?
> >>
> >> --
> >> Tomasz Kontusz
> >>
> >> _______________________________________________
> >> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> >> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >>
> >> Project Home: http://www.clusterlabs.org
> >> Getting started:
> >http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> >> Bugs: http://bugs.clusterlabs.org
> >>
> >>
> >>
> >> --
> >> esta es mi vida e me la vivo hasta que dios quiera
> >> _______________________________________________
> >> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> >> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >>
> >> Project Home: http://www.clusterlabs.org
> >> Getting started:
> >http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> >> Bugs: http://bugs.clusterlabs.org
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> >http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >
> >Project Home: http://www.clusterlabs.org
> >Getting started:
> >http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> >Bugs: http://bugs.clusterlabs.org
> 
> --
> Wysłane za pomocą K-9 Mail.
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
> 
> 
> 
> -- 
> esta es mi vida e me la vivo hasta que dios quiera
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140218/e5287fc5/attachment-0004.sig>


More information about the Pacemaker mailing list