Understanding the different types of SOLR makes

I want to clarify my understanding about the different types of Solr commits. Please correct me if I am wrong.

  • commits

    : all types of commits are made, including SOFT and HARD .

  • autoCommit

    : Whether HARD commits to disk and ensures that all autoSoftCommit commits are written to disk and commit any other pending documents.

  • autoSoftCommit

    - performs SOFT . After autoSoftCommit, if the SOLR server goes down, autoSoftCommit documents will be lost.
  • autocommit maxTime

    : Maximum time between two executions of auto messages (in my case it is set as 15000s )
  • soft autocommit maxTime

    : The maximum number of documents is added between two SOFT automatic commits. (in my case it is set as 180000s )

So, if we set commit = true for any solr api call with some document data, then it does HARD for the current document also for pending documents. doc will update to disk internally (15000ms = 15secs)

So if we set commit = false for any solr api call with some document data, then it makes SOFT for the current document also pending documents. doc will update to disk internally (180000ms = 3mins)

Solr Stats url: https://cwiki.apache.org/confluence/display/solr/Performance+Statistics+Reference

enter image description here

Can anyone give an example for commit, autoCommit and softCommit

+3


source to share


1 answer


I recommend this article Old but Gold [1] and this recent post thread [2]. Also, your difference in how you can activate Hard and Soft commit is not entirely correct [3]

[1] https://lucidworks.com/2013/08/23/understanding-transaction-logs-softcommit-and-commit-in-sorlcloud/



[2] http://lucene.472066.n3.nabble.com/High-disk-write-usage-td4344356.html#a4345233

[3] https://cwiki.apache.org/confluence/display/solr/UpdateHandlers+in+SolrConfig#UpdateHandlersinSolrConfig-commitandsoftCommit

+2


source







All Articles