<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Wed Jun 19 22:05:37 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.couchbase.com/issues/si/jira.issueviews:issue-xml/MB-5943/MB-5943.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Couchbase</title>
    <link>http://www.couchbase.com/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.4</version>
        <build-number>845</build-number>
        <build-date>26-12-2012</build-date>
    </build-info>

<item>
            <title>[MB-5943] XDCR: show replication stats on UI</title>
                <link>http://www.couchbase.com/issues/browse/MB-5943</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description></description>
                <environment></environment>
            <key id="18514">MB-5943</key>
            <summary>XDCR: show replication stats on UI</summary>
                <type id="4" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="peter">Peter Wansch</assignee>
                                <reporter username="junyi">Junyi Xie</reporter>
                        <labels>
                        <label>pblock</label>
                    </labels>
                <created>Wed, 18 Jul 2012 17:31:34 -0500</created>
                <updated>Wed, 26 Sep 2012 16:50:00 -0500</updated>
                    <resolved>Wed, 12 Sep 2012 16:37:27 -0500</resolved>
                                            <fixVersion>2.0-beta</fixVersion>
                                <component>cross-datacenter-replication</component>
                <component>UI</component>
                                <votes>0</votes>
                        <watches>2</watches>
                                                    <comments>
                    <comment id="35544" author="peter" created="Wed, 15 Aug 2012 13:13:14 -0500"  >I believe some of the stats will be there for beta.</comment>
                    <comment id="35672" author="thuan" created="Thu, 16 Aug 2012 18:40:59 -0500"  >Integrated in github-ns-server-2-0 #437 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-ns-server-2-0/437/&quot;&gt;http://qa.hq.northscale.net/job/github-ns-server-2-0/437/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-5943&quot; title=&quot;XDCR: show replication stats on UI&quot;&gt;&lt;strike&gt;MB-5943&lt;/strike&gt;&lt;/a&gt;: Restructure XDCR for stats, performance and reliability (Revision a8fad0e67d70d73d570cfd25e46d0167958e3c2c)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
Damien Katz : &lt;br/&gt;
Files : &lt;br/&gt;
* src/xdc_vbucket_rep.erl&lt;br/&gt;
* src/concurrency_throttle.erl&lt;br/&gt;
* src/ns_server_sup.erl&lt;br/&gt;
* src/xdc_rep_manager.erl&lt;br/&gt;
* src/xdc_replication_sup.erl&lt;br/&gt;
* src/xdc_vbucket_rep_sup.erl&lt;br/&gt;
* src/xdc_rep_utils.erl&lt;br/&gt;
* src/xdc_rep_notifier.erl&lt;br/&gt;
* src/xdc_vbucket_rep_worker.erl&lt;br/&gt;
* src/xdc_vbucket_rep_ckpt.erl&lt;br/&gt;
* src/xdc_rep_manager_helper.erl&lt;br/&gt;
* src/xdc_replication.erl&lt;br/&gt;
* include/xdc_replicator.hrl&lt;br/&gt;
</comment>
                    <comment id="35901" author="thuan" created="Sat, 18 Aug 2012 17:56:55 -0500"  >Integrated in github-ns-server-2-0 #441 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-ns-server-2-0/441/&quot;&gt;http://qa.hq.northscale.net/job/github-ns-server-2-0/441/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-5943&quot; title=&quot;XDCR: show replication stats on UI&quot;&gt;&lt;strike&gt;MB-5943&lt;/strike&gt;&lt;/a&gt;: Maintain and collect XDCR vb stats (Revision c0e0791c1433eb5d97c4f36704a8159b47b061e1)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
