<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Fri May 24 07:42:47 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-6796/MB-6796.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-6796] perf - 10x slower rebalance performance with consistent view turned on</title>
                <link>http://www.couchbase.com/issues/browse/MB-6796</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>For build 1782, rebalance took ~6800 seconds (8M workload , 2 -&amp;gt; 4 nodes with consistent view turned on by default).&lt;br/&gt;
&lt;br/&gt;
By contrast, build 1723, rebalance took ~500 seconds for the same workload, without consistent views.&lt;br/&gt;
&lt;br/&gt;
Please refer to attached screenshot.</description>
                <environment>centos</environment>
            <key id="20024">MB-6796</key>
            <summary>perf - 10x slower rebalance performance with consistent view turned on</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/blocker.png">Blocker</priority>
                    <status id="5" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="chiyoung">Chiyoung Seo</assignee>
                                <reporter username="ronnie">Ronnie Sun</reporter>
                        <labels>
                        <label>pblock</label>
                    </labels>
                <created>Tue, 2 Oct 2012 14:22:22 -0500</created>
                <updated>Fri, 26 Oct 2012 15:00:02 -0500</updated>
                    <resolved>Tue, 16 Oct 2012 19:05:44 -0500</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0-beta-2</fixVersion>
                                <component>ns_server</component>
                                <votes>0</votes>
                        <watches>4</watches>
                                                    <comments>
                    <comment id="40155" author="ronnie" created="Tue, 2 Oct 2012 14:23:13 -0500"  >also from steve:&lt;br/&gt;
&lt;br/&gt;
I hear from @Farshid Ghods that @Karan k also sees this.</comment>
                    <comment id="40162" author="tommie" created="Tue, 2 Oct 2012 16:45:10 -0500"  >Here&amp;#39;s what I see on 9 node cluster without indexes at build-1781:  (7 million items, write-queue always at 0 before rebalancing.)&lt;br/&gt;
&lt;br/&gt;
Consistent Views On&lt;br/&gt;
---&lt;br/&gt;
Rebalance out 3 nodes: 3m:16s,    Rebalance in 3 nodes: 3m:3s&lt;br/&gt;
&lt;br/&gt;
Consistent Views Off&lt;br/&gt;
---&lt;br/&gt;
Rebalance out 3 nodes: 2m:45s,    Rebalance in 3 nodes: 1m:55s&lt;br/&gt;
</comment>
                    <comment id="40163" author="ronnie" created="Tue, 2 Oct 2012 16:46:32 -0500"  >build 1723 took 6926 seconds, please see the attached screenshot and diag logs.</comment>
                    <comment id="40164" author="ronnie" created="Tue, 2 Oct 2012 16:50:17 -0500"  >perf test case:&lt;br/&gt;
&lt;br/&gt;
2-4 node rebalance, with ~7M items.&lt;br/&gt;
&lt;br/&gt;
Mixed workload fired from 30 clients (each client has ~300 ops/sec, so the total is ~9k) during rebalance (Read:Insert:Update:Delete Ratio = 50:4:40:6.) &lt;br/&gt;
&lt;br/&gt;
Also attached the perf graph</comment>
                    <comment id="40215" author="farshid" created="Wed, 3 Oct 2012 12:15:11 -0500"  >more info from Andrei&lt;br/&gt;
