couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1266) Add stats field to _active_tasks
Date Tue, 30 Aug 2011 20:23:11 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094081#comment-13094081
] 

Paul Joseph Davis commented on COUCHDB-1266:
--------------------------------------------

Awesome.

Two comments:

1. I don't see a reason to expose the JSON in Futon. The JSON is surely for script consumption.
I was mulling over something similar to this and was thinking of replacing the current status
entry with JSON like you have and then Futon and other tools would just build the status string
client side. This would allow scripts to consume the same information without resorting to
string processing.

Also, I always found it quite annoying to be writing user facing text deep in the various
internals like view indexing or compaction.

2. I think it be a good idea for the stats to include the db name and view/design name when
appropriate.

> Add stats field to _active_tasks
> --------------------------------
>
>                 Key: COUCHDB-1266
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1266
>             Project: CouchDB
>          Issue Type: Improvement
>            Reporter: Filipe Manana
>            Assignee: Filipe Manana
>             Fix For: 1.2
>
>
> This proposal is simply to add a "stats" field to the _active_tasks results. This field
can be an arbitrary JSON value and each task can set it to whatever is appropriate for it.The
following patch also defines some basic stats for the existing tasks:
> 1) database compaction - # changes done, total changes, # of revisions copied, # of attachments
copied and progress (an integer percentage, same as what is exposed in the existing text field
"status");
> 2) view compaction - # of ids copied, total number of ids, # of kvs copied, total number
of kvs and progress
> 3) view indexing - # changes done, total changes, # inserted kvs, # deleted kvs, progress
> 4) replication - # missing revisions checked, # missing revisions found, # docs read,
# docs written, # doc write failures, source seq number, checkpointed source seq number, progress.
> A screenshot of Futon with 3 different tasks:
> http://dl.dropbox.com/u/25067962/active_tasks_stats.png
> Patch at:
> https://github.com/fdmanana/couchdb/compare/task_stats.diff

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message