[Pacemaker] master/slave or unique clones
Florian Haas
florian.haas at linbit.com
Fri May 28 12:12:12 UTC 2010
On 2010-05-28 14:01, Vadym Chepkov wrote:
> Hi,
>
> I want to convert our home-made application to be managed by pacemaker cluster.
> The way it works now: application starts, discovers all IPs configured on the system and if it sees preconfigured IP it becomes "master" and will serve configuration requests,
> if not - "node" and will try to connect to "master" node to get configuration data. Other then that, application instances are absolutely the same on all "cluster" servers and
> they start collecting their own unique data.
>
> I started to write a resource agent in "stateful" manner, but the problem is - I can't promote or demote and the documentation says : application has to start in "slave" mode,
> which I can't supply. So I thought of unique clones instead, but I need to create collocation/ordering constraint with IP for the clone:0 and again documentation says I shouldn't do it.
>
> As a workaround I could probably create a separate "master" instance and clones with clone-max=node-1 and create -INFINITY collocation constraint between them, but it's more of a hack it seems.
Show us your RA and I'm sure quite a few people will come up with
helpful suggestions.
Cheers,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100528/aad616d0/attachment-0004.sig>
More information about the Pacemaker
mailing list