Updating Solr - was Disk space usage with mdbox
Timo Sirainen
tss at iki.fi
Wed Apr 15 16:41:48 UTC 2015
> On 14 Apr 2015, at 19:11, Daniel Miller <dmiller at amfes.com> wrote:
>
> So with "fts_autoindex=yes" enabled in plugins, is there anything I should be running regularly, other than the expunge/purge, to ensure Solr indexes are updated? I have a daily Solr optimize, and Solr autocommit enabled.
Should be enough.
> I have an hourly "doveadm index -A *" command - is that unneeded?
Shouldn't be needed.
>
> --
> Daniel
>
> On 4/12/2015 6:53 AM, Timo Sirainen wrote:
>> On 10 Apr 2015, at 21:55, Daniel Miller <dmiller at amfes.com> wrote:
>>> Why things happen is one of the great mysteries and joys of being a sysadmin...
>>>
>>> As for cleaning up SIS, I believe the "doveadm purge" command takes care of it. I have a daily cronjob which includes:
>>>
>>> #!/bin/sh
>>> # Permanently expunge old Trash
>>> doveadm expunge -A mailbox Trash savedbefore 2w
>>> # Optimize mdbox storage
>>> doveadm purge -A
>>> # Update fts indexes
>>> doveadm fts rescan -A
>> doveadm index updates the indexes. doveadm fts rescan makes sure that after something has broken it makes sure to update all the mails to the index after indexing is done - so it by itself doesn't even add any missing mails to the index.(And with fts-lucene it's actually looking if there are any mails that were supposed to have been deleted already - with Solr it should do that too but the code isn't written yet. So I don't think that needs to be run nightly (if ever automatically).
More information about the dovecot
mailing list