Hi Fabrice, you simply don't need 2 jcr repositories, in a cluster all nodes tipically use the same jcr backend. See http://wiki.apache.org/jackrabbit/Clustering
fabrizio On Thu, Jun 28, 2012 at 10:28 AM, Fabrice Lazzari (via Magnolia Forums) <[email protected]> wrote: > Hi everybody, > > We're currently developing a system where we need to save some user generated > data in the JCR (Data module). We didn't think about that at the very > beginning but we now face the problem that our system will be deployed in > cluster mode. That means we'll have 2 application servers, 2 JCR instances, > and of course 2 data modules ! > > The problem will come if a user first logs in on the first node, his data are > then saved in the first JCR data module. If he then comes back in a second > session and is forwarded to the second app server / data module by the load > balancer, he'll not get access to his data saved on the first node. > > I think a standard solution to this problem is to have the data module > externally hosted on a third JCR instance, with both app servers using it to > save the user generated data. Sounds not bad, but the problem is it generates > more costs on the operating side. > > We've imagined it may exist a data replication solution, where the user > generated data would be replicated from one JCR instance to an other. > Probably not a good idea to implement it on a pure DB-level since the table > structure of the JCR is not that readable, but maybe the JCR itself has such > a functionality ? Has someone already experienced something this way ? > > Or maybe somebody would have any other idea ? > > Thanks in advance ! > > -- > Context is everything: > http://forum.magnolia-cms.com/forum/thread.html?threadId=786bca43-b269-48eb-abe7-8bac1f431653 > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing-lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