&lt;br/&gt;
I&amp;#39;m slightly confused. rebalance is even better with ebabled consistent view&lt;br/&gt;
&lt;br/&gt;
tested on build  2.0.0-1790-rel:&lt;br/&gt;
&lt;br/&gt;
./testrunner -i /tmp/andrei_rebalance.ini get-logs=True -t rebalance.rebalancein.RebalanceInTests.rebalance_in_with_ops,nodes_in=3,replicas=1,items=1000000,max_verify=100000,sasl_buckets=1,standard_buckets=1,disabled_consistent_view=False/True&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;Enabling/disabling consistent-views during rebalance: ns_config:set(index_aware_rebalance_disabled, true)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;rebalancing was completed with progress: 100% in 1588.21907401 sec&lt;br/&gt;
&lt;a href=&quot;http://qa.hq.northscale.net/view/All/job/andrei-rebalance-regressions/50/console&quot;&gt;http://qa.hq.northscale.net/view/All/job/andrei-rebalance-regressions/50/console&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
Enabling/disabling consistent-views during rebalance: ns_config:set(index_aware_rebalance_disabled, true)&lt;br/&gt;
rebalancing was completed with progress: 100% in 2004.50655818 sec&lt;br/&gt;
&lt;a href=&quot;http://qa.hq.northscale.net/view/All/job/andrei-rebalance-regressions/52/console&quot;&gt;http://qa.hq.northscale.net/view/All/job/andrei-rebalance-regressions/52/console&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
Enabling/disabling consistent-views during rebalance: ns_config:set(index_aware_rebalance_disabled, false).&lt;br/&gt;
&amp;nbsp;&amp;nbsp;rebalancing was completed with progress: 100% in 1457.30416107 sec&lt;br/&gt;
&lt;a href=&quot;http://qa.hq.northscale.net/view/All/job/andrei-rebalance-regressions/51/console&quot;&gt;http://qa.hq.northscale.net/view/All/job/andrei-rebalance-regressions/51/console&lt;/a&gt;&lt;br/&gt;
Enabling/disabling consistent-views during rebalance: ns_config:set(index_aware_rebalance_disabled, false)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;rebalancing was completed with progress: 100% in 1837.2985878 sec&lt;br/&gt;
&lt;a href=&quot;http://qa.hq.northscale.net/view/All/job/andrei-rebalance-regressions/53/console&quot;&gt;http://qa.hq.northscale.net/view/All/job/andrei-rebalance-regressions/53/console&lt;/a&gt;</comment>
                    <comment id="40352" author="alkondratenko" created="Thu, 4 Oct 2012 10:41:33 -0500"  >See above diag0 is from master node of 3-&amp;gt;4 rebalance and diag3 is from node being rebalanced in.&lt;br/&gt;
