You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Simon Metson <si...@cloudant.com> on 2012/08/22 16:53:32 UTC

Re: bidirectional replication

(switching to user@)

Make two requests, on to copy from A to B, the other to go from B to A. http://wiki.apache.org/couchdb/Replication might help. 


On Wednesday, 22 August 2012 at 15:02, Maria Catena Pitrella wrote:

> How can I make bidirectional replication using HTTP Request? Thank you!
> 
> 



Re: bidirectional replication

Posted by Andrey Kuprianov <an...@gmail.com>.
PS - Pull is also more secure, as you do not have to open inbound ports.

On Wed, Aug 22, 2012 at 11:49 PM, CGS <cg...@gmail.com> wrote:

> ...additionally, note that there are two types of replications, push and
> pull for two distinct servers (it makes no sense this definition for one
> server), depending on where the replication task is registered. Choose the
> most suitable for your project details:
>
> POST ServerA/_replicate {"source":"DbA","target":"ServerB/DbB"|,options}
> POST ServerB/_replicate {"source":"ServerA/DbA","target":"DbB"|,options}
>
> but, from my personal experience, the pull replication works better. I
> might be wrong, though (I haven't used replication in 1.2.0, so, my info
> may be outdated).
>
> You can see the replications via ServerA/_utils/status.html (or ServerB).
>
> CGS
>
>
>
>
> On Wed, Aug 22, 2012 at 4:53 PM, Simon Metson <si...@cloudant.com> wrote:
>
> > (switching to user@)
> >
> > Make two requests, on to copy from A to B, the other to go from B to A.
> > http://wiki.apache.org/couchdb/Replication might help.
> >
> >
> > On Wednesday, 22 August 2012 at 15:02, Maria Catena Pitrella wrote:
> >
> > > How can I make bidirectional replication using HTTP Request? Thank you!
> > >
> > >
> >
> >
> >
>

Re: bidirectional replication

Posted by CGS <cg...@gmail.com>.
...additionally, note that there are two types of replications, push and
pull for two distinct servers (it makes no sense this definition for one
server), depending on where the replication task is registered. Choose the
most suitable for your project details:

POST ServerA/_replicate {"source":"DbA","target":"ServerB/DbB"|,options}
POST ServerB/_replicate {"source":"ServerA/DbA","target":"DbB"|,options}

but, from my personal experience, the pull replication works better. I
might be wrong, though (I haven't used replication in 1.2.0, so, my info
may be outdated).

You can see the replications via ServerA/_utils/status.html (or ServerB).

CGS




On Wed, Aug 22, 2012 at 4:53 PM, Simon Metson <si...@cloudant.com> wrote:

> (switching to user@)
>
> Make two requests, on to copy from A to B, the other to go from B to A.
> http://wiki.apache.org/couchdb/Replication might help.
>
>
> On Wednesday, 22 August 2012 at 15:02, Maria Catena Pitrella wrote:
>
> > How can I make bidirectional replication using HTTP Request? Thank you!
> >
> >
>
>
>