<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Nicola reminded me to reply to this!&nbsp; Yes, the actual is 1 :)&nbsp; Please do correct that.<br></div>
<div><br>Bron.<br></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>On Fri, Aug 21, 2015, at 00:42, Nic Bernstein wrote:<br></div>
<blockquote type="cite"><div>Mostly to Bron, but if anyone else wishes to jump in...<br></div>
<div>&nbsp;</div>
<div>
    There seems to be a conflict between documentation and code in
    regards to the settings for replication frequency.&nbsp; Specifically,
    cyrus-imapd/lib/imapoptions has this:<br></div>
<blockquote><pre>{ "sync_repeat_interval", <b>1</b>, INT }
/* Minimum interval (in seconds) between replication runs in rolling
   replication mode. If a replication run takes longer than this
   time, we repeat immediately.
   Prefix with a channel name to only apply for that channel */<br></pre></blockquote><div>which would seem to indicate that the default is 1 second.&nbsp;
    Meanwhile, sync_client(8) has this:<br></div>
<blockquote><pre>.. option:: -d delay

    Minimum delay between replication runs in rolling replication mode.
    Larger values provide better efficiency as transactions can be
    merged. Smaller values mean that the replica system is more up to
    date and that you don't end up with large blocks of replication
    transactions as a single group. Default: <b>3 seconds</b>.<br></pre></blockquote><div>and the code, sync_client.c, has this:<br></div>
<blockquote><pre>int   timeout  = 600;
    int   min_delta = 0;
    const char *channel = NULL;
...
        case 't':
            timeout = atoi(optarg);
            break;

        case 'd':
            min_delta = atoi(optarg);
            break;
...
        else {
            /* rolling replication */
            if (!sync_shutdown_file)
                sync_shutdown_file = get_config(channel, "sync_shutdown_file");

            if (!min_delta)
                min_delta = get_intconfig(channel, "sync_repeat_interval");

            do_daemon(channel, sync_shutdown_file, timeout, min_delta);
        }<br></pre></blockquote><div>So I'm thinking that the actual default is 1, not 3.&nbsp; Am I right, or
    confused?<br></div>
<div>&nbsp;</div>
<div>
    Cheers,<br></div>
<div>
    &nbsp;&nbsp;&nbsp; -nic<br></div>
<pre>-- 
Nic Bernstein                             <a href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight, Inc.                             <a href="http://www.onlight.com">www.onlight.com</a>
6525 W Bluemound Road, Suite 24           v. 414.272.4477
Milwaukee, Wisconsin  53213-4073<br></pre><p>Email had 1 attachment:<br></p><ul><li><div><code>nic.vcf</code><br></div>
<div>&nbsp; 1k (text/x-vcard)<br></div>
</li></ul></blockquote><div>&nbsp;</div>
<div id="sig567075"><div class="signature">--<br></div>
<div class="signature">&nbsp; Bron Gondwana<br></div>
<div class="signature">&nbsp; brong@fastmail.fm<br></div>
<div class="signature">&nbsp;</div>
</div>
<div>&nbsp;</div>
</body>
</html>