How will transaction log files be automatically deleted in Solr 4.0?

In Solr 4.0, a transaction log file is created when documents are added. After fixing the documents in the location there is a transaction log file. If the size of the transaction log file is large and the transaction records that the log file is taking up extra space. How to delete a committed transaction log file, and also will it be deleted automatically if it was no longer used?

Is there any configuration to set the maximum size of the transaction log? If so, once the maximum size has been reached for the transaction log file, will a new transaction log file be created?

+4
source share
1 answer

From this question is the Solr transaction log question on the Solr mailing list:

Q:. How large is the transaction log and how long will it be kept?

A: We keep enough magazines to satisfy a minimum of 100 updates to look back. Optional log files are deleted automatically. When a hard commit is performed, we create a new log file (since we know the normal index files were synchronized, and therefore we no longer need the update log for longevity).

Issuing a hard commit is key to ensuring that the transaction log is manageable. You can configure Solr to automatically complete transactions based on the time or number of documents. See the Update Handler section of the Solr Wiki for more information.

+2
source

All Articles