You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Chris Wilhite <ch...@gmail.com> on 2011/11/03 03:11:34 UTC
Replication Monitoring
Hello, I'm looking for a way to monitor a running replication.
Here is my scenario: A database must be replicated to a client, but I
would like to provide some visual feedback since the database is large.
The replication must be continuous.
I have successfully registered new documents arriving with the _changes
feed, also, I am able to see the that the replication is running by
polling the _tasks list (however the replication state does not change,
I assume this is because it is continuous).
Using the _changes feed is ok, but I would like to be able to provide a
way for the user to see how many documents are remaining, MB's to be
transferred etc. Is there a place where this data is reported?
Re: Replication Monitoring
Posted by Filipe David Manana <fd...@apache.org>.
More recently, for 'master'/trunk and branch 1.2.x, extra information
was added to /_active_tasks for replications. Example:
$ curl -s http://localhost:5984/_active_tasks
[
{
"pid":"<0.1303.0>",
"checkpointed_source_seq":17333,
"continuous":false,
"doc_write_failures":0,
"docs_read":17833,
"docs_written":17833,
"missing_revisions_found":17833,
"progress":3,
"revisions_checked":17833,
"source":"http://fdmanana.couchone.com/indexer_test/",
"source_seq":551202,
"started_on":1316229471,
"target":"indexer_test",
"type":"replication",
"updated_on":1316230082
}
]
regards,
On Thu, Nov 3, 2011 at 3:51 PM, Chris Wilhite <ch...@gmail.com> wrote:
> Thanks, I will look into this.
>
> On 11/3/11 11:20 AM, Ryan Ramage wrote:
>>>
>>> Using the _changes feed is ok, but I would like to be able to provide a
>>> way
>>> for the user to see how many documents are remaining, MB's to be
>>> transferred
>>> etc. Is there a place where this data is reported?
>>>
>> I have not looked at this in a while, but here is something I had
>> written and that Filipe had answered the list as of Jul 14:
>>
>>>> One question, how can I get the progress of a one time replication? Is
>>>> there>> something on the _active_task line that I can use to inform the
>>>> user how>> long the replication will take (percent complete) ? Currently I
>>>> have to use>> an indeterminate progress bar.
>>>
>>> Look at the screenshot at:
>>>
>>> https://issues.apache.org/jira/secure/attachment/12483855/active_tasks_times.png
>>> This is the current state of subversion's trunk (1.2.0 will be cut from
>>> there eventually).
>
--
Filipe David Manana,
"Reasonable men adapt themselves to the world.
Unreasonable men adapt the world to themselves.
That's why all progress depends on unreasonable men."
Re: Replication Monitoring
Posted by Chris Wilhite <ch...@gmail.com>.
Thanks, I will look into this.
On 11/3/11 11:20 AM, Ryan Ramage wrote:
>> Using the _changes feed is ok, but I would like to be able to provide a way
>> for the user to see how many documents are remaining, MB's to be transferred
>> etc. Is there a place where this data is reported?
>>
> I have not looked at this in a while, but here is something I had
> written and that Filipe had answered the list as of Jul 14:
>
>>> One question, how can I get the progress of a one time replication? Is there>> something on the _active_task line that I can use to inform the user how>> long the replication will take (percent complete) ? Currently I have to use>> an indeterminate progress bar.
>> Look at the screenshot at:
>> https://issues.apache.org/jira/secure/attachment/12483855/active_tasks_times.png
>> This is the current state of subversion's trunk (1.2.0 will be cut from there eventually).
Re: Replication Monitoring
Posted by Ryan Ramage <ry...@gmail.com>.
> Using the _changes feed is ok, but I would like to be able to provide a way
> for the user to see how many documents are remaining, MB's to be transferred
> etc. Is there a place where this data is reported?
>
I have not looked at this in a while, but here is something I had
written and that Filipe had answered the list as of Jul 14:
>> One question, how can I get the progress of a one time replication? Is there>> something on the _active_task line that I can use to inform the user how>> long the replication will take (percent complete) ? Currently I have to use>> an indeterminate progress bar.
> Look at the screenshot at:
> https://issues.apache.org/jira/secure/attachment/12483855/active_tasks_times.png
> This is the current state of subversion's trunk (1.2.0 will be cut from there eventually).