Damien Katz : &lt;br/&gt;
Files : &lt;br/&gt;
* src/xdc_replication_sup.erl&lt;br/&gt;
* src/xdc_vbucket_rep_worker.erl&lt;br/&gt;
* src/xdc_vbucket_rep_sup.erl&lt;br/&gt;
* src/xdc_vbucket_rep.erl&lt;br/&gt;
* src/xdc_replication.erl&lt;br/&gt;
* include/xdc_replicator.hrl&lt;br/&gt;
* src/xdc_rep_manager.erl&lt;br/&gt;
* src/xdc_vbucket_rep_ckpt.erl&lt;br/&gt;
* src/xdc_rep_utils.erl&lt;br/&gt;
</comment>
                    <comment id="36333" author="steve" created="Tue, 21 Aug 2012 13:58:39 -0500"  >Reopening to get a publically available REST API on this.</comment>
                    <comment id="36507" author="alkondratenko" created="Wed, 22 Aug 2012 11:25:58 -0500"  >Steve, what is proposed here &lt;a href=&quot;http://review.couchbase.org/#/c/19993/1/src/menelaus_web.erl,unified&quot;&gt;http://review.couchbase.org/#/c/19993/1/src/menelaus_web.erl,unified&lt;/a&gt; is not acceptable for me. My comments there may look strange, but fact is I don&amp;#39;t need random API that doesn&amp;#39;t take into account what UI needs. Or at least current UI needs.&lt;br/&gt;
&lt;br/&gt;
I understand you need this stats badly. So here&amp;#39;s proposal.&lt;br/&gt;
&lt;br/&gt;
POST this:&lt;br/&gt;
&lt;br/&gt;
BucketName = &amp;quot;default&amp;quot;, {json, {struct, [{RId, {struct, KVs}} || {RId, KVs} &amp;lt;- xdc_rep_manager:stats(BucketName)]}}&lt;br/&gt;
&lt;br/&gt;
to /diag/eval and parse resultant JSON.&lt;br/&gt;
&lt;br/&gt;
E.g.&lt;br/&gt;
&lt;br/&gt;
wget -O- --user=Administrator --password=asdasd --post-data=&amp;quot;BucketName = \&amp;quot;default\&amp;quot;, {json, {struct, [{RId, {struct, KVs}} || {RId, KVs} &amp;lt;- xdc_rep_manager:stats(BucketName)]}}&amp;quot; &lt;a href=&quot;http://lh:9000/diag/eval&quot;&gt;http://lh:9000/diag/eval&lt;/a&gt;&lt;br/&gt;
</comment>
                    <comment id="36614" author="junyi" created="Wed, 22 Aug 2012 19:38:43 -0500"  >Thanks Aaron for taking care of this.</comment>
                    <comment id="36770" author="thuan" created="Thu, 23 Aug 2012 17:25:25 -0500"  >Integrated in github-ns-server-2-0 #450 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-ns-server-2-0/450/&quot;&gt;http://qa.hq.northscale.net/job/github-ns-server-2-0/450/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-5943&quot; title=&quot;XDCR: show replication stats on UI&quot;&gt;&lt;strike&gt;MB-5943&lt;/strike&gt;&lt;/a&gt; Replication stats on UI (Revision 4d4ed0a4bd497aeb66fc36f6b20b9cacb208c10b)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
Aliaksey Kandratsenka : &lt;br/&gt;
Files : &lt;br/&gt;
* src/menelaus_stats.erl&lt;br/&gt;
* src/xdc_replication.erl&lt;br/&gt;
* src/stats_collector.erl&lt;br/&gt;
</comment>
                    <comment id="38119" author="ketaki" created="Sat, 8 Sep 2012 13:06:37 -0500"  >Not seeing &amp;quot;Deletes&amp;quot; on the destination cluster UI stats. on build 1697</comment>
                    <comment id="38120" author="farshid" created="Sat, 8 Sep 2012 13:08:33 -0500"  >is this a UI only issue ?&lt;br/&gt;
</comment>
                    <comment id="38143" author="junyi" created="Sat, 8 Sep 2012 16:47:46 -0500"  >Ketaki,&lt;br/&gt;
&lt;br/&gt;
In &amp;quot;XDCR Destination&amp;quot; section, there is a delete stat figure, can you verify that we do not see  XDCR delete stat in that section? </comment>
                    <comment id="38152" author="junyi" created="Sat, 8 Sep 2012 19:22:16 -0500"  >The deletion ops from XDCR is shown at XDCR Destination section but not summary section. </comment>
                    <comment id="38179" author="ketaki" created="Sun, 9 Sep 2012 15:38:31 -0500"  >On xdc stats on destination today,show -&lt;br/&gt;
