You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Michael Parker <mi...@gmail.com> on 2012/07/28 02:10:13 UTC
Continuous replication questions
Hi all,
Two quick questions about replication:
1. The CouchDB wiki says that CouchDB doesn’t remember continuous
replications over a server restart. Is this true even in CouchDB 1.2?
What's an easy way to make this happen, other than editing my init.d
script?
2. Is there any way at a glance to see where a node is continuously
replicating to? I think I've noticed that Futon > Replicator only
shows one-shot replications.
Thanks!
- Mike
Re: Continuous replication questions
Posted by Martin Hewitt <ma...@thenoi.se>.
Hi Michael,
If you create documents in the _replicator database [1] with continuous: true in the JSON object, they will persist across restarts.
If you load the Status page in Futon or view :5984/_active_tasks you'll see the continuous tasks' statuses.
Martin
[1] http://wiki.apache.org/couchdb/Replication#Replicator_database
On Saturday, 28 July 2012 at 01:10, Michael Parker wrote:
> Hi all,
>
> Two quick questions about replication:
>
> 1. The CouchDB wiki says that CouchDB doesn’t remember continuous
> replications over a server restart. Is this true even in CouchDB 1.2?
> What's an easy way to make this happen, other than editing my init.d
> script?
>
> 2. Is there any way at a glance to see where a node is continuously
> replicating to? I think I've noticed that Futon > Replicator only
> shows one-shot replications.
>
> Thanks!
>
> - Mike
Re: Continuous replication questions
Posted by Alexander Shorin <kx...@gmail.com>.
Hi Michael!
Since 1.1.0 release there is awesome replicator[1] database that
handles such tasks. You could read more about at github gist[2]. To
see replication progress you could request /_active_tasks resource
(Futon > Status) - all information about replication nodes and it's
status will be there. For replication database you may also request
specific document about operation status (not progress).
[1] http://wiki.apache.org/couchdb/Replication#Replicator_database
[2] https://gist.github.com/832610
--
,,,^..^,,,
On Sat, Jul 28, 2012 at 4:10 AM, Michael Parker
<mi...@gmail.com> wrote:
> Hi all,
>
> Two quick questions about replication:
>
> 1. The CouchDB wiki says that CouchDB doesn’t remember continuous
> replications over a server restart. Is this true even in CouchDB 1.2?
> What's an easy way to make this happen, other than editing my init.d
> script?
>
> 2. Is there any way at a glance to see where a node is continuously
> replicating to? I think I've noticed that Futon > Replicator only
> shows one-shot replications.
>
> Thanks!
>
> - Mike