Solr optimizes team status

I ran the solr optimize command with update? optimize = true. Can someone call me how to check the status of the Solr optimize command? I use Solr 3.5 Thanks in advance.

+4
source share
2 answers

While the optimization is running, you can run the top command, enter M to sort by memory usage, and see how the RES and SHR columns grow for the SOLR Java process. Also hold and look at Mem: free at the top of the screen. As RES and SHR increase, optimization works. In fact, the only thing that would stop this would be if Mem: free drops to zero.

If this happens to you, repeat the optimization with the LARGER number for maxSegments. For example, if 5 segments end with RAM, try 9. Then start again with 8, then again with 7, then try again 5 and 3 and 1.

+5
source

The easiest way to check index status after optimization is to go to http://<your instance & core>/admin/stats.jsp . This is also the same as clicking the [Statistics] link on the Solr administration page.

If you look in the statistics section : once on this page, as a rule, after optimization, the values โ€‹โ€‹of numDocs and maxDoc will be the same as all pending deletions. Also, the reader value should contain a value containing segments=1 at the end. This is because the optimize command will force the index to be merged into a single section, as described later in this excerpt from the UpdateXmlMessages section for optimization in the Solr Wiki.

Optimization is similar to hard fixing, except that it forces all segments of the index, which must first be combined into one segment.

+4
source

Source: https://habr.com/ru/post/1400204/


All Articles