1. XDC ops/sec- seen as expected&lt;br/&gt;
2. XDC sets/sec- seen as expected&lt;br/&gt;
3. XDC deletes/sec - seen as expected&lt;br/&gt;
&lt;br/&gt;
The summary UI&lt;br/&gt;
1. Creates - show xdc creates&lt;br/&gt;
2. Updates - show xdc updates&lt;br/&gt;
3. Deletes - does not show any xdc deletes.&lt;br/&gt;
&lt;br/&gt;
IMO this is very confusing for the users to understand that data is being deleted, but not displayed.&lt;br/&gt;
&lt;br/&gt;
For the destination if the incoming data via xdc is same as any other data from any other clients, then all creates/updates/deletes should be consistently displayed.&lt;br/&gt;
&lt;br/&gt;
Here, the xdc deletes/sec does show deletes, but this needs to also be reflected on the aggregate stats.&lt;br/&gt;
&lt;br/&gt;
</comment>
                    <comment id="38180" author="aaron" created="Sun, 9 Sep 2012 16:12:56 -0500"  >ep_num_ops_del_meta, which is the stat used to show &amp;quot;XDC deletes/sec&amp;quot; is included in the sum stat that is used in the summary UI, so the code as I read it -should- be doing this. Not sure what&amp;#39;s going on here...&lt;br/&gt;
&lt;br/&gt;
&lt;a href=&quot;https://github.com/couchbase/ns_server/blob/master/src/stats_collector.erl#L286&quot;&gt;https://github.com/couchbase/ns_server/blob/master/src/stats_collector.erl#L286&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/couchbase/ns_server/blob/master/src/menelaus_stats.erl#L1103&quot;&gt;https://github.com/couchbase/ns_server/blob/master/src/menelaus_stats.erl#L1103&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
</comment>
                    <comment id="38181" author="junyi" created="Sun, 9 Sep 2012 16:19:29 -0500"  >Stats in XDC sections are all correct.  In Summary UI,  however,  the Delete stat in Summary UI  comes from stat delete_hits, which seems to me maintained in bucket_engine, instead of ep_engine (not sure why it is this way, since update and create on Summary UI are from ep_engine) .   &lt;br/&gt;
&lt;br/&gt;
Ketaki,  &lt;br/&gt;
&lt;br/&gt;
You may want to assign to bucket engine owner to take a look. </comment>
                    <comment id="38624" author="peter" created="Wed, 12 Sep 2012 13:39:56 -0500"  >We want to pick up the delete stats from ep_engine in the summary like we do for the other XDC stats.</comment>
                    <comment id="38652" author="dipti" created="Wed, 12 Sep 2012 16:37:27 -0500"  >UI part for XDCR stats is done. cleanup of text in the works as well. ep_engine issue should be tracked separately</comment>
                    <comment id="39238" author="thuan" created="Mon, 17 Sep 2012 21:44:56 -0500"  >Integrated in github-ns-server-2-0 #468 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-ns-server-2-0/468/&quot;&gt;http://qa.hq.northscale.net/job/github-ns-server-2-0/468/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-5943&quot; title=&quot;XDCR: show replication stats on UI&quot;&gt;&lt;strike&gt;MB-5943&lt;/strike&gt;&lt;/a&gt;: Add xdcr stats for work and commit times (Revision 7ae1c343c58e31ddf39d61e6c844b50ccb4bfc36)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
pwansch : &lt;br/&gt;
Files : &lt;br/&gt;
* src/xdc_replication.erl&lt;br/&gt;
* src/ns_doctor.erl&lt;br/&gt;
* src/xdc_vbucket_rep.erl&lt;br/&gt;
* src/stats_collector.erl&lt;br/&gt;
* include/xdc_replicator.hrl&lt;br/&gt;
* src/menelaus_stats.erl&lt;br/&gt;
</comment>
                </comments>
                    <attachments>
                    <attachment id="14866" name="Screen Shot 2012-09-08 at 5.19.08 PM.png" size="87873" author="junyi" created="Sat, 8 Sep 2012 19:22:33 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                        <customfield id="customfield_10180" key="com.atlassian.jira.ext.charting:firstresponsedate">
                <customfieldname>Date of First Response</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>Wed, 15 Aug 2012 13:13:14 -0500</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                                                                                                                        <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>4642</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                                                                                                    <customfield id="customfield_10181" key="com.atlassian.jira.ext.charting:timeinstatus">
                <customfieldname>Time In Status</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                    </customfields>
    </item>
</channel>
</rss>