&lt;br/&gt;
I just ran the following experiment:&lt;br/&gt;
&lt;br/&gt;
* 3 million small items (about 100 bytes) are loaded into bucket having 256 vbuckets in 3 nodes cluster. Everything is persisted to disk. And everything is memory-resident.&lt;br/&gt;
&lt;br/&gt;
* added 4th node&lt;br/&gt;
&lt;br/&gt;
* started very tiny load - ~130 sets (all of them are updates) per second&lt;br/&gt;
&lt;br/&gt;
* and clicked rebalance button&lt;br/&gt;
&lt;br/&gt;
No indexes are defined.&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
I was able to observe much slower (30 seconds versus 4 minutes) rebalance speed compared to both:&lt;br/&gt;
&lt;br/&gt;
* index aware rebalance disabled&lt;br/&gt;
&lt;br/&gt;
* and rebalance without any load&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
Note when index aware rebalance is enabled, even without indexes defined we&amp;#39;re waiting for persistence of items on vbucket move destination node. In fact this happens twice in order to enable consistent views. We do that by creating checkpoint and waiting for it to be persisted.&lt;br/&gt;
&lt;br/&gt;
In logs attached above I&amp;#39;m seeing that first wait for persistence is slow (we expect that as it includes backfill). &lt;br/&gt;
&lt;br/&gt;
But after first checkpoint is persisted we create another one and wait for it to be persisted. Because our load is very small we know that new checkpoint can have less then 10 items. So we don&amp;#39;t expect replicating and persisting it to take any significant time. But logs indicate that this is not the case. I.e.&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.685,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.696,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.707,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.718,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.729,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.737,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.740,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.771,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.802,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.833,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.838,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.864,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.895,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.939,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:07.996,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.040,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.097,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.141,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.198,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.242,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.299,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.343,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.417,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.444,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.518,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.545,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.619,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.646,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.720,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.747,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.821,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.848,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.922,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:08.949,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.023,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.050,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.124,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.151,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.225,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.252,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.326,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.353,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.427,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.454,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.528,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.555,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.629,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.656,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12248.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 37 on 212, now 0&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.730,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.757,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;#39;janitor_agent-default&amp;#39;:janitor_agent:handle_info:677]Got done message from subprocess: &amp;lt;0.12248.2&amp;gt; (ok)&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.758,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.770,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.781,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.792,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.803,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.814,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.831,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.845,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.876,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.907,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.932,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.938,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:09.969,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.033,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.070,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.134,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.171,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.235,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.272,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.336,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.373,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.437,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.474,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.538,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.575,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.639,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.676,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.740,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.777,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.841,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.878,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.942,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:10.979,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.043,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.080,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.144,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.181,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.245,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.282,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.346,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.383,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.447,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.484,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.548,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.585,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.649,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.686,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.750,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.787,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.851,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.888,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.952,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:11.989,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.053,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.090,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.154,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.191,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.255,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.292,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.356,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.393,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.457,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.494,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.558,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.595,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.659,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.696,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.760,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.797,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12283.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 38 on 212, now 37&lt;br/&gt;
[ns_server:debug,2012-10-04T8:22:12.861,&lt;a href=&apos;mailto:n_3@10.17.23.211&apos;&gt;n_3@10.17.23.211&lt;/a&gt;:&amp;lt;0.12275.2&amp;gt;:janitor_agent:do_wait_checkpoint_persisted:746]Waiting persisted checkpoint 36 on 255, now 35&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
You can see that situation where we see checkpoint 35 marked as persisted and us waiting for checkpoint 36 to become persisted lasts about 5 seconds.</comment>
                    <comment id="40353" author="alkondratenko" created="Thu, 4 Oct 2012 10:42:12 -0500"  >See my analysis above. Feel free to approach me with any questions.</comment>
                    <comment id="40593" author="chiyoung" created="Sun, 7 Oct 2012 16:51:15 -0500"  >I&amp;#39;ve debugged the following cases:&lt;br/&gt;
&lt;br/&gt;
(1) rebalance from one to two nodes took 20 minutes with the consistent view enabled, but without any loads from the client&lt;br/&gt;
&lt;br/&gt;
(2) rebalance from one to two nodes took 2 hours with the consistence view enabled and with small loads (2K SET ops / sec) from the client&lt;br/&gt;
&lt;br/&gt;
For the further debugging, I removed couchstore API calls (couchstore_save_docs, couchstore_commit) from the ep-engine flusher execution path to see if this is caused by the slow write throughput from couchstore. I saw that the rebalance with the same load (2K SET ops / sec) just took 21 minutes.&lt;br/&gt;
&lt;br/&gt;
I also looked at the timings of couchstore_save_docs and couchstore_commit from the above (2) case, and saw that calling those two APIs to persist 10 -15 dirty items per vbucket takes 5 - 10ms on average, which infers 1.5. - 2K drain rate per sec. The disk write queue size usually remained in 5 - 10K, which indicates that a single vbucket takeover frequently takes 4 - 5 sec.&lt;br/&gt;
&lt;br/&gt;
I need to further investigate this issue,  but it seems to me that this is not caused by the ep-engine layer at this time.&lt;br/&gt;
&amp;nbsp;</comment>
                    <comment id="40614" author="alkondratenko" created="Mon, 8 Oct 2012 10:38:11 -0500"  >Interesting data, Chiyoung. I&amp;#39;d like to point out however that while your finding of 5-10 ms per commit looks like disk&amp;#39;s rotational delay, in practice I know we&amp;#39;re running with barriers disabled and &amp;quot;short&amp;quot; fsyns (which is the case here) do not really wait for disk. So there could be something else that&amp;#39;s slowing us down somewhere. In mccouch or couchstore, for example.</comment>
                    <comment id="40760" author="chiyoung" created="Mon, 8 Oct 2012 22:38:20 -0500"  >Per discussion today, I did more tests and observed the followings:&lt;br/&gt;
