RE: Adding a 2.3.x replica [Documentation Bug]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: info-cyrus-bounces+john_simpson=reyrey.com@xxxxxxxxxxxxxxxxxxxx [mailto:info-
> cyrus-bounces+john_simpson=reyrey.com@xxxxxxxxxxxxxxxxxxxx] On Behalf Of Michael
> Menge
> Sent: Tuesday, February 15, 2011 7:29 AM
> To: awilliam@xxxxxxxxxxxxx
> Cc: cyrus-users
> Subject: Re: Adding a 2.3.x replica [Documentation Bug]
> 
> Quoting Adam Tauno Williams <awilliam@xxxxxxxxxxxxx>:
> 
> > On Mon, 2011-02-14 at 16:37 -0500, Adam Tauno Williams wrote:
> >> Looking at
> >> <http://www.cyrusimap.org/docs/cyrus-imapd/2.3.16/install-replication.php>
> >
> > Documentation Bug:
> >
> > "Add a line similar to the following in the STARTUP section of
> > cyrus.conf"
> >
> > There is no "STARTUP" section, it is the "START" section.
> >
> > START {
> >   # do not delete this entry!
> >   recover       cmd="ctl_cyrusdb -r"
> >   # this is only necessary if using idled for IMAP IDLE
> >   idled         cmd="idled"
> >   # Start the replication client (this is the master)
> >   syncclient       cmd="sync_client -r"
> > }
> >
> 
> If this method is used the master will wait till the syncclient can
> reach the replica. This can cause unnessesary delays it the replica
> is not running or can't be reached.
> 
> 

You can avoid the delays with "sync_client -r -o" (-o == try once
and exit).  You'll need an external method to make sure that 
sync_client is running and to process any abandoned replication 
logs in configdirectory/sync (usually /var/lib/imap/sync).  You 
should be able to find an old version of Brom's monitorsync.pl for
inspiration.

John

> 
> >> Reading the quote -
> >> "Rolling" replication means that the "master" server continuously
> >> synchonizes itself with the replica.
> >> - I take this to mean that the master continuously *pushes* changes to
> >> the replica [secondary]?
> >
> > Yep.
> >
> >> Is there a recommended/suggested value for sync_repeat_interval other
> >> than the default of "1"?
> >
> > ?
> 
> >> Is there a recommended Method for bringing up a new replica for an
> >> active master (with 1.4 million messages in its mailstore)
> >
> 
> If the replica is running, you have to run the following command
> to initialise the replica:
> 
> sync_client -u -f userlist.txt
> 
> userlist.txt is a file containing all users.
> This can be done while the master and rolling replication
> is running.
> 
> 
> 
> 
> --------------------------------------------------------------------------------
> M.Menge                                Tel.: (49) 7071/29-70316
> UniversitÃt TÃbingen                   Fax.: (49) 7071/29-5912
> Zentrum fÃr Datenverarbeitung          mail:
> michael.menge@xxxxxxxxxxxxxxxxxxxx
> WÃchterstraÃe 76
> 72074 TÃbingen



John Simpson 
Senior Software Engineer, I. T. Engineering and Operations

Reynolds and Reynolds 
One Reynolds Way | Kettering, Ohio 45430 
office 937.485.8304 
John_Simpson@xxxxxxxxxx 

MAKING BUSINESS BETTER. 

NOTE: The information contained in this e-mail is personal and confidential and may be protected by the attorney-client privilege and/or the work product doctrine. It is for the sole use of the intended recipient. Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/



[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux