Slow start of imap service

ellie timoney ellie at fastmail.com
Sun Sep 30 23:13:24 EDT 2018


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


More information about the Info-cyrus mailing list