&lt;br/&gt;
1) I commented out the fsync calls in couchstore_commit, and the rebalance time with the constant load from the client took 25 minutes.&lt;br/&gt;
&lt;br/&gt;
2) I made some changes in the ep-engine so that we can batch writes for all vbuckets and issue couchstore_commit requests at the end of transaction, but didn&amp;#39;t see much difference. The rebalance took 2 hours.&lt;br/&gt;
&lt;br/&gt;
So, for the cases where the rebalance takes 2 hours, the wall clock times for couchstore low level system calls (fsync, pwrite, pread) are as follows:&lt;br/&gt;
&lt;br/&gt;
rw:fsSyncTime (2289998 total)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4us - 8us     : (  0.00%)      19 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8us - 16us    : (  0.00%)      94 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;16us - 32us   : (  0.01%)      73 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32us - 64us   : (  0.01%)       3 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;64us - 128us  : (  0.02%)     221 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;128us - 256us : (  1.85%)   41935 ##&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;256us - 512us : (  3.46%)   36925 #&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;512us - 1ms   : ( 65.99%) 1431971 ############################################################################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1ms - 2ms     : ( 89.80%)  545262 #############################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2ms - 4ms     : ( 97.81%)  183281 #########&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4ms - 8ms     : ( 99.60%)   40998 ##&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8ms - 16ms    : ( 99.88%)    6371 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;16ms - 32ms   : ( 99.93%)    1229 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32ms - 65ms   : ( 99.95%)     532 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;65ms - 131ms  : ( 99.97%)     457 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;131ms - 262ms : ( 99.99%)     431 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;262ms - 524ms : (100.00%)     184 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;524ms - 1s    : (100.00%)      12 &lt;br/&gt;
&lt;br/&gt;
rw:fsWriteTime (14744695 total)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0 - 1us       : (  0.00%)      11 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1us - 2us     : (  0.00%)     263 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2us - 4us     : ( 31.85%) 4695419 #######################################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4us - 8us     : ( 56.85%) 3686190 ##############################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8us - 16us    : ( 76.76%) 2935818 ########################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;16us - 32us   : ( 91.33%) 2148786 #################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32us - 64us   : ( 97.96%)  977121 ########&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;64us - 128us  : ( 99.31%)  198760 #&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;128us - 256us : ( 99.58%)   41135 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;256us - 512us : ( 99.82%)   35083 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;512us - 1ms   : ( 99.93%)   15252 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1ms - 2ms     : ( 99.98%)    8638 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2ms - 4ms     : (100.00%)    1813 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4ms - 8ms     : (100.00%)     239 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8ms - 16ms    : (100.00%)      64 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;16ms - 32ms   : (100.00%)      34 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32ms - 65ms   : (100.00%)      23 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;65ms - 131ms  : (100.00%)      18 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;131ms - 262ms : (100.00%)      22 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;262ms - 524ms : (100.00%)       5 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;524ms - 1s    : (100.00%)       1 &lt;br/&gt;
&lt;br/&gt;
rw:fsReadTime (9555100 total)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0 - 1us       : (  0.00%)       6 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1us - 2us     : (  0.05%)    5156 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2us - 4us     : ( 53.68%) 5123773 #################################################################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4us - 8us     : ( 86.88%) 3172621 ########################################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8us - 16us    : ( 98.03%) 1065233 #############&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;16us - 32us   : ( 99.39%)  130430 #&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32us - 64us   : ( 99.69%)   28320 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;64us - 128us  : ( 99.83%)   13641 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;128us - 256us : ( 99.91%)    7176 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;256us - 512us : ( 99.96%)    4798 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;512us - 1ms   : ( 99.99%)    2674 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1ms - 2ms     : (100.00%)     982 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2ms - 4ms     : (100.00%)     243 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4ms - 8ms     : (100.00%)      26 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8ms - 16ms    : (100.00%)       8 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;16ms - 32ms   : (100.00%)       2 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32ms - 65ms   : (100.00%)       3 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;65ms - 131ms  : (100.00%)       5 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;131ms - 262ms : (100.00%)       3 &lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
The wall clock timings for couchstore level APIs couchstore_save_docs and couchstore_commit() are &lt;br/&gt;
&lt;br/&gt;
rw:save_documents (1140612 total)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;16us - 32us   : (  0.00%)      1 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32us - 64us   : (  0.00%)      3 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;64us - 128us  : (  0.00%)     53 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;128us - 256us : (  7.39%)  84185 #########&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;256us - 512us : ( 33.63%) 299371 ################################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;512us - 1ms   : ( 81.68%) 548081 ###########################################################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1ms - 2ms     : ( 97.57%) 181242 ###################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2ms - 4ms     : ( 99.61%)  23205 ##&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4ms - 8ms     : ( 99.88%)   3080 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8ms - 16ms    : ( 99.92%)    434 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;16ms - 32ms   : (100.00%)    901 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32ms - 65ms   : (100.00%)     22 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;65ms - 131ms  : (100.00%)     16 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;131ms - 262ms : (100.00%)     13 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;262ms - 524ms : (100.00%)      4 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;524ms - 1s    : (100.00%)      1 &lt;br/&gt;
&lt;br/&gt;
rw:commit (1140612 total)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;256us - 512us : (  0.00%)     15 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;512us - 1ms   : (  1.83%)  20857 ##&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1ms - 2ms     : ( 60.07%) 664282 ########################################################################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2ms - 4ms     : ( 89.95%) 340869 #####################################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4ms - 8ms     : ( 98.08%)  92729 ##########&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8ms - 16ms    : ( 99.63%)  17660 #&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;16ms - 32ms   : ( 99.86%)   2547 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32ms - 65ms   : ( 99.91%)    602 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;65ms - 131ms  : ( 99.94%)    387 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;131ms - 262ms : ( 99.98%)    432 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;262ms - 524ms : (100.00%)    212 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;524ms - 1s    : (100.00%)     20 &lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
As I mentioned earlier, a single call of couchstore_commit() invokes two fsync opertions internally (one for btree nodes, the other for the btree header).&lt;br/&gt;
&lt;br/&gt;
Also note that couchstore_save_docs() and couchstore_commit() are invoked once per vbucket.&lt;br/&gt;
&lt;br/&gt;
If we comment out fsync in couchstore_commit(), couchstore_save_docs() takes much less time because of the much smaller file sizes.&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
In addition, a new header notification is sent to the erlang mccouch process through socket for each vbucket&amp;#39;s commit and its wall clock timings are&lt;br/&gt;
&lt;br/&gt;
rw:notify (1144999 total)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;256us - 512us : (  2.77%)  31681 ###&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;512us - 1ms   : ( 82.19%) 909361 ##################################################################################################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1ms - 2ms     : ( 97.90%) 179953 ###################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2ms - 4ms     : ( 99.66%)  20110 ##&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4ms - 8ms     : ( 99.96%)   3440 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8ms - 16ms    : (100.00%)    433 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;16ms - 32ms   : (100.00%)     20 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32ms - 65ms   : (100.00%)      1 &lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
In my tests, persisting 10 - 15 dirty items per vbucket requires (couchstore_save_docs() + couchstore_commit() + new header notification to the erlang process) at least, which roughly takes 5ms.&lt;br/&gt;
&lt;br/&gt;
</comment>
                    <comment id="40805" author="alkondratenko" created="Tue, 9 Oct 2012 11:22:31 -0500"  >Very interesting data. I wonder what honest fsync will look like. I&amp;#39;ll try to run my own experiment quickly on honestly quick hardware.</comment>
                    <comment id="40806" author="alkondratenko" created="Tue, 9 Oct 2012 11:22:39 -0500"  >Sorry honestly _slow_</comment>
                    <comment id="40832" author="alkondratenko" created="Tue, 9 Oct 2012 12:54:32 -0500"  >So I tried rebalance under tiny load as before (130 ops sec) and _enabled_ barriers.&lt;br/&gt;
