[Enterprise Plone] multisite plone with asynchronous data replication

6 views
Skip to first unread message

fredFR

unread,
May 12, 2010, 7:22:31 AM5/12/10
to enter...@lists.plone.org

I have 3 sites with non permanent private WAN link. On each site, I will
install a plone's server for internal CMS services. So, in each site, users
have normal write access locally.
Every night I want to schedule a replication between all 3 plone's server to
synchronize all data. It's very similar as Lotus Domino replication task.
Solution as ZRS not permit this function, and I do not found any information
in the web for Plone !

Question 1)
How can I synchronize all data between sites each night ?

Question 2)
If a data object will be modify at the same time in two sites on the same
day, how can I manage the modify conflict?

Thanks for your help.

--
View this message in context: http://plone.293351.n2.nabble.com/multisite-plone-with-asynchronous-data-replication-tp5040652p5040652.html
Sent from the Enterprise mailing list archive at Nabble.com.
_______________________________________________
Enterprise mailing list
Enter...@lists.plone.org
http://lists.plone.org/mailman/listinfo/enterprise

--
You received this message because you are subscribed to the Google Groups "Plone enterprise" group.
To post to this group, send email to plone-en...@googlegroups.com.
To unsubscribe from this group, send email to plone-enterpri...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/plone-enterprise?hl=en.

Andreas Jung

unread,
May 12, 2010, 7:27:11 AM5/12/10
to fredFR, enter...@lists.plone.org


2010/5/12 fredFR <leg...@free.fr>


I have 3 sites with non permanent private WAN link. On each site, I will
install a plone's server for internal CMS services. So, in each site, users
have normal write access locally.
Every night I want to schedule a replication between all 3 plone's server to
synchronize all data. It's very similar as Lotus Domino replication task.
Solution as ZRS not permit this function, and I do not found any information
in the web for Plone !

Question 1)
How can I synchronize all data between sites each night ?

There is no solution available that would merge the content from different Zope/Plone sites.

-aj


fredFR

unread,
May 12, 2010, 7:30:25 AM5/12/10
to enter...@lists.plone.org

Matt Hamilton

unread,
May 12, 2010, 7:54:19 AM5/12/10
to fredFR, enter...@lists.plone.org

On 12 May 2010, at 12:22, fredFR wrote:

>
> I have 3 sites with non permanent private WAN link. On each site, I will
> install a plone's server for internal CMS services. So, in each site, users
> have normal write access locally.
> Every night I want to schedule a replication between all 3 plone's server to
> synchronize all data. It's very similar as Lotus Domino replication task.
> Solution as ZRS not permit this function, and I do not found any information
> in the web for Plone !
>
> Question 1)
> How can I synchronize all data between sites each night ?

There is a product for zope called ZSyncer (http://plone.org/products/zsyncer) but I don't think it is maintained any more. It uses zope's import/export functionality to sync objects between sites. It is intended to work on just two sites, so I'm not sure how you could use it (or similar with 3 sites).

> Question 2)
> If a data object will be modify at the same time in two sites on the same
> day, how can I manage the modify conflict?


I guess that is a wider policy decision than just a Plone decision. Who's updates would you want to take priority over others? What if all 3 sites changed an object at the same time?

You could probably hook something up to use a distributed version control system such as git or mercurial to do the actual change tracking and merging. When you saved an object it would need to take the content of it and commit it to a local branch, then merge all those changes when the WAN link comes up.

So I think it would be possible, but certainly not something do-able straight out of the box. If your content types were very simple and you were versioning just the body of the content then it might make it a bit easier and an approach such as above might work. Plone has a very strong events system that would allow you to trigger events when an object is saved and then run some code to put those changes in some log that would then by synced later on... but again you'd need to roll your sleeves up and get stuck in.

-Matt

--
Matt Hamilton ma...@netsight.co.uk
Netsight Internet Solutions, Ltd. Business Vision on the Internet
http://www.netsight.co.uk +44 (0)117 9090901
Web Design | Zope/Plone Development and Consulting | Co-location | Hosting

Jean Jordaan

unread,
Mar 16, 2011, 11:51:57 PM3/16/11
to enter...@lists.plone.org
Links to look at:
http://plone.org/products/plone-multisite
http://plone.org/products/zsyncer

An approach to consider is for each site to have their own workspace folder,
which they update. After sync, all sites have all the content, but they only
create and edit content in their own folders. That way, conflicts don't
arise.

Then you can use collections to present content from all sites; e.g. a
/newsletters/ collection gathers newsletters from /site1/newsletters/ and
/site2/newsletters/

--
View this message in context: http://plone.293351.n2.nabble.com/multisite-plone-with-asynchronous-data-replication-tp5040652p6179644.html


Sent from the Enterprise mailing list archive at Nabble.com.
_______________________________________________
Enterprise mailing list
Enter...@lists.plone.org

https://lists.plone.org/mailman/listinfo/enterprise

Jean Jordaan

unread,
Mar 17, 2011, 12:00:01 AM3/17/11
to enter...@lists.plone.org
Looks like the up to date link for ZSyncer is
http://pypi.python.org/pypi/Products.ZSyncer

Release 1.0.3 was made on 2010-10-07.

--
View this message in context: http://plone.293351.n2.nabble.com/multisite-plone-with-asynchronous-data-replication-tp5040652p6179655.html

Reply all
Reply to author
Forward
0 new messages