Optimizing the Search Indexes on Restart
Fisheye/Crucible allows you to optimize the search indexes when you restart your instance.
You can use this feature to:
- Reduce the size of the search indexes,
- Make the search faster if the indexes are significantly under-optimized, and
- Reduce the number of "Too many open files" errors that you might see in the logs. This is useful on systems where Fisheye or Crucible have constraints on the number of files they can open.
In most circumstances, the search indexes should be fairly close to their optimal state. This is usually the case when using Crucible with Fisheye, or when using Fisheye alone. The search technology we use, Lucene, results in indexes fairly close to optimal when most of the operations on the indexes are additions (the additions are the changesets that are indexed as they appear in your repositories). For this reason, it should not be necessary to run the optimization often.
When you are using this feature, the optimization will run solely on the next start. It will not run every time Fisheye or Crucible starts, to prevent slowing the start of your instance. The optimization itself should be fast, and within 10 minutes even for large indexes.
Running the Optimization
- Navigate to the Fisheye/Crucible administration console.
- Click the 'Shutdown' link in the left menu. Note, you will need to confirm the shutdown at a confirmation screen before your instance is shut down.
- In the window that appears, click the 'Optimize the search indexes the next time that Fisheye and Crucible start' checkbox (or 'Optimize the search indexes the next time that Fisheye/Crucible starts' if you are using either Fisheye or Crucible alone).
- Click 'Shutdown'. Your instance will be shut down, and the optimization of the search indexes will be scheduled for the next startup.