<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Mostly to Bron, but if anyone else wishes to jump in...<br>
<br>
There seems to be a conflict between documentation and code in
regards to the settings for replication frequency. Specifically,
cyrus-imapd/lib/imapoptions has this:<br>
<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 */
</pre>
</blockquote>
which would seem to indicate that the default is 1 second.
Meanwhile, sync_client(8) has this:<br>
<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>.
</pre>
</blockquote>
and the code, sync_client.c, has this:<br>
<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);
}
</pre>
</blockquote>
So I'm thinking that the actual default is 1, not 3. Am I right, or
confused?<br>
<br>
Cheers,<br>
-nic<br>
<pre class="moz-signature" cols="72">--
Nic Bernstein <a class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight, Inc. <a class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
6525 W Bluemound Road, Suite 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073
</pre>
</body>
</html>