Re: Slow start of imap service

ellie timoney <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <1538363604.2747884.1525991400.0ABFAD3C@webmail.messagingengine.com>
On Mon, Oct 1, 2018, at 12:32 PM, ellie timoney wrote:
> You could use the tls_sessions_db_path imapd.conf(5) option to put this 
> database onto faster storage?
> 
> >          tls_sessions_db_path: <none>
> >              The absolute path to the TLS sessions db file. If not specified, will  be
> >              configdirectory/tls_sessions.db
> 
> If you have the RAM for it, you should be able to put tls_sessions.db on 
> a tmpfs filesystem.  This database is only a cache, so nothing valuable 
> will be lost if the machine is rebooted; and as a cache, it benefits 
> from being on the fastest storage you have available. :)

Buuut, note that there's a bug in current releases of 2.5 where tls_prune will fail if the tls_sessions.db doesn't exist, preventing the server starting up.  This will occur after ever reboot if you put this database on ephemeral storage!  You can work around this by having your service init script touch the file before running master.

The real fix for this is already in git, so it will be included in 2.5.12, which will hopefully be out this week!

Cheers,

ellie
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.