&lt;br/&gt;
I&amp;#39;m seeing commit times in range 131-262 ms. Weird right?&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;rw:commit (8563 total)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;256us - 512us : (  2.15%)  184 ####&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;512us - 1ms   : ( 33.07%) 2648 ##############################################################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1ms - 2ms     : ( 70.42%) 3198 ###########################################################################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2ms - 4ms     : ( 83.22%) 1096 #########################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4ms - 8ms     : ( 85.11%)  162 ###&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8ms - 16ms    : ( 86.16%)   90 ##&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;16ms - 32ms   : ( 86.93%)   66 #&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32ms - 65ms   : ( 87.06%)   11 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;65ms - 131ms  : ( 88.61%)  133 ###&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;131ms - 262ms : ( 99.26%)  912 #####################&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;262ms - 524ms : ( 99.91%)   55 #&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;524ms - 1s    : (100.00%)    8 &lt;br/&gt;
</comment>
                    <comment id="40835" author="chiyoung" created="Tue, 9 Oct 2012 13:08:12 -0500"  >Yes, this is quite interesting. I don&amp;#39;t expect that slowness honestly.&lt;br/&gt;
&lt;br/&gt;
Btw, the following is the code snippet that measures the timings of couchstore_commit() API:&lt;br/&gt;
&lt;br/&gt;
cs_begin = gethrtime();&lt;br/&gt;
errCode = couchstore_commit(db);&lt;br/&gt;
st.commitHisto.add((gethrtime() - cs_begin) / 1000);&lt;br/&gt;
&lt;br/&gt;
</comment>
                    <comment id="40836" author="alkondratenko" created="Tue, 9 Oct 2012 13:13:38 -0500"  >Actually, given that each our fdatasync call is extending file size, it means we modify file metadata, list of free blocks etc.. Thus fdatasync call is actually doing at least one physical write to filesystem journal (to journal metadata update) and then physical write to actual file. And there&amp;#39;s potentially very long disk seek in between. Thus 100 millseconds per fsync is perhaps not that unexpected.</comment>
                    <comment id="40841" author="alkondratenko" created="Tue, 9 Oct 2012 14:16:53 -0500"  >I was able to speed up commit times 2 times by doing reserving space with linux&amp;#39;s fallocate (with FL_KEEP_SIZE otherwise our constant re-opening will cause huge slowness finding last usable header). We can remove more of metadata syncing overhead by pre-extending with actual 0 bytes. That way our fdatasync will not have to update file metadata at all, but as I pointed out above today this will hit problems with re-opening of .couch files and with finding last valid header.&lt;br/&gt;
&lt;br/&gt;
Anyway, we clearly need order of magnitude improvement rather than 2x. So we need something else.&lt;br/&gt;
&lt;br/&gt;
Dirty patch can be found here: &lt;a href=&quot;http://paste.debian.net/198227/&quot;&gt;http://paste.debian.net/198227/&lt;/a&gt;</comment>
                    <comment id="40842" author="alkondratenko" created="Tue, 9 Oct 2012 14:18:06 -0500"  >I think we have enough data that proves that indeed fsync is the problem here. I think we should have Damien and Peter involved to seek a solution.</comment>
                    <comment id="40857" author="alkondratenko" created="Tue, 9 Oct 2012 15:08:26 -0500"  >There&amp;#39;s another thing I don&amp;#39;t understand. I&amp;#39;m doing around 130 sets (alll of them updates) per second. Stats show &amp;gt;200 disk updates per second (which is ok consider replica writes too).&lt;br/&gt;
&lt;br/&gt;
Even more weird I&amp;#39;m seeing 4.5 megs of writes per second in iotop. Even for 300 disk update per second that&amp;#39;s 15k of bytes in disk writes per item. My items are small btw, less then 100 bytes. Kinda big imho. I.e. 4 disk blocks per item.&lt;br/&gt;
&lt;br/&gt;
We know however that overhead will be more or less stable for higher write rates.</comment>
                    <comment id="41336" author="thuan" created="Sun, 14 Oct 2012 00:05:45 -0500"  >Integrated in github-ep-engine-2-0 #441 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-ep-engine-2-0/441/&quot;&gt;http://qa.hq.northscale.net/job/github-ep-engine-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-6796&quot; title=&quot;perf - 10x slower rebalance performance with consistent view turned on&quot;&gt;&lt;strike&gt;MB-6796&lt;/strike&gt;&lt;/a&gt; Prioritize flushing pending vbuckets over regular vbuckets (Revision e9ce877041d101efee775e9c65ea6b9eef914926)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
