ZSyncerMute not 2-way ?
Hi, I have 2 Zopes here: Zope 2.5 under Win2k, on port 8080 as per InstallShield Zope 2.4.x under Linux (192.168.3.200) behind Apache/PCGI as /Zope/... I installed ZSyncer and ZSyncerMute on both. I created a /Marcio on both I added a ZSyncerMute object on both, with Id syncer2w (syncer 2-way) I went to the Linux Zope and added a PHParser object to /Marcio I went to my Win2k Zope and forced a sync with http://192.168.3.200/Zope/Marcio/syncer2w , said to sync /Marcio Instead of bringing the new PHP object to my Win2k Zope, it deleted the PHP object from tho Linux Zope. So, my question is: how do I specify a 2-way sync ? I want that new objects added to either ends be propagated to the other Zope, more like a peer-to-peer fashion rather than a master/slave copy. If that is not possible with the current ZSyncerMute, I wonder how people can use this in a 1-master & N-slave copies kind of environment, while updating the same subtree on the server. I mean, if you have N developers with Zope syncing their stuff say under /Zoo against a master Zope, how do you avoid stepping on each-other's toes ? I don't want to have to split the subtrees, one for each person. I'd like to sync a Twiki across multiple servers, where one is the central one. But at least new ZWiki pages added from different PCs should be propagated to the central server and then to the other PCs when they sync. This is basically like sync'ing your PalmPilot with your desktop. New entries can be added on either end, and when sync'ed will propagate just fine. thanks !! marcio
ZSyncer does not do this by default.
So, my question is: how do I specify a 2-way sync ? I want that new objects added to either ends be propagated to the other Zope, more like a peer-to-peer fashion rather than a master/slave copy.
You have to have a ZSyncer on either box anyway. Run a cron job or write a hook to automatically propogate between the two. Might be a useful little script actually... example scripts will be happily added to the distro.
If that is not possible with the current ZSyncerMute, I wonder how people can use this in a 1-master & N-slave copies kind of environment, while updating the same subtree on the server. I mean, if you have N developers with Zope syncing their stuff say under /Zoo against a master Zope, how do you avoid stepping on each-other's toes ?
You cant, it wasn't designed to do many to one for that exact reason. It is explicitly designed to for one to many. That configuration was a) not part of my original need and b) all the possible many to many permutations you could get yourself into made my head hurt. Its called CVS, I didn't want to recreate it in Zope objects. -- Andy McKay
participants (2)
-
Andy McKay -
Marcio Marchini