How To Know When Solr Optimize Is Done?
Solution 1:
The documentation for the Optimize command specifies that, by default, the command will block until all changes are written to disk and that the new searcher is available. So if you keep those default values, when the command returns, you can consider the optimize done. Note that, depending on the number of segments you currently have and to how many you want to go down to, the command can block for a long time. I have seen optimize taking up to an hour to complete.
Solution 2:
The easiest way is to start optimize from the Solr console, there's an "optimize now" button in the Overview section of your collection. If you refresh this screen, you will see the memory used growing until the it doubles, then the status optimized is ticked and the "optimize now" button disapear.
NB: You must have enough free disk space to complete the Optimise or it will fail without notice or error message.
This doesn't directly answer your question, but that's another way to deal with solr instance optisation. So I hope it will help.
Post a Comment for "How To Know When Solr Optimize Is Done?"