[Pacemaker] racing crm commands... last write wins?

Brian J. Murrell brian at interlinx.bc.ca
Thu Apr 11 08:04:08 EDT 2013


On 13-04-11 07:37 AM, Brian J. Murrell wrote:
> 
> In exploring all options, how about pcs?  Does pcs' "resource create
> ..." for example have the same read+modify+replace problem as crm
> configure or does pcs resource create also only send proper fragments to
> update just the part of the CIB it's operating on?

Having just cracked pcs open, it doesn't seem to.  It seems to create an
XML string which it then applies to the CIB with:

cibadmin -o resources -C -X $xml_resource_string

IIUC, that is compatible with my use-case of multiple nodes in the
cluster creating resources concurrently and not having last-write-wins
problems, correct?

Usually the multiple nodes are creating separate resources and in any
case where multiple nodes are creating the same resource (or adjusting
some global parameter), it's configuration is the same from all writers
so last-write-wins there doesn't matter, yes?

Cheers,
b.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130411/ca0d8486/attachment-0003.sig>


More information about the Pacemaker mailing list