Chiyoung Seo : &lt;br/&gt;
Files : &lt;br/&gt;
* src/stats.hh&lt;br/&gt;
* src/ep.cc&lt;br/&gt;
* src/flusher.hh&lt;br/&gt;
* src/vbucketmap.cc&lt;br/&gt;
* src/flusher.cc&lt;br/&gt;
* src/vbucket.hh&lt;br/&gt;
* tests/ep_test_apis.cc&lt;br/&gt;
* tests/ep_testsuite.cc&lt;br/&gt;
* tests/ep_test_apis.h&lt;br/&gt;
* docs/stats.org&lt;br/&gt;
* src/vbucketmap.hh&lt;br/&gt;
* include/ep-engine/command_ids.h&lt;br/&gt;
* src/ep_engine.cc&lt;br/&gt;
* src/ep.hh&lt;br/&gt;
</comment>
                    <comment id="42603" author="kzeller" created="Fri, 26 Oct 2012 15:00:02 -0500"  >Added to RN as: 			Prioritize flushing pending vbuckets&lt;br/&gt;
				over regular vbuckets. &lt;br/&gt;
				This is a performance improvement used&lt;br/&gt;
				for rebalancing buckets that have no &lt;br/&gt;
				views or design docs when consistent view mode is enabled.</comment>
                </comments>
                    <attachments>
                    <attachment id="15290" name="diag0.bz2" size="2078430" author="alkondratenko" created="Thu, 4 Oct 2012 10:41:33 -0500" />
                    <attachment id="15245" name="diag-2.zip" size="18582196" author="ronnie" created="Tue, 2 Oct 2012 16:46:32 -0500" />
                    <attachment id="15291" name="diag3.bz2" size="1801540" author="alkondratenko" created="Thu, 4 Oct 2012 10:41:33 -0500" />
                    <attachment id="15244" name="diag.zip" size="17256598" author="ronnie" created="Tue, 2 Oct 2012 16:46:32 -0500" />
                    <attachment id="15246" name="reb-1-2.loop_2.0.0-1782-rel-enterprise_2.0.0-1782-rel-enterprise_terra_Oct-01-2012_18-57-11.pdf" size="2367386" author="ronnie" created="Tue, 2 Oct 2012 16:50:17 -0500" />
                    <attachment id="15242" name="reb-1782-cons-views.png" size="180078" author="ronnie" created="Tue, 2 Oct 2012 14:22:22 -0500" />
                    <attachment id="15243" name="Screen Shot 2012-10-02 at 2.33.34 PM.png" size="136065" author="ronnie" created="Tue, 2 Oct 2012 16:46:32 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                        <customfield id="customfield_10180" key="com.atlassian.jira.ext.charting:firstresponsedate">
                <customfieldname>Date of First Response</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>Tue, 2 Oct 2012 16:45:10 -0500</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